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

Method Ident

ir/constant/expr_binary.go:144–153  ·  view source on GitHub ↗

Ident returns the identifier associated with the constant expression.

()

Source from the content-addressed store, hash-verified

142
143// Ident returns the identifier associated with the constant expression.
144func (e *ExprSub) Ident() string {
145 // 'sub' OverflowFlags=OverflowFlag* '(' X=TypeConst ',' Y=TypeConst ')'
146 buf := &strings.Builder{}
147 buf.WriteString("sub")
148 for _, flag := range e.OverflowFlags {
149 fmt.Fprintf(buf, " %s", flag)
150 }
151 fmt.Fprintf(buf, " (%s, %s)", e.X, e.Y)
152 return buf.String()
153}
154
155// ~~~ [ fsub ] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
156

Callers 1

StringMethod · 0.95

Calls 2

FprintfMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected