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

Method SetName

core/codegen/value.go:46–53  ·  view source on GitHub ↗

SetName assigns a name to the value.

(name string)

Source from the content-addressed store, hash-verified

44
45// SetName assigns a name to the value.
46func (v *Value) SetName(name string) *Value {
47 v.name = name
48 if IsPointer(v.ty) {
49 name = "→" + name
50 }
51 v.llvm.SetName(name)
52 return v
53}
54
55// EmitDebug emits debug info for the value.
56func (v *Value) EmitDebug(name string) *Value {

Callers 15

OneMethod · 0.95
cmpMethod · 0.95
ScalarOfTypeMethod · 0.95
buildContextFuncsMethod · 0.95
BuildMethod · 0.80
IndexMethod · 0.80
InsertMethod · 0.80
ZeroMethod · 0.80
SizeOfMethod · 0.80
AlignOfMethod · 0.80
LocalMethod · 0.80
AddUniformSamplerMethod · 0.80

Calls 1

IsPointerFunction · 0.85

Tested by 2

TestStubShaderSourceFunction · 0.64
TestDeadCommandRemovalFunction · 0.64