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

Method LLString

ir/inst_binary.go:251–263  ·  view source on GitHub ↗

LLString returns the LLVM syntax representation of the instruction. 'fsub' FastMathFlags=FastMathFlag* X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+?

()

Source from the content-addressed store, hash-verified

249//
250// 'fsub' FastMathFlags=FastMathFlag* X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+?
251func (inst *InstFSub) LLString() string {
252 buf := &strings.Builder{}
253 fmt.Fprintf(buf, "%s = ", inst.Ident())
254 buf.WriteString("fsub")
255 for _, flag := range inst.FastMathFlags {
256 fmt.Fprintf(buf, " %s", flag)
257 }
258 fmt.Fprintf(buf, " %s, %s", inst.X, inst.Y.Ident())
259 for _, md := range inst.Metadata {
260 fmt.Fprintf(buf, ", %s", md)
261 }
262 return buf.String()
263}
264
265// Operands returns a mutable list of operands of the given instruction.
266func (inst *InstFSub) Operands() []*value.Value {

Callers

nothing calls this directly

Calls 3

FprintfMethod · 0.80
IdentMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected