llvm::IRBuilderBase::CreateSub

Create a sub instruction.

Synopsis

Declared in <llvm/IR/IRBuilder.h>

Value*
CreateSub(
    Value* LHS,
    Value* RHS,
    Twine const& Name = "",
    bool HasNUW = false,
    bool HasNSW = false);

Return Value

The created sub instruction.

Parameters

NameDescription
LHSLeft-hand side operand.
RHSRight-hand side operand.
NameName of the new instruction or value.
HasNUWWhether to set the nuw (no unsigned wrap) flag.
HasNSWWhether to set the nsw (no signed wrap) flag.