Home | History | Annotate | Download | only in ssa

Lines Matching refs:constVal

408 // constVal returns a constant value for c.
409 func (f *Func) constVal(pos src.XPos, op Op, t *types.Type, c int64, setAuxInt bool) *Value {
450 return f.constVal(pos, OpConstBool, t, i, true)
453 return f.constVal(pos, OpConst8, t, int64(c), true)
456 return f.constVal(pos, OpConst16, t, int64(c), true)
459 return f.constVal(pos, OpConst32, t, int64(c), true)
462 return f.constVal(pos, OpConst64, t, c, true)
465 return f.constVal(pos, OpConst32F, t, int64(math.Float64bits(float64(float32(c)))), true)
468 return f.constVal(pos, OpConst64F, t, int64(math.Float64bits(c)), true)
472 return f.constVal(pos, OpConstSlice, t, constSliceMagic, false)
475 return f.constVal(pos, OpConstInterface, t, constInterfaceMagic, false)
478 return f.constVal(pos, OpConstNil, t, constNilMagic, false)
481 v := f.constVal(pos, OpConstString, t, constEmptyStringMagic, false)
486 v := f.constVal(pos, OpOffPtr, t, c, true)