LLString returns the LLVM syntax representation of the instruction. 'fsub' FastMathFlags=FastMathFlag* X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+?
()
| 249 | // |
| 250 | // 'fsub' FastMathFlags=FastMathFlag* X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+? |
| 251 | func (inst *InstFSub) LLString() string { |
| 252 | buf := &strings.Builder{} |
| 253 | fmt.Fprintf(buf, "%s = ", inst.Ident()) |
| 254 | buf.WriteString("fsub") |
| 255 | for _, flag := range inst.FastMathFlags { |
| 256 | fmt.Fprintf(buf, " %s", flag) |
| 257 | } |
| 258 | fmt.Fprintf(buf, " %s, %s", inst.X, inst.Y.Ident()) |
| 259 | for _, md := range inst.Metadata { |
| 260 | fmt.Fprintf(buf, ", %s", md) |
| 261 | } |
| 262 | return buf.String() |
| 263 | } |
| 264 | |
| 265 | // Operands returns a mutable list of operands of the given instruction. |
| 266 | func (inst *InstFSub) Operands() []*value.Value { |