llvm::simplifyAddInst

Given operands for an Add, fold the result or return null.

Synopsis

Declared in <llvm/Analysis/InstructionSimplify.h>

Value*
simplifyAddInst(
    Value* LHS,
    Value* RHS,
    bool IsNSW,
    bool IsNUW,
    SimplifyQuery const& Q);

Return Value

LLVM Value Representation

Parameters

NameDescription
LHSLLVM Value Representation
RHSLLVM Value Representation