CreateNSWSub overloads

Synopses

Declared in <llvm/IR/InstrTypes.h>

Create an integer subtract with the nsw (no signed wrap) flag set.

static
BinaryOperator*
CreateNSWSub(
    Value* V1,
    Value* V2,
    Twine const& Name = "");

Create an nsw integer subtract and insert at InsertBefore.

static
BinaryOperator*
CreateNSWSub(
    Value* V1,
    Value* V2,
    Twine const& Name,
    InsertPosition InsertBefore);

Return Value

The newly created nsw subtract operator.

Parameters

Name

Description

V1

The first operand value.

V2

The second operand value.

Name

Optional name for the new instruction.

InsertBefore

Insertion point for the new instruction.

Created with MrDocs