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

Method LLString

ir/inst_binary.go:379–391  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

377//
378// 'fmul' FastMathFlags=FastMathFlag* X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+?
379func (inst *InstFMul) LLString() string {
380 buf := &strings.Builder{}
381 fmt.Fprintf(buf, "%s = ", inst.Ident())
382 buf.WriteString("fmul")
383 for _, flag := range inst.FastMathFlags {
384 fmt.Fprintf(buf, " %s", flag)
385 }
386 fmt.Fprintf(buf, " %s, %s", inst.X, inst.Y.Ident())
387 for _, md := range inst.Metadata {
388 fmt.Fprintf(buf, ", %s", md)
389 }
390 return buf.String()
391}
392
393// Operands returns a mutable list of operands of the given instruction.
394func (inst *InstFMul) 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