/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 156 if (match(&I, m_Mul(m_Shl(m_Value(NewOp), m_Constant(C2)), in visitMul() 157 m_Constant(C1))) && in visitMul() 171 if (match(&I, m_Mul(m_Value(NewOp), m_Constant(C1)))) { in visitMul() 223 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul() 235 if (match(Op0, m_Neg(m_Value(X))) && match(Op1, m_Constant(Op1C))) in visitMul() 439 if (match(Op0, m_FNeg(m_Value(X))) && match(Op1, m_Constant(C))) in visitFMul() 461 if (match(Op1, m_Constant(C)) && C->isFiniteNonZeroFP()) { in visitFMul() 463 if (match(Op0, m_OneUse(m_FDiv(m_Constant(C1), m_Value(X))))) { in visitFMul() 469 if (match(Op0, m_FDiv(m_Value(X), m_Constant(C1)))) { in visitFMul() 485 if (match(Op0, m_OneUse(m_FAdd(m_Value(X), m_Constant(C1))))) { in visitFMul() [all …]
|
D | InstCombineVectorOps.cpp | 673 match(InsElt2.getOperand(1), m_Constant(ScalarC)) && in hoistInsEltConst() 695 if (!match(Shuf->getOperand(1), m_Constant(ShufConstVec)) || in foldConstantInsEltIntoShuffle() 696 !match(InsElt.getOperand(1), m_Constant(InsEltScalar)) || in foldConstantInsEltIntoShuffle() 745 !match(InsElt.getOperand(1), m_Constant(Val[0])) || in foldConstantInsEltIntoShuffle() 747 !match(IEI->getOperand(1), m_Constant(Val[1]))) in foldConstantInsEltIntoShuffle() 1166 if (match(BO1, m_Constant(C))) { in getAlternateBinop() 1193 if (match(Op0, m_BinOp(m_Specific(Op1), m_Constant(C)))) in foldSelectShuffleWith1Binop() 1195 else if (match(Op1, m_BinOp(m_Specific(Op0), m_Constant(C)))) in foldSelectShuffleWith1Binop() 1255 if (match(B0, m_BinOp(m_Value(X), m_Constant(C0))) && in foldSelectShuffle() 1256 match(B1, m_BinOp(m_Value(Y), m_Constant(C1)))) in foldSelectShuffle() [all …]
|
D | InstCombineShifts.cpp | 46 if (match(Op0, m_Constant()) && match(Op1, m_Add(m_Value(A), m_Constant(C)))) in commonShiftTransforms() 680 if (match(Op1, m_Constant(C1))) { in visitShl() 684 if (match(Op0, m_OneUse(m_Shl(m_Constant(C2), m_Value(X))))) in visitShl() 688 if (match(Op0, m_Mul(m_Value(X), m_Constant(C2)))) in visitShl()
|
D | InstCombineAndOrXor.cpp | 1369 if (!match(Op0, m_OneUse(m_Add(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp() 1370 !match(Op0, m_OneUse(m_Mul(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp() 1371 !match(Op0, m_OneUse(m_LShr(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp() 1372 !match(Op0, m_OneUse(m_Shl(m_Specific(Op1), m_Constant(C)))) && in narrowMaskedBinOp() 1373 !match(Op0, m_OneUse(m_Sub(m_Constant(C), m_Specific(Op1))))) in narrowMaskedBinOp() 1732 if (match(A, m_Constant(AC)) && match(B, m_Constant(BC)) && in getSelectCondition() 1739 if (match(A, (m_Xor(m_SExt(m_Value(Cond)), m_Constant(AC)))) && in getSelectCondition() 1740 match(B, (m_Xor(m_SExt(m_Specific(Cond)), m_Constant(BC)))) && in getSelectCondition() 2444 if (D->hasOneUse() && match(M, m_Constant(C))) { in visitMaskedMerge() 2543 if (match(NotVal, m_AShr(m_Constant(C), m_Value(Y))) && in visitXor() [all …]
|
D | InstCombineAddSub.cpp | 923 if (!match(Op1, m_Constant(Op1C))) in foldAddWithConstant() 1659 if (match(Op1, m_Add(m_Value(X), m_Constant(C2)))) in visitSub() 1751 if (match(Op1, m_SDiv(m_Value(X), m_Constant(C))) && match(Op0, m_Zero()) && in visitSub() 1781 if (match(Op1, m_Mul(m_Value(A), m_Constant(CI)))) { in visitSub() 1873 if (match(Op1, m_Constant(C)) && !isa<ConstantExpr>(Op1)) in visitFSub()
|
D | InstructionCombining.cpp | 256 if (!match(BinOp1->getOperand(1), m_Constant(C1)) || in simplifyAssocCastAssoc() 257 !match(BinOp2->getOperand(1), m_Constant(C2))) in simplifyAssocCastAssoc() 413 match(Op0, m_OneUse(m_BinOp(m_Value(A), m_Constant(C1)))) && in SimplifyAssociativeOrCommutative() 414 match(Op1, m_OneUse(m_BinOp(m_Value(B), m_Constant(C2))))) { in SimplifyAssociativeOrCommutative() 498 if (match(Op, m_Shl(m_Value(), m_Constant(C)))) { in getBinOpsForFactorization() 1379 if (match(LHS, m_ShuffleVector(m_Value(V1), m_Undef(), m_Constant(Mask))) && in foldShuffledBinop() 1394 m_OneUse(m_ShuffleVector(m_Value(V1), m_Undef(), m_Constant(Mask))), in foldShuffledBinop() 1395 m_Constant(C))) && in foldShuffledBinop()
|
D | InstCombineCasts.cpp | 585 if (match(BinOp0, m_Constant(C))) { in narrowBinOp() 591 if (match(BinOp1, m_Constant(C))) { in narrowBinOp() 789 !match(A, m_Shr(m_Value(), m_Constant()))) { in visitTrunc() 1173 match(SrcI, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Constant(C)))) && in visitZExt() 1179 if (SrcI && match(SrcI, m_OneUse(m_Xor(m_Value(And), m_Constant(C)))) && in visitZExt() 2054 if (match(BO->getOperand(1), m_Constant(C))) { in foldBitCastBitwiseLogic()
|
D | InstCombineSelect.cpp | 71 if (!match(Cond, m_ICmp(Pred, m_Value(X), m_Constant(C))) || in foldSelectBinOpIdentity() 1233 if (!match(Sel.getTrueValue(), m_Constant(C)) && in foldSelectExtConst() 1234 !match(Sel.getFalseValue(), m_Constant(C))) in foldSelectExtConst() 1297 if (!CondVal->getType()->isVectorTy() || !match(CondVal, m_Constant(CondC))) in canonicalizeSelectToShuffle()
|
D | InstCombineCompares.cpp | 2478 m_ShuffleVector(m_Value(Vec), m_Undef(), m_Constant(Mask)))) { in foldICmpBitCastConstant() 2927 if (!match(M, m_Constant())) // Can not do this fold with non-constant. in foldICmpWithLowBitMaskedVal() 2937 if (!match(M, m_Constant())) // Can not do this fold with non-constant. in foldICmpWithLowBitMaskedVal()
|
D | InstCombineCalls.cpp | 2121 m_Select(m_Value(Cond), m_Constant(LHS), m_Constant(RHS)))) { in visitCallInst()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 201 if (match(&I, m_Mul(m_Shl(m_Value(NewOp), m_Constant(C2)), in visitMul() 202 m_Constant(C1))) && in visitMul() 216 if (match(&I, m_Mul(m_Value(NewOp), m_Constant(C1)))) { in visitMul() 283 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul() 1272 if (match(Op0, m_FMul(m_Value(X), m_Constant(C1)))) { in visitFDiv() 1278 } else if (match(Op0, m_FDiv(m_Value(X), m_Constant(C1)))) { in visitFDiv() 1311 if (match(Op1, m_FMul(m_Value(X), m_Constant(C2)))) in visitFDiv() 1313 else if (match(Op1, m_FDiv(m_Value(X), m_Constant(C2)))) { in visitFDiv() 1316 } else if (match(Op1, m_FDiv(m_Constant(C2), m_Value(X)))) { in visitFDiv()
|
D | InstCombineAddSub.cpp | 1523 if (match(Op1, m_Add(m_Value(X), m_Constant(C2)))) in visitSub() 1619 if (match(Op1, m_SDiv(m_Value(X), m_Constant(C))) && match(Op0, m_Zero()) && in visitSub() 1637 if (match(Op1, m_Mul(m_Value(A), m_Constant(CI))) || in visitSub() 1638 match(Op1, m_Mul(m_Constant(CI), m_Value(A)))) { in visitSub()
|
D | InstCombineShifts.cpp | 731 if (match(I.getOperand(0), m_OneUse(m_Shl(m_Constant(C1), m_Value(A)))) && in visitShl() 732 match(I.getOperand(1), m_Constant(C2))) in visitShl()
|
D | InstCombineAndOrXor.cpp | 1221 if ((match(Op0, m_BitCast(m_Value(BC))) && match(Op1, m_Constant(C)))) { in foldCastedBitwiseLogic() 1635 if (match(A, m_Constant(AC)) && match(B, m_Constant(BC)) && in getSelectCondition() 1641 if (match(A, (m_Xor(m_SExt(m_Value(Cond)), m_Constant(AC)))) && in getSelectCondition() 1642 match(B, (m_Xor(m_SExt(m_Specific(Cond)), m_Constant(BC)))) && in getSelectCondition()
|
D | InstCombineCasts.cpp | 942 match(SrcI, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Constant(C)))) && in visitZExt() 948 if (SrcI && match(SrcI, m_OneUse(m_Xor(m_Value(And), m_Constant(C)))) && in visitZExt()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 660 if (match(I.getOperand(0), m_OneUse(m_Shl(m_Constant(C1), m_Value(A)))) && in visitShl() 661 match(I.getOperand(1), m_Constant(C2))) in visitShl()
|
D | InstCombineAddSub.cpp | 622 if (match(Op1, m_SDiv(m_Value(X), m_Constant(C))) && in visitSub()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
D | PatternMatch.cpp | 492 EXPECT_FALSE(match(VI2, m_InsertElement(m_Constant(), m_Value(), m_Value()))); in TEST_F() 506 EXPECT_TRUE(match(EX3, m_ExtractElement(m_Constant(), m_ConstantInt()))); in TEST_F()
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | PatternMatch.h | 75 inline class_match<Constant> m_Constant() { return class_match<Constant>(); } in m_Constant() function 231 inline bind_ty<Constant> m_Constant(Constant *&C) { return C; } in m_Constant() function
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | CallSiteSplitting.cpp | 139 if (!match(Cond, m_ICmp(Pred, m_Value(), m_Constant()))) in recordCondition()
|
/external/llvm/lib/Analysis/ |
D | VectorUtils.cpp | 272 if (match(V, m_Add(m_Value(Val), m_Constant(Con)))) in findScalarElement()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | VectorUtils.cpp | 274 if (match(V, m_Add(m_Value(Val), m_Constant(Con)))) in findScalarElement()
|
D | ValueTracking.cpp | 4741 if (match(CmpI->getOperand(1), m_Constant(CmpConst)) && in lookThroughCast()
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 83 inline class_match<Constant> m_Constant() { return class_match<Constant>(); } in m_Constant() function 308 inline bind_ty<Constant> m_Constant(Constant *&C) { return C; } in m_Constant() function
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | PatternMatch.h | 91 inline class_match<Constant> m_Constant() { return class_match<Constant>(); } in m_Constant() function 484 inline bind_ty<Constant> m_Constant(Constant *&C) { return C; } in m_Constant() function
|