/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonGenExtract.cpp | 107 bool Match = match(In, m_And(m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 108 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 109 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 114 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 115 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 116 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 122 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 123 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 131 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 132 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() [all …]
|
/external/llvm-project/llvm/lib/Target/Hexagon/ |
D | HexagonGenExtract.cpp | 107 bool Match = match(In, m_And(m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 108 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 109 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 114 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 115 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 116 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 122 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 123 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 131 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 132 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonGenExtract.cpp | 94 bool Match = match(In, m_And(m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 95 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 96 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 101 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 102 m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 103 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 109 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 110 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() 118 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 119 m_ConstantInt(CM))); in INITIALIZE_PASS_DEPENDENCY() [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/tfr/passes/ |
D | canonicalize.cc | 55 if (!matchPattern(for_op.lowerBound(), m_ConstantInt(&lower_bound)) || in matchAndRewrite() 56 !matchPattern(for_op.upperBound(), m_ConstantInt(&upper_bound)) || in matchAndRewrite() 57 !matchPattern(for_op.step(), m_ConstantInt(&step))) { in matchAndRewrite()
|
/external/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 368 if (match(RHS, m_Mul(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd() 371 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd() 386 return (match(A, m_Add(m_Value(B), m_ConstantInt(C))) || in matchesAdd() 387 match(A, m_Add(m_ConstantInt(C), m_Value(B)))); in matchesAdd() 392 return (match(A, m_Or(m_Value(B), m_ConstantInt(C))) || in matchesOr() 393 match(A, m_Or(m_ConstantInt(C), m_Value(B)))); in matchesOr() 468 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex() 472 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
|
D | GuardWidening.cpp | 413 if (match(Cond0, m_ICmp(Pred0, m_Value(LHS), m_ConstantInt(RHS0))) && in widenCondCommon() 414 match(Cond1, m_ICmp(Pred1, m_Specific(LHS), m_ConstantInt(RHS1)))) { in widenCondCommon() 531 if (match(Check.getBase(), m_Add(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks() 537 m_Or(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 404 if (match(RHS, m_Mul(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd() 407 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd() 422 return (match(A, m_Add(m_Value(B), m_ConstantInt(C))) || in matchesAdd() 423 match(A, m_Add(m_ConstantInt(C), m_Value(B)))); in matchesAdd() 428 return (match(A, m_Or(m_Value(B), m_ConstantInt(C))) || in matchesOr() 429 match(A, m_Or(m_ConstantInt(C), m_Value(B)))); in matchesOr() 504 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex() 508 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
|
D | GuardWidening.cpp | 508 if (match(Cond0, m_ICmp(Pred0, m_Value(LHS), m_ConstantInt(RHS0))) && in widenCondCommon() 509 match(Cond1, m_ICmp(Pred1, m_Specific(LHS), m_ConstantInt(RHS1)))) { in widenCondCommon() 631 if (match(Check.getBase(), m_Add(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks() 637 m_Or(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
|
D | LoopDeletion.cpp | 110 m_Br(m_ConstantInt(Cond), Taken, NotTaken))) in isLoopNeverExecuted()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 417 if (match(RHS, m_Mul(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd() 420 } else if (match(RHS, m_Shl(m_Value(S), m_ConstantInt(Idx)))) { in allocateCandidatesAndFindBasisForAdd() 435 return (match(A, m_Add(m_Value(B), m_ConstantInt(C))) || in matchesAdd() 436 match(A, m_Add(m_ConstantInt(C), m_Value(B)))); in matchesAdd() 441 return (match(A, m_Or(m_Value(B), m_ConstantInt(C))) || in matchesOr() 442 match(A, m_Or(m_ConstantInt(C), m_Value(B)))); in matchesOr() 517 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex() 521 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
|
D | ConstraintElimination.cpp | 63 m_NUWShl(m_Value(Op0), m_ConstantInt(CI)))) in decompose() 68 m_ZExt(m_NUWShl(m_Value(Op0), m_ConstantInt(CI))))) in decompose() 81 if (match(V, m_NUWAdd(m_Value(Op0), m_ConstantInt(CI)))) in decompose() 86 if (match(V, m_NUWSub(m_Value(Op0), m_ConstantInt(CI)))) in decompose()
|
D | GuardWidening.cpp | 508 if (match(Cond0, m_ICmp(Pred0, m_Value(LHS), m_ConstantInt(RHS0))) && in widenCondCommon() 509 match(Cond1, m_ICmp(Pred1, m_Specific(LHS), m_ConstantInt(RHS1)))) { in widenCondCommon() 631 if (match(Check.getBase(), m_Add(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks() 637 m_Or(m_Value(OpLHS), m_ConstantInt(OpRHS)))) { in parseRangeChecks()
|
D | LoopDeletion.cpp | 116 m_Br(m_ConstantInt(Cond), Taken, NotTaken))) in isLoopNeverExecuted()
|
/external/llvm-project/llvm/lib/Transforms/Vectorize/ |
D | VectorCombine.cpp | 404 if (!match(I0, m_ExtractElt(m_Value(V0), m_ConstantInt(C0))) || in foldExtractExtract() 405 !match(I1, m_ExtractElt(m_Value(V1), m_ConstantInt(C1))) || in foldExtractExtract() 419 m_InsertElt(m_Value(), m_Value(), m_ConstantInt(InsertIndex))); in foldExtractExtract() 526 m_ConstantInt(Index0))) && in scalarizeBinopOrCmp() 530 m_ConstantInt(Index1))) && in scalarizeBinopOrCmp() 640 if (!match(I0, m_OneUse(m_ExtractElt(m_Value(X), m_ConstantInt(Index0)))) || in foldExtractedCmps() 641 !match(I1, m_OneUse(m_ExtractElt(m_Specific(X), m_ConstantInt(Index1))))) in foldExtractedCmps()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 60 if (match(V, m_InsertElement(m_Value(), m_Value(), m_ConstantInt()))) in cheapToScalarize() 169 !match(Ext.getIndexOperand(), m_ConstantInt(ExtIndexC))) in foldBitcastExtElt() 189 m_ConstantInt(InsIndexC)))) in foldBitcastExtElt() 824 if (!match(InsElt.getOperand(2), m_ConstantInt(IdxC))) in foldInsEltIntoSplat() 859 if (!match(InsElt.getOperand(2), m_ConstantInt(IdxC))) in foldInsEltIntoIdentityShuffle() 917 match(InsElt1->getOperand(2), m_ConstantInt(IdxC1)) && in hoistInsEltConst() 919 match(InsElt2.getOperand(2), m_ConstantInt(IdxC2)) && IdxC1 != IdxC2) { in hoistInsEltConst() 942 !match(InsElt.getOperand(2), m_ConstantInt(InsEltIndex))) in foldConstantInsEltIntoShuffle() 989 if (!match(InsElt.getOperand(2), m_ConstantInt(InsertIdx[0])) || in foldConstantInsEltIntoShuffle() 991 !match(IEI->getOperand(2), m_ConstantInt(InsertIdx[1])) || in foldConstantInsEltIntoShuffle() [all …]
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 67 if (match(V, m_InsertElt(m_Value(), m_Value(), m_ConstantInt()))) in cheapToScalarize() 180 !match(Ext.getIndexOperand(), m_ConstantInt(ExtIndexC))) in foldBitcastExtElt() 204 m_ConstantInt(InsIndexC)))) in foldBitcastExtElt() 1140 if (!match(InsElt.getOperand(2), m_ConstantInt(IdxC))) in foldInsEltIntoSplat() 1178 if (!match(InsElt.getOperand(2), m_ConstantInt(IdxC))) in foldInsEltIntoIdentityShuffle() 1234 match(InsElt1->getOperand(2), m_ConstantInt(IdxC1)) && in hoistInsEltConst() 1236 match(InsElt2.getOperand(2), m_ConstantInt(IdxC2)) && IdxC1 != IdxC2) { in hoistInsEltConst() 1259 !match(InsElt.getOperand(2), m_ConstantInt(InsEltIndex))) in foldConstantInsEltIntoShuffle() 1309 if (!match(InsElt.getOperand(2), m_ConstantInt(InsertIdx[0])) || in foldConstantInsEltIntoShuffle() 1311 !match(IEI->getOperand(2), m_ConstantInt(InsertIdx[1])) || in foldConstantInsEltIntoShuffle() [all …]
|
D | InstCombineAndOrXor.cpp | 412 if (!match(B, m_ConstantInt(BCst)) || !match(C, m_ConstantInt(CCst)) || in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed() 413 !match(D, m_ConstantInt(DCst)) || !match(E, m_ConstantInt(ECst))) in foldLogOpOfMaskedICmps_NotAllZeros_BMask_Mixed() 623 if (!match(B, m_ConstantInt(BCst)) || !match(D, m_ConstantInt(DCst))) in foldLogOpOfMaskedICmps() 665 if (!match(C, m_ConstantInt(CCst)) || !match(E, m_ConstantInt(ECst))) in foldLogOpOfMaskedICmps() 1188 if (!match(LHS->getOperand(1), m_ConstantInt(LHSC)) || in foldAndOfICmps() 1189 !match(RHS->getOperand(1), m_ConstantInt(RHSC))) in foldAndOfICmps() 1214 match(LHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps() 1218 match(RHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps() 1810 if (match(Op1, m_ConstantInt(AndRHS))) { in visitAnd() 1831 m_ConstantInt(C1))))) { in visitAnd() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 925 match(Val, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps() 929 match(Val2, m_And(m_Specific(V), m_ConstantInt(AndCst)))) { in FoldAndOfICmps() 1179 if (match(Op0, m_OneUse(m_Xor(m_ZExt(m_Value(A)), m_ConstantInt(C1)))) && in matchDeMorgansLaws() 1417 if (match(Op0, m_Trunc(m_And(m_Value(X), m_ConstantInt(YC))))) { in visitAnd() 1741 if (match(LAdd, m_Add(m_Value(LAddOpnd), m_ConstantInt(LAddCst))) && in FoldOrOfICmps() 1742 match(RAdd, m_Add(m_Value(RAddOpnd), m_ConstantInt(RAddCst))) && in FoldOrOfICmps() 1844 if (match(Val, m_Add(m_Specific(Val2), m_ConstantInt(AddCst)))) in FoldOrOfICmps() 2077 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) return nullptr; in FoldOrWithConstants() 2107 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) in FoldXorWithConstants() 2148 if (match(Op0, m_And(m_Value(X), m_ConstantInt(C1))) && in visitOr() [all …]
|
D | InstCombineShifts.cpp | 129 if ((IsLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in CanEvaluateShifted() 130 (!IsLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { in CanEvaluateShifted() 449 m_ConstantInt(CC)))) { in FoldShiftByConstant() 484 m_ConstantInt(CC))) && V2 == Op1) { in FoldShiftByConstant()
|
D | InstCombineCompares.cpp | 2766 if (match(OtherVal, m_And(m_Value(ValToMask), m_ConstantInt(CI)))) { in ProcessUMulZExtIdiom() 3264 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst() 3313 if (match(Op0, m_AShr(m_ConstantInt(CI2), m_Value(A))) || in visitICmpInst() 3314 match(Op0, m_LShr(m_ConstantInt(CI2), m_Value(A)))) { in visitICmpInst() 3319 if (match(Op0, m_Shl(m_ConstantInt(CI2), m_Value(A)))) { in visitICmpInst() 3338 if (BI && match(BI, m_Br(m_ICmp(Pred, m_Specific(Op0), m_ConstantInt(CI2)), in visitICmpInst() 3426 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst() 3470 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst() 4145 if (match(B, m_ConstantInt(C1)) && in visitICmpInst() 4146 match(D, m_ConstantInt(C2)) && Op1->hasOneUse()) { in visitICmpInst() [all …]
|
D | InstCombineCasts.cpp | 450 m_ConstantInt(ShiftVal)))) || in foldVecTruncToExtElt() 525 match(Src, m_LShr(m_ZExt(m_Value(A)), m_ConstantInt(Cst)))) { in visitTrunc() 551 match(Src, m_LShr(m_SExt(m_Value(A)), m_ConstantInt(Cst))) && in visitTrunc() 569 match(Src, m_And(m_Value(A), m_ConstantInt(Cst)))) { in visitTrunc() 1201 if (match(Src, m_AShr(m_Shl(m_Trunc(m_Value(A)), m_ConstantInt(BA)), in visitSExt() 1202 m_ConstantInt(CA))) && in visitSExt()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 1040 if (!isSigned && match(Op0, m_UDiv(m_Value(X), m_ConstantInt(C1))) && in SimplifyDiv() 1041 match(Op1, m_ConstantInt(C2))) { in SimplifyDiv() 1521 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyAndOfICmps() 1522 m_ConstantInt(CI2)))) in SimplifyAndOfICmps() 1693 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyOrOfICmps() 1694 m_ConstantInt(CI2)))) in SimplifyOrOfICmps() 2306 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 2309 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 2313 } else if (match(LHS, m_UDiv(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst() 2316 } else if (match(LHS, m_UDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() [all …]
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 75 inline class_match<ConstantInt> m_ConstantInt() { in m_ConstantInt() function 198 template <int64_t Val> inline constantint_match<Val> m_ConstantInt() { in m_ConstantInt() function 305 inline bind_ty<ConstantInt> m_ConstantInt(ConstantInt *&CI) { return CI; } in m_ConstantInt() function 387 inline bind_const_intval_ty m_ConstantInt(uint64_t &V) { return V; } in m_ConstantInt() function 768 return m_Select(C, m_ConstantInt<L>(), m_ConstantInt<R>()); in m_SelectCst()
|
/external/llvm-project/llvm/unittests/IR/ |
D | PatternMatch.cpp | 967 match(VI1, m_InsertElt(m_Undef(), m_ConstantInt(), m_ConstantInt()))); in TEST_F() 969 match(VI1, m_InsertElt(m_Undef(), m_ConstantInt(), m_Zero()))); in TEST_F() 974 match(VI2, m_InsertElt(m_Value(), m_Value(), m_ConstantInt()))); in TEST_F() 976 match(VI2, m_InsertElt(m_Value(), m_ConstantInt(), m_Value()))); in TEST_F() 989 EXPECT_FALSE(match(EX1, m_ExtractElt(m_Value(), m_ConstantInt()))); in TEST_F() 990 EXPECT_TRUE(match(EX2, m_ExtractElt(m_Value(), m_ConstantInt()))); in TEST_F() 991 EXPECT_TRUE(match(EX3, m_ExtractElt(m_Constant(), m_ConstantInt()))); in TEST_F()
|
/external/llvm-project/mlir/include/mlir/IR/ |
D | Matchers.h | 260 m_ConstantInt(IntegerAttr::ValueType *bind_value) { in m_ConstantInt() function
|