llvm::PatternMatch::m_Add

Matches an add of L and R.

Synopsis

Declared in <llvm/IR/PatternMatch.h>

template<
    typename LHS,
    typename RHS>
BinaryOp_match<LHS, RHS, Instruction::Add>
m_Add(
    LHS const& L,
    RHS const& R);

Return Value

A matcher for an add of L and R.

Parameters

NameDescription
LSub-pattern for the left-hand operand.
RSub-pattern for the right-hand operand.