/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 845 match(Val, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps() 849 match(Val2, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps() 1207 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd() 1654 if (match(Val, m_Add(m_Specific(Val2), m_ConstantInt(AddCst)))) in FoldOrOfICmps() 1896 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) return nullptr; in FoldOrWithConstants() 1932 if (match(Op0, m_And(m_Value(X), m_ConstantInt(C1))) && in visitOr() 1942 if (match(Op0, m_Xor(m_Value(X), m_ConstantInt(C1))) && in visitOr() 1975 match(Op0, m_Xor(m_Value(A), m_ConstantInt(C1))) && in visitOr() 1984 match(Op1, m_Xor(m_Value(A), m_ConstantInt(C1))) && in visitOr() 2017 if (match(A, m_Or(m_Value(V1), m_ConstantInt(C3))) && in visitOr() [all …]
|
D | InstCombineShifts.cpp | 84 if ((isLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in CanEvaluateShifted() 85 (!isLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { in CanEvaluateShifted() 441 m_ConstantInt(CC)))) { in FoldShiftByConstant() 476 m_ConstantInt(CC))) && V2 == Op1) { in FoldShiftByConstant()
|
D | InstCombineCompares.cpp | 2108 if (match(OtherVal, m_And(m_Value(ValToMask), m_ConstantInt(CI)))) { in ProcessUMulZExtIdiom() 2436 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst() 2536 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst() 2581 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst() 3169 if (match(B, m_ConstantInt(C1)) && in visitICmpInst() 3170 match(D, m_ConstantInt(C2)) && Op1->hasOneUse()) { in visitICmpInst() 3221 match(Op1, m_And(m_Value(B), m_ConstantInt(Cst1)))) || in visitICmpInst() 3223 match(Op0, m_And(m_Value(B), m_ConstantInt(Cst1))) && in visitICmpInst() 3234 if ((match(Op0, m_OneUse(m_LShr(m_Value(A), m_ConstantInt(Cst1)))) && in visitICmpInst() 3236 (match(Op0, m_OneUse(m_AShr(m_Value(A), m_ConstantInt(Cst1)))) && in visitICmpInst() [all …]
|
D | InstCombineAddSub.cpp | 1052 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) { in visitAdd() 1159 match(LHS, m_And(m_Value(X), m_ConstantInt(C2))) && in visitAdd() 1515 if (match(Op1, m_LShr(m_Value(X), m_ConstantInt(CI))) && in visitSub() 1520 if (match(Op1, m_AShr(m_Value(X), m_ConstantInt(CI))) && in visitSub()
|
D | InstCombineCasts.cpp | 478 match(Src, m_LShr(m_ZExt(m_Value(A)), m_ConstantInt(Cst)))) { in visitTrunc() 502 match(Src, m_And(m_Value(A), m_ConstantInt(Cst)))) { in visitTrunc() 1116 if (match(Src, m_AShr(m_Shl(m_Trunc(m_Value(A)), m_ConstantInt(BA)), in visitSExt() 1117 m_ConstantInt(CA))) && in visitSExt() 1760 m_ConstantInt(ShAmt)))) && in OptimizeIntToFloatBitCast()
|
D | InstCombineSimplifyDemanded.cpp | 600 if (match(I->getOperand(0), m_Shr(m_Value(VarX), m_ConstantInt(C1)))) { in SimplifyDemandedUseBits()
|
D | InstCombineSelect.cpp | 764 if (!match(LHS, m_And(m_Value(), m_ConstantInt(AndRHS)))) in foldSelectICmpAnd()
|
D | InstCombineMulDivRem.cpp | 179 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1)))) in visitMul()
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 72 inline class_match<ConstantInt> m_ConstantInt() { in m_ConstantInt() function 205 inline constantint_match<Val> m_ConstantInt() { in m_ConstantInt() function 303 inline bind_ty<ConstantInt> m_ConstantInt(ConstantInt *&CI) { return CI; } in m_ConstantInt() function 367 inline bind_const_intval_ty m_ConstantInt(uint64_t &V) { return V; } in m_ConstantInt() function 729 return m_Select(C, m_ConstantInt<L>(), m_ConstantInt<R>()); in m_SelectCst()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 1935 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1938 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1942 } else if (match(LHS, m_UDiv(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst() 1945 } else if (match(LHS, m_UDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1950 } else if (match(LHS, m_SDiv(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst() 1960 } else if (match(LHS, m_SDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1969 } else if (match(LHS, m_LShr(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1974 } else if (match(LHS, m_LShr(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst() 1981 } else if (match(LHS, m_AShr(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1989 } else if (match(LHS, m_AShr(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst() [all …]
|
D | LazyValueInfo.cpp | 820 m_ConstantInt(NegOffset))); in getEdgeValueLocal()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyCFG.cpp | 364 m_And(m_Value(RHSVal), m_ConstantInt(RHSC)))) { in GatherConstantCompares() 388 match(I->getOperand(0), m_Add(m_Value(RHSVal), m_ConstantInt(RHSC))); in GatherConstantCompares()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 1611 match(ScaleReg, m_Add(m_Value(AddLHS), m_ConstantInt(CI)))) { in MatchScaledValue()
|