Create a sub instruction.
Declared in <llvm/IR/IRBuilder.h>
Value*
CreateSub(
Value* LHS,
Value* RHS,
Twine const& Name = "",
bool HasNUW = false,
bool HasNSW = false);
The created sub instruction.
| Name | Description |
|---|---|
| LHS | Left-hand side operand. |
| RHS | Right-hand side operand. |
| Name | Name of the new instruction or value. |
| HasNUW | Whether to set the nuw (no unsigned wrap) flag. |
| HasNSW | Whether to set the nsw (no signed wrap) flag. |