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

Method LLString

ir/inst_binary.go:751–763  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

749//
750// 'frem' FastMathFlags=FastMathFlag* X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+?
751func (inst *InstFRem) LLString() string {
752 buf := &strings.Builder{}
753 fmt.Fprintf(buf, "%s = ", inst.Ident())
754 buf.WriteString("frem")
755 for _, flag := range inst.FastMathFlags {
756 fmt.Fprintf(buf, " %s", flag)
757 }
758 fmt.Fprintf(buf, " %s, %s", inst.X, inst.Y.Ident())
759 for _, md := range inst.Metadata {
760 fmt.Fprintf(buf, ", %s", md)
761 }
762 return buf.String()
763}
764
765// Operands returns a mutable list of operands of the given instruction.
766func (inst *InstFRem) 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