llvm::BinaryOperator::CreateNUWAdd

CreateNUWAdd overloads

Synopses

Declared in <llvm/IR/InstrTypes.h>

Create an integer add with the nuw (no unsigned wrap) flag set.

static
BinaryOperator*
CreateNUWAdd(
    Value* V1,
    Value* V2,
    Twine const& Name = "");
» more...

Create a nuw integer add and insert at InsertBefore.

static
BinaryOperator*
CreateNUWAdd(
    Value* V1,
    Value* V2,
    Twine const& Name,
    InsertPosition InsertBefore);
» more...

Return Value

The newly created nuw add operator.

Parameters

NameDescription
V1The first operand value.
V2The second operand value.
NameOptional name for the new instruction.
InsertBeforeInsertion point for the new instruction.