Build and insert Res = G_SUB Op0, Op1
Declared in <llvm/CodeGen/GlobalISel/MachineIRBuilder.h>
MachineInstrBuilder
buildSub(
DstOp const& Dst,
SrcOp const& Src0,
SrcOp const& Src1,
std::optional<unsigned int> Flags = std::nullopt);
G_SUB sets Res to the difference of integer parameters Op0 and Op1, truncated to their width.
a MachineInstrBuilder for the newly created instruction.
| Name | Description |
|---|---|
| Dst | Destination operand for the result. |
| Src0 | First source operand. |
| Src1 | Second source operand. |
| Flags | Optional instruction flags to attach. |
Res, Op0 and Op1 must be generic virtual registers with the same (scalar or vector) type).