MCPcopy Create free account
hub / github.com/llir/llvm / Ident

Method Ident

ir/constant/expr_binary.go:52–61  ·  view source on GitHub ↗

Ident returns the identifier associated with the constant expression.

()

Source from the content-addressed store, hash-verified

50
51// Ident returns the identifier associated with the constant expression.
52func (e *ExprAdd) Ident() string {
53 // 'add' OverflowFlags=OverflowFlag* '(' X=TypeConst ',' Y=TypeConst ')'
54 buf := &strings.Builder{}
55 buf.WriteString("add")
56 for _, flag := range e.OverflowFlags {
57 fmt.Fprintf(buf, " %s", flag)
58 }
59 fmt.Fprintf(buf, " (%s, %s)", e.X, e.Y)
60 return buf.String()
61}
62
63// ~~~ [ fadd ] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
64

Callers 1

StringMethod · 0.95

Calls 2

FprintfMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected