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

Method LLString

ir/inst_binary.go:443–455  ·  view source on GitHub ↗

LLString returns the LLVM syntax representation of the instruction. 'udiv' Exactopt X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+?

()

Source from the content-addressed store, hash-verified

441//
442// 'udiv' Exactopt X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+?
443func (inst *InstUDiv) LLString() string {
444 buf := &strings.Builder{}
445 fmt.Fprintf(buf, "%s = ", inst.Ident())
446 buf.WriteString("udiv")
447 if inst.Exact {
448 buf.WriteString(" exact")
449 }
450 fmt.Fprintf(buf, " %s, %s", inst.X, inst.Y.Ident())
451 for _, md := range inst.Metadata {
452 fmt.Fprintf(buf, ", %s", md)
453 }
454 return buf.String()
455}
456
457// Operands returns a mutable list of operands of the given instruction.
458func (inst *InstUDiv) 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