LLString returns the LLVM syntax representation of the instruction. 'udiv' Exactopt X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+?
()
| 441 | // |
| 442 | // 'udiv' Exactopt X=TypeValue ',' Y=Value Metadata=(',' MetadataAttachment)+? |
| 443 | func (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. |
| 458 | func (inst *InstUDiv) Operands() []*value.Value { |