- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for OpConst8 (0.33 sec)
-
src/cmd/compile/internal/ssa/sccp.go
if !exist { return lattice{top, nil} // optimistically for un-visited value } return lt } func isConst(val *Value) bool { switch val.Op { case OpConst64, OpConst32, OpConst16, OpConst8, OpConstBool, OpConst32F, OpConst64F: return true default: return false } } // buildDefUses builds def-use chain for some values early, because once the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 16:54:50 UTC 2024 - 17.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/value.go
func (v *Value) AuxUnsigned() uint64 { c := v.AuxInt switch v.Op { case OpConst64: return uint64(c) case OpConst32: return uint64(uint32(c)) case OpConst16: return uint64(uint16(c)) case OpConst8: return uint64(uint8(c)) } v.Fatalf("op %s isn't OpConst*", v.Op) return 0 } func (v *Value) AuxFloat() float64 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:40:22 UTC 2024 - 16.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/memcombine.go
ptr := a[0].store.Args[0] // Check for constant stores isConst := true for i := int64(0); i < n; i++ { switch a[i].store.Args[1].Op { case OpConst32, OpConst16, OpConst8, OpConstBool: default: isConst = false break } } if isConst { // Modify root to do all the stores. var c int64 mask := int64(1)<<(8*size) - 1 for i := int64(0); i < n; i++ {
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/func.go
i := int64(0) if c { i = 1 } return f.constVal(OpConstBool, t, i, true) } func (f *Func) ConstInt8(t *types.Type, c int8) *Value { return f.constVal(OpConst8, t, int64(c), true) } func (f *Func) ConstInt16(t *types.Type, c int16) *Value { return f.constVal(OpConst16, t, int64(c), true) } func (f *Func) ConstInt32(t *types.Type, c int32) *Value {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 25.8K bytes - Viewed (0)