- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 46 for AuxInt (0.13 sec)
-
src/cmd/compile/internal/ssa/block.go
func (b *Block) AuxIntString() string { switch b.Kind.AuxIntType() { case "int8": return fmt.Sprintf("%v", int8(b.AuxInt)) case "uint8": return fmt.Sprintf("%v", uint8(b.AuxInt)) case "": // no aux int type return "" default: // type specified but not implemented - print as int64 return fmt.Sprintf("%v", b.AuxInt) } } // likelyBranch reports whether block b is the likely branch of all of its predecessors.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:44:14 UTC 2024 - 12.2K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
src/cmd/compile/internal/ssa/schedule.go
return c > 0 // smaller uses come later } // These comparisons are fairly arbitrary. // The goal here is stability in the face // of unrelated changes elsewhere in the compiler. if c := x.AuxInt - y.AuxInt; c != 0 { return c < 0 } if cmp := x.Type.Compare(y.Type); cmp != types.CMPeq { return cmp == types.CMPlt } return x.ID < y.ID } func (op Op) isLoweredGetClosurePtr() bool { switch op {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 15:53:17 UTC 2024 - 16.4K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/PPC64.rules
// Rewrite to a cmp int64(0) to lower into ANDCCconst in the latelower pass. (CMP(W|U|WU)const [0] a:(ANDconst [n] z)) => (CMPconst [0] a) // SETBC auxInt values 0=LT 1=GT 2=EQ Crbit==1 ? 1 : 0 // SETBCR auxInt values 0=LT 1=GT 2=EQ Crbit==1 ? 0 : 1 (Equal cmp) => (SETBC [2] cmp) (NotEqual cmp) => (SETBCR [2] cmp) (LessThan cmp) => (SETBC [0] cmp) (FLessThan cmp) => (SETBC [0] cmp)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:02:52 UTC 2024 - 53.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
return s.curBlock.NewValue0A(s.peekPos(), op, t, aux) } // newValue0I adds a new value with no arguments and an auxint value to the current block. func (s *state) newValue0I(op ssa.Op, t *types.Type, auxint int64) *ssa.Value { return s.curBlock.NewValue0I(s.peekPos(), op, t, auxint) } // newValue1 adds a new value with one argument to the current block.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0)