|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
lib/Analysis/InstructionSimplify.cpp 1944 if (match(Op0, m_Shl(m_Value(X), m_APInt(ShAmt))) &&
2901 if (LBO && match(LBO, m_Shl(m_APInt(CI2Val), m_Value())) &&
lib/Analysis/ScalarEvolution.cpp 7592 else if (match(V, m_Shl(m_Value(OutLHS), m_ConstantInt(ShiftAmt))))
lib/Analysis/ValueTracking.cpp 729 } else if (match(Cmp, m_c_ICmp(Pred, m_Shl(m_V, m_ConstantInt(C)),
741 } else if (match(Cmp, m_c_ICmp(Pred, m_Not(m_Shl(m_V, m_ConstantInt(C))),
1754 if (match(V, m_Shl(m_One(), m_Value())))
1769 if (OrZero && (match(V, m_Shl(m_Value(X), m_Value())) ||
2127 if (match(V, m_Shl(m_Value(X), m_Value(Y)))) {
lib/CodeGen/CodeGenPrepare.cpp 6702 m_OneUse(m_Shl(m_OneUse(m_ZExt(m_Value(HValue))),
lib/Target/Hexagon/HexagonGenExtract.cpp 105 bool Match = match(In, m_And(m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)),
112 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)),
120 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)),
143 Match = match(In, m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)),
150 Match = match(In, m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)),
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp 693 if (match(A, m_Shl(m_One(), m_Specific(CIV)))) {
696 } else if (match(B, m_Shl(m_One(), m_Specific(CIV)))) {
767 if (!match(T, m_Shl(m_Value(Q), m_Specific(CIV))) &&
768 !match(T, m_Shl(m_ZExt(m_Value(Q)), m_ZExt(m_Specific(CIV)))))
lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp 84 m_c_Or(m_Shl(m_Value(L0), m_Value(L1)), m_LShr(m_Value(R0), Sub)));
93 m_c_Or(m_LShr(m_Value(L0), m_Value(L1)), m_Shl(m_Value(R0), Sub)));
lib/Transforms/InstCombine/InstCombineAddSub.cpp 938 if (match(Op0, m_AShr(m_Shl(m_Value(X), m_APInt(C2)), m_APInt(C3))) &&
957 if (match(E, m_Shl(m_Value(Op), m_APInt(AI)))) {
1063 if (!match(&I, m_Add(m_OneUse(m_Shl(m_One(), m_Value(NBits))), m_AllOnes())))
1182 m_Shl(m_Constant(SignExtendingValueBaseConstant),
1910 if (match(Op1, m_Shl(m_Value(X), m_Value(Y))) && match(Op0, m_Zero()))
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp 1692 !match(Op0, m_OneUse(m_Shl(m_Specific(Op1), m_Constant(C)))) &&
lib/Transforms/InstCombine/InstCombineCasts.cpp 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)),
lib/Transforms/InstCombine/InstCombineCompares.cpp 1964 if (!match(Shl, m_Shl(m_One(), m_Value(Y))))
3283 m_CombineOr(m_Not(m_Shl(m_AllOnes(), m_Value())),
3284 m_Add(m_Shl(m_One(), m_Value()), m_AllOnes())),
3286 m_LShr(m_Shl(m_AllOnes(), m_Value(Y)), m_Deferred(Y))));
3386 m_OneUse(m_AShr(m_Shl(m_Value(X), m_APInt(C0)),
4225 if (match(Op0, m_OneUse(m_Shl(m_Value(A), m_ConstantInt(Cst1)))) &&
4226 match(Op1, m_OneUse(m_Shl(m_Value(B), m_Specific(Cst1))))) {
4997 if (match(LHS, m_Shl(m_One(), m_Value(X)))) {
5311 m_c_ICmp(Pred, m_OneUse(m_Shl(m_One(), m_Value(Y))), m_Value(X)))) {
5328 m_Not(m_Shl(m_AllOnes(), m_Value(Y))),
5329 m_Add(m_Shl(m_One(), m_Value(Y)),
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp 61 if (match(V, m_LShr(m_OneUse(m_Shl(m_Value(One), m_Value(A))), m_Value(B))) &&
199 if (match(&I, m_Mul(m_Shl(m_Value(NewOp), m_Constant(C2)),
341 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) {
344 } else if (match(Op1, m_Shl(m_One(), m_Value(Y)))) {
867 if (!match(ShiftLeft, m_Shl(m_Constant(CI), m_Value(N))))
896 if (match(Op1, m_Shl(m_Power2(), m_Value())) ||
897 match(Op1, m_ZExt(m_Shl(m_Power2(), m_Value())))) {
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());
201 m_Shr(m_Shl(m_AllOnes(), m_Value(MaskShAmt)), m_Deferred(MaskShAmt));
229 match(Masked, m_Shr(m_Shl(m_Value(X), m_Value(MaskShAmt)),
410 (!IsLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) {
908 if (match(Op0, m_Shl(m_Value(X), m_APInt(ShOp1)))) {
944 if (match(Op0, m_OneUse(m_Shl(m_Constant(C2), m_Value(X)))))
1000 if (match(Op0, m_Shl(m_Value(X), m_APInt(ShOp1))) && ShOp1->ult(BitWidth)) {
1087 if (match(Op0, m_OneUse(m_Shl(m_Value(X), m_Specific(Op1))))) {
1116 m_AShr(m_Shl(m_Instruction(MaybeTrunc),
1187 if (match(Op0, m_Shl(m_ZExt(m_Value(X)), m_Specific(Op1))) &&
lib/Transforms/InstCombine/InstructionCombining.cpp 529 if (match(Op, m_Shl(m_Value(), m_Constant(C)))) {
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp 406 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) {
lib/Transforms/Utils/SimplifyIndVar.cpp 774 m_AShr(m_Shl(m_Value(), m_Specific(IVOperand)), m_APInt(C))) ||
776 m_LShr(m_Shl(m_Value(), m_Specific(IVOperand)), m_APInt(C)))) {
lib/Transforms/Vectorize/SLPVectorizer.cpp 3308 match(ZextLoad, m_Shl(m_Value(), m_Constant())))