reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Analysis/InstructionSimplify.cpp
 2173           match(A, m_c_Add(m_Specific(B), m_Value(N)))) {
 2180           match(B, m_c_Add(m_Specific(A), m_Value(N)))) {
lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
  291     if (match(MulOp0, m_And(m_c_Add(m_LShr(m_Value(ShiftOp0), m_SpecificInt(4)),
  297                 m_c_Add(m_And(m_Value(AndOp0), m_SpecificInt(Mask33)),
lib/Transforms/InstCombine/InstCombineAddSub.cpp
 1087   if (match(&I, m_c_Add(m_c_UMin(m_Value(X), m_Not(m_Value(Y))),
 1293   if (match(&I, m_c_Add(m_Value(A), m_OneUse(m_SExt(m_Value(B))))) &&
 1309       match(&I, m_BinOp(m_c_Add(m_Not(m_Value(B)), m_Value(A)), m_One())))
 1834     if (match(Op1, m_c_Add(m_Specific(Op0), m_Value(Y))))
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 1073       match(ZeroCmpOp, m_c_Add(m_Specific(A), m_Value(B))) &&
 3227       match(Op0, m_OneUse(m_c_Add(m_Specific(A), m_Specific(Op1))))) {
lib/Transforms/InstCombine/InstCombineCompares.cpp
 3682   if (match(Op0, m_OneUse(m_c_Add(m_Specific(Op1), m_Value(X)))) &&
 3686   if (match(Op1, m_OneUse(m_c_Add(m_Specific(Op0), m_Value(X)))) &&
lib/Transforms/InstCombine/InstCombineSelect.cpp
  769       match(FVal, m_c_Add(m_Specific(X), m_Value(Y))) && Y == Cmp1) {
  777   if (match(FVal, m_c_Add(m_Not(m_Specific(X)), m_Specific(Y)))) {
  785   if (match(Cmp0, m_c_Add(m_Specific(Cmp1), m_Value(Y))) &&
  786       match(FVal, m_c_Add(m_Specific(Cmp1), m_Specific(Y)))) {
unittests/IR/PatternMatch.cpp
  467   EXPECT_TRUE(m_c_Add(m_One(), m_Zero()).match(X));
  468   EXPECT_TRUE(m_c_Add(m_Zero(), m_One()).match(X));
  470   EXPECT_FALSE(m_Unless(m_c_Add(m_One(), m_Zero())).match(X));
  471   EXPECT_FALSE(m_Unless(m_c_Add(m_Zero(), m_One())).match(X));