Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 72 for AuxInt (0.1 sec)

  1. src/cmd/compile/internal/ssa/expand_calls.go

    					mem := x.memForCall[call.ID]
    					if mem == nil {
    						v.AuxInt = int64(aux.abiInfo.OutRegistersUsed())
    						x.memForCall[call.ID] = v
    					} else {
    						panic(fmt.Errorf("Saw two memories for call %v, %v and %v", call, mem, v))
    					}
    				} else {
    					selects = append(selects, v)
    				}
    
    			case OpSelectNAddr:
    				call := v.Args[0]
    				which := v.AuxInt
    				aux := call.Aux.(*AuxCall)
    				pt := v.Type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 05:13:40 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/writebarrier.go

    				memThen = bThen.NewValue1(pos, OpSelect1, types.TypeMem, curCall)
    			}
    			// Store value in write buffer
    			num := curCall.AuxInt
    			curCall.AuxInt = num + 1
    			wbuf := bThen.NewValue1I(pos, OpOffPtr, types.Types[types.TUINTPTR].PtrTo(), num*f.Config.PtrSize, curPtr)
    			memThen = bThen.NewValue3A(pos, OpStore, types.TypeMem, types.Types[types.TUINTPTR], wbuf, v, memThen)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 23.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/wasm/ssa.go

    			p.Pos = v.Pos
    		}
    
    	case ssa.OpWasmLoweredMove:
    		getValue32(s, v.Args[0])
    		getValue32(s, v.Args[1])
    		i32Const(s, int32(v.AuxInt))
    		s.Prog(wasm.AMemoryCopy)
    
    	case ssa.OpWasmLoweredZero:
    		getValue32(s, v.Args[0])
    		i32Const(s, 0)
    		i32Const(s, int32(v.AuxInt))
    		s.Prog(wasm.AMemoryFill)
    
    	case ssa.OpWasmLoweredNilCheck:
    		getValue64(s, v.Args[0])
    		s.Prog(wasm.AI64Eqz)
    		s.Prog(wasm.AIf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/deadstore.go

    			ptr := v.Args[0]
    			var off int64
    			for ptr.Op == OpOffPtr { // Walk to base pointer
    				off += ptr.AuxInt
    				ptr = ptr.Args[0]
    			}
    			var sz int64
    			if v.Op == OpStore {
    				sz = v.Aux.(*types.Type).Size()
    			} else { // OpZero
    				sz = v.AuxInt
    			}
    			if ptr.Op == OpLocalAddr {
    				if la, ok := localAddrs[ptr.Aux]; ok {
    					ptr = la
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/nilcheck.go

    				switch opcodeTable[v.Op].auxType {
    				case auxSym:
    					if v.Aux != nil {
    						continue
    					}
    				case auxSymOff:
    					if v.Aux != nil || v.AuxInt < 0 || v.AuxInt >= minZeroPage {
    						continue
    					}
    				case auxSymValAndOff:
    					off := ValAndOff(v.AuxInt).Off()
    					if v.Aux != nil || off < 0 || off >= minZeroPage {
    						continue
    					}
    				case auxInt32:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/tuple.go

    				if !tuple.Type.IsTuple() {
    					f.Fatalf("arg of tuple selector %s is not a tuple: %s", selector.String(), tuple.LongString())
    				}
    			case OpSelectN:
    				tuple = selector.Args[0]
    				idx = int(selector.AuxInt)
    				if !tuple.Type.IsResults() {
    					f.Fatalf("arg of result selector %s is not a results: %s", selector.String(), tuple.LongString())
    				}
    			}
    
    			// If there is a pre-existing selector in the target block then
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 26 02:52:33 UTC 2021
    - 2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssagen/phi.go

    	}
    
    	// Resolve FwdRefs to the correct write or phi.
    	s.resolveFwdRefs()
    
    	// Erase variable numbers stored in AuxInt fields of phi ops. They are no longer needed.
    	for _, b := range s.f.Blocks {
    		for _, v := range b.Values {
    			if v.Op == ssa.OpPhi {
    				v.AuxInt = 0
    			}
    			// Any remaining FwdRefs are dead code.
    			if v.Op == ssa.OpFwdRef {
    				v.Op = ssa.OpUnknown
    				v.Aux = nil
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/memcombine.go

    			idx = ptr.Args[1]
    			if idx.Op == OpAdd32 || idx.Op == OpAdd64 {
    				if idx.Args[0].Op == OpConst32 || idx.Args[0].Op == OpConst64 {
    					off += idx.Args[0].AuxInt
    					idx = idx.Args[1]
    				} else if idx.Args[1].Op == OpConst32 || idx.Args[1].Op == OpConst64 {
    					off += idx.Args[1].AuxInt
    					idx = idx.Args[0]
    				}
    			}
    			ptr = ptr.Args[0]
    		} else {
    			return BaseAddress{ptr: ptr, idx: idx}, off
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/magic.go

    //                   in 2 instructions on x86.)
    
    // umagicOK reports whether we should strength reduce a n-bit divide by c.
    func umagicOK(n uint, c int64) bool {
    	// Convert from ConstX auxint values to the real uint64 constant they represent.
    	d := uint64(c) << (64 - n) >> (64 - n)
    
    	// Doesn't work for 0.
    	// Don't use for powers of 2.
    	return d&(d-1) != 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:25 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/branchelim.go

    		// because it requires three instructions (OR, MASKEQZ, MASKNEZ) and will increase the
    		// register pressure.
    		if !(v.Args[0].isGenericIntConst() && v.Args[0].AuxInt == 0) &&
    			!(v.Args[1].isGenericIntConst() && v.Args[1].AuxInt == 0) {
    			return false
    		}
    	}
    	// For now, stick to simple scalars that fit in registers
    	switch {
    	case v.Type.Size() > v.Block.Func.Config.RegSize:
    		return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 30 17:46:51 UTC 2022
    - 12.7K bytes
    - Viewed (0)
Back to top