MCPcopy Create free account
hub / github.com/google/gapid / val

Method val

core/codegen/value.go:24–29  ·  view source on GitHub ↗
(ty Type, val llvm.Value)

Source from the content-addressed store, hash-verified

22)
23
24func (b *Builder) val(ty Type, val llvm.Value) *Value {
25 // if a, b := val.Type().String(), ty.llvmTy().String(); a != b {
26 // fail("Value type mismatch: value: %v, type: %v", a, b)
27 // }
28 return &Value{ty, val, val.Name(), b}
29}
30
31// Value represents a value.
32type Value struct {

Callers 15

BuildMethod · 0.95
ZeroMethod · 0.95
OneMethod · 0.95
NotMethod · 0.95
InvertMethod · 0.95
NegateMethod · 0.95
cmpMethod · 0.95
AddMethod · 0.95
SubMethod · 0.95
MulMethod · 0.95
DivMethod · 0.95
RemMethod · 0.95

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected