|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
lib/Analysis/AssumptionCache.cpp 102 } else if (match(V, m_Shift(m_Value(A), m_ConstantInt(C)))) {
lib/Analysis/InstructionSimplify.cpp 1039 if (!IsSigned && match(Op0, m_UDiv(m_Value(X), m_ConstantInt(C1))) &&
1040 match(Op1, m_ConstantInt(C2))) {
lib/Analysis/LazyValueInfo.cpp 971 m_ConstantInt(CIAdded)))) {
979 m_ConstantInt(CIAdded)))) {
1226 match(LHS, m_Add(m_Specific(Val), m_ConstantInt(Offset)));
lib/Analysis/ScalarEvolution.cpp 7588 if (match(V, m_LShr(m_Value(OutLHS), m_ConstantInt(ShiftAmt))))
7590 else if (match(V, m_AShr(m_Value(OutLHS), m_ConstantInt(ShiftAmt))))
7592 else if (match(V, m_Shl(m_Value(OutLHS), m_ConstantInt(ShiftAmt))))
lib/Analysis/ValueTracking.cpp 2228 (match(Induction, m_NSWAdd(m_Specific(PN), m_ConstantInt(X))) ||
2229 match(Induction, m_NUWAdd(m_Specific(PN), m_ConstantInt(X)))) &&
lib/CodeGen/CodeGenPrepare.cpp 3515 match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) {
lib/Target/Hexagon/HexagonGenExtract.cpp 105 bool Match = match(In, m_And(m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)),
106 m_ConstantInt(CSL)),
107 m_ConstantInt(CM)));
112 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)),
113 m_ConstantInt(CSL)),
114 m_ConstantInt(CM)));
120 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)),
121 m_ConstantInt(CM)));
129 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)),
130 m_ConstantInt(CM)));
136 Match = match(In, m_And(m_AShr(m_Value(BF), m_ConstantInt(CSR)),
137 m_ConstantInt(CM)));
143 Match = match(In, m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)),
144 m_ConstantInt(CSL)));
150 Match = match(In, m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)),
151 m_ConstantInt(CSL)));
lib/Transforms/InstCombine/InstCombineAddSub.cpp 1229 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) {
1327 match(LHS, m_And(m_Value(X), m_ConstantInt(C2))) &&
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp 1227 match(LHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) {
1231 match(RHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) {
1829 m_ConstantInt(C1))))) {
1854 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) {
2222 if (match(LAdd, m_Add(m_Value(LAddOpnd), m_ConstantInt(LAddC))) &&
2223 match(RAdd, m_Add(m_Value(RAddOpnd), m_ConstantInt(RAddC))) &&
2339 if (match(LHS0, m_Add(m_Specific(RHS0), m_ConstantInt(AddC))))
2525 if (match(A, m_Or(m_Value(V1), m_ConstantInt(C3))) &&
2527 match(B, m_Or(m_Specific(V1), m_ConstantInt(C4))) &&
2693 match(Op0, m_Or(m_Value(A), m_ConstantInt(CI)))) {
lib/Transforms/InstCombine/InstCombineCasts.cpp 466 m_ConstantInt(ShiftVal)))) ||
760 match(Src, m_LShr(m_ZExt(m_Value(A)), m_ConstantInt(Cst)))) {
787 match(Src, m_LShr(m_SExt(m_Value(A)), m_ConstantInt(Cst)))) {
825 if (match(Src, m_Shl(m_Value(A), m_ConstantInt(Cst))) &&
1432 if (match(Src, m_AShr(m_Shl(m_Trunc(m_Value(A)), m_ConstantInt(BA)),
1433 m_ConstantInt(CA))) &&
lib/Transforms/InstCombine/InstCombineCompares.cpp 1449 if (Pred == ICmpInst::ICMP_UGT && match(Op1, m_ConstantInt(CI)) &&
1450 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2))))
2642 if (!match(EqualVal, m_ConstantInt(Equal)))
2647 m_ConstantInt(Less), m_ConstantInt(Greater))))
2647 m_ConstantInt(Less), m_ConstantInt(Greater))))
4137 if (match(B, m_ConstantInt(C1)) && match(D, m_ConstantInt(C2)) &&
4137 if (match(B, m_ConstantInt(C1)) && match(D, m_ConstantInt(C2)) &&
4198 match(Op1, m_And(m_Value(B), m_ConstantInt(Cst1)))) ||
4199 (Op1->hasOneUse() && match(Op0, m_And(m_Value(B), m_ConstantInt(Cst1))) &&
4209 if ((match(Op0, m_OneUse(m_LShr(m_Value(A), m_ConstantInt(Cst1)))) &&
4211 (match(Op0, m_OneUse(m_AShr(m_Value(A), m_ConstantInt(Cst1)))) &&
4225 if (match(Op0, m_OneUse(m_Shl(m_Value(A), m_ConstantInt(Cst1)))) &&
4243 match(Op1, m_ConstantInt(Cst1)) &&
4613 if (match(OtherVal, m_And(m_Value(ValToMask), m_ConstantInt(CI)))) {
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp 246 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1))))
lib/Transforms/InstCombine/InstCombineShifts.cpp 409 if ((IsLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) ||
410 (!IsLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) {
713 m_ConstantInt(CC)))) {
747 m_ConstantInt(CC))) && V2 == Op1) {
lib/Transforms/InstCombine/InstCombineVectorOps.cpp 917 match(InsElt1->getOperand(2), m_ConstantInt(IdxC1)) &&
919 match(InsElt2.getOperand(2), m_ConstantInt(IdxC2)) && IdxC1 != IdxC2) {
1772 m_ConstantInt(IndexC))))
lib/Transforms/InstCombine/InstructionCombining.cpp 2596 if (match(Cond, m_Add(m_Value(Op0), m_ConstantInt(AddRHS)))) {
lib/Transforms/Scalar/GuardWidening.cpp 543 if (match(Cond0, m_ICmp(Pred0, m_Value(LHS), m_ConstantInt(RHS0))) &&
544 match(Cond1, m_ICmp(Pred1, m_Specific(LHS), m_ConstantInt(RHS1)))) {
666 if (match(Check.getBase(), m_Add(m_Value(OpLHS), m_ConstantInt(OpRHS)))) {
672 m_Or(m_Value(OpLHS), m_ConstantInt(OpRHS)))) {
lib/Transforms/Scalar/JumpThreading.cpp 858 match(CmpLHS, m_Add(m_Value(AddLHS), m_ConstantInt(AddConst)))) {
lib/Transforms/Scalar/LoopDeletion.cpp 109 m_Br(m_ConstantInt(Cond), Taken, NotTaken)))
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp 403 if (match(RHS, m_Mul(m_Value(S), m_ConstantInt(Idx)))) {
406 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) {
421 return (match(A, m_Add(m_Value(B), m_ConstantInt(C))) ||
422 match(A, m_Add(m_ConstantInt(C), m_Value(B))));
427 return (match(A, m_Or(m_Value(B), m_ConstantInt(C))) ||
428 match(A, m_Or(m_ConstantInt(C), m_Value(B))));
503 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) {
507 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) {