LLString returns the LLVM syntax representation of the instruction. 'fmul' FastMathFlags=FastMathFlag* X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+?
()
| 377 | // |
| 378 | // 'fmul' FastMathFlags=FastMathFlag* X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+? |
| 379 | func (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. |
| 394 | func (inst *InstFMul) Operands() []*value.Value { |