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

References

include/llvm/IR/PatternMatch.h
 1858   return m_c_Xor(V, m_AllOnes());
lib/Analysis/InstructionSimplify.cpp
  615   if (IsNUW && match(Op1, m_AllOnes()))
 1350   if (match(Op0, m_AllOnes()))
 1921   if (match(Op1, m_AllOnes()))
 1977   if (match(Op0, m_Add(m_Specific(Op1), m_AllOnes())) &&
 1980   if (match(Op1, m_Add(m_Specific(Op0), m_AllOnes())) &&
 2067   if (match(Op1, m_Undef()) || match(Op1, m_AllOnes()))
 2635     if (Pred == ICmpInst::ICMP_SGT && match(RHS, m_AllOnes()))
 4082                 m_Xor(m_PtrToInt(m_Specific(StrippedBasePtr)), m_AllOnes()))) {
 5040     if (match(Op0, m_AllOnes()) || match(Op1, m_AllOnes()))
 5040     if (match(Op0, m_AllOnes()) || match(Op1, m_AllOnes()))
 5060     if (match(Op0, m_Zero()) || match(Op1, m_AllOnes()))
lib/Analysis/ValueTracking.cpp
 4886     auto ZeroOrAllOnes = m_CombineOr(m_ZeroInt(), m_AllOnes());
lib/CodeGen/CodeGenPrepare.cpp
 1238   if (Pred == ICmpInst::ICMP_EQ && match(B, m_AllOnes()))
lib/Target/ARM/MVETailPredication.cpp
  230   if (!match(BECount, m_Add(m_Value(TripCount), m_AllOnes())))
lib/Transforms/InstCombine/InstCombineAddSub.cpp
  886       match(Op1, m_AllOnes()))
 1063   if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes())))
 1188           : !match(SignExtendingValueBaseConstant, m_AllOnes()))
 1707   if (match(Op0, m_AllOnes()))
 1716   if (match(Op0, m_OneUse(m_Add(m_Value(X), m_AllOnes()))))
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 2099     if (!((match(EltC1, m_Zero()) && match(EltC2, m_AllOnes())) ||
 2100           (match(EltC2, m_Zero()) && match(EltC1, m_AllOnes()))))
 2827     if ((PredL == CmpInst::ICMP_SGT && match(LHS1, m_AllOnes()) &&
 2828          PredR == CmpInst::ICMP_SGT && match(RHS1, m_AllOnes())) ||
 2836     if ((PredL == CmpInst::ICMP_SGT && match(LHS1, m_AllOnes()) &&
 2839          PredR == CmpInst::ICMP_SGT && match(RHS1, m_AllOnes()))) {
 3251   if (match(Op1, m_AllOnes()) && Op0->hasOneUse()) {
lib/Transforms/InstCombine/InstCombineCalls.cpp
 3722          (match(Src1, m_AllOnes()) && match(Src0, m_SExt(m_Value(ExtSrc))))) &&
lib/Transforms/InstCombine/InstCombineCasts.cpp
 1233       (Pred == ICmpInst::ICMP_SGT && match(Op1, m_AllOnes()))) {
lib/Transforms/InstCombine/InstCombineCompares.cpp
 2755       if (Pred == ICmpInst::ICMP_SGT && match(Op1, m_AllOnes()))
 3283       m_CombineOr(m_Not(m_Shl(m_AllOnes(), m_Value())),
 3284                   m_Add(m_Shl(m_One(), m_Value()), m_AllOnes())),
 3285       m_CombineOr(m_LShr(m_AllOnes(), m_Value()),
 3286                   m_LShr(m_Shl(m_AllOnes(), m_Value(Y)), m_Deferred(Y))));
 3610       match(&I, m_c_ICmp(Pred, m_OneUse(m_UDiv(m_AllOnes(), m_Value(X))),
 3754       match(B, m_AllOnes()))
 3759       match(B, m_AllOnes()))
 3772       match(D, m_AllOnes()))
 3777       match(D, m_AllOnes()))
 4010     auto LSubOne = m_Add(m_Specific(Op1), m_AllOnes());
 4274   if (!match(Op0, m_OneUse(m_c_And(m_Add(m_Value(A), m_AllOnes()),
 5328                                       m_Not(m_Shl(m_AllOnes(), m_Value(Y))),
 5330                                             m_AllOnes()))),
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  138   if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_One(), m_AllOnes())),
  144   if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_AllOnes(), m_One())),
  187   if (match(Op1, m_AllOnes())) {
 1064   if (match(Op1, m_AllOnes()) ||
lib/Transforms/InstCombine/InstCombineSelect.cpp
  619     if ((IsEqualZero && !match(CmpRHS, m_AllOnes())) ||
  740       match(FVal, m_AllOnes()) && match(Cmp1, m_APInt(CmpC)) && *CmpC == ~*C) {
  751   if (match(FVal, m_AllOnes())) {
  755   if (!match(TVal, m_AllOnes()))
 1444     } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) {
 2288     if (match(TrueVal, m_AllOnes()) && match(FalseVal, m_Zero()))
 2298     if (match(TrueVal, m_Zero()) && match(FalseVal, m_AllOnes())) {
lib/Transforms/InstCombine/InstCombineShifts.cpp
  194   auto MaskA = m_Add(m_Shl(m_One(), m_Value(MaskShAmt)), m_AllOnes());
  196   auto MaskB = m_Xor(m_Shl(m_AllOnes(), m_Value(MaskShAmt)), m_AllOnes());
  196   auto MaskB = m_Xor(m_Shl(m_AllOnes(), m_Value(MaskShAmt)), m_AllOnes());
  198   auto MaskC = m_Shr(m_AllOnes(), m_Value(MaskShAmt));
  201       m_Shr(m_Shl(m_AllOnes(), m_Value(MaskShAmt)), m_Deferred(MaskShAmt));
  263   bool NeedMask = !match(NewMask, m_AllOnes());