LLString returns the LLVM syntax representation of the instruction. 'sdiv' Exactopt X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+?
()
| 505 | // |
| 506 | // 'sdiv' Exactopt X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+? |
| 507 | func (inst *InstSDiv) LLString() string { |
| 508 | buf := &strings.Builder{} |
| 509 | fmt.Fprintf(buf, "%s = ", inst.Ident()) |
| 510 | buf.WriteString("sdiv") |
| 511 | if inst.Exact { |
| 512 | buf.WriteString(" exact") |
| 513 | } |
| 514 | fmt.Fprintf(buf, " %s, %s", inst.X, inst.Y.Ident()) |
| 515 | for _, md := range inst.Metadata { |
| 516 | fmt.Fprintf(buf, ", %s", md) |
| 517 | } |
| 518 | return buf.String() |
| 519 | } |
| 520 | |
| 521 | // Operands returns a mutable list of operands of the given instruction. |
| 522 | func (inst *InstSDiv) Operands() []*value.Value { |