LLString returns the LLVM syntax representation of the instruction. 'fdiv' FastMathFlags=FastMathFlag* X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+?
()
| 569 | // |
| 570 | // 'fdiv' FastMathFlags=FastMathFlag* X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+? |
| 571 | func (inst *InstFDiv) LLString() string { |
| 572 | buf := &strings.Builder{} |
| 573 | fmt.Fprintf(buf, "%s = ", inst.Ident()) |
| 574 | buf.WriteString("fdiv") |
| 575 | for _, flag := range inst.FastMathFlags { |
| 576 | fmt.Fprintf(buf, " %s", flag) |
| 577 | } |
| 578 | fmt.Fprintf(buf, " %s, %s", inst.X, inst.Y.Ident()) |
| 579 | for _, md := range inst.Metadata { |
| 580 | fmt.Fprintf(buf, ", %s", md) |
| 581 | } |
| 582 | return buf.String() |
| 583 | } |
| 584 | |
| 585 | // Operands returns a mutable list of operands of the given instruction. |
| 586 | func (inst *InstFDiv) Operands() []*value.Value { |