/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/ |
D | AggressiveInstCombine.cpp | 182 if (match(V, m_And(m_Value(Op0), m_One()))) { in matchAndOrChain() 186 if (match(V, m_And(m_Value(Op0), m_Value(Op1)))) in matchAndOrChain() 226 if (match(&I, m_c_And(m_OneUse(m_And(m_Value(), m_Value())), m_Value()))) in foldAnyOrAllBitsSet() 228 else if (match(&I, m_And(m_OneUse(m_Or(m_Value(), m_Value())), m_One()))) in foldAnyOrAllBitsSet() 292 if (match(MulOp0, m_And(m_c_Add(m_LShr(m_Value(ShiftOp0), m_SpecificInt(4)), in tryToRecognizePopCount() 298 m_c_Add(m_And(m_Value(AndOp0), m_SpecificInt(Mask33)), in tryToRecognizePopCount() 299 m_And(m_LShr(m_Deferred(AndOp0), m_SpecificInt(2)), in tryToRecognizePopCount() 304 match(SubOp1, m_And(m_LShr(m_Specific(Root), m_SpecificInt(1)), in tryToRecognizePopCount()
|
/third_party/skia/third_party/externals/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() 114 Match = match(In, m_And(m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 122 Match = match(In, m_And(m_Shl(m_Value(BF), m_ConstantInt(CSL)), in INITIALIZE_PASS_DEPENDENCY() 131 Match = match(In, m_And(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY() 138 Match = match(In, m_And(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
|
D | HexagonLoopIdiomRecognition.cpp | 685 if (!match(CondV, m_ICmp(P, m_And(m_Value(A), m_Value(B)), m_Value(C))) && in matchLeftShift() 686 !match(CondV, m_ICmp(P, m_Value(C), m_And(m_Value(A), m_Value(B))))) in matchLeftShift() 819 if (!match(C, m_And(m_Value(X), m_One())) && in matchRightShift() 820 !match(C, m_And(m_One(), m_Value(X)))) in matchRightShift()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAndOrXor.cpp | 335 if (!match(L1, m_And(m_Value(L11), m_Value(L12)))) { in getMaskedTypeForICmpPair() 342 if (!match(L2, m_And(m_Value(L21), m_Value(L22)))) { in getMaskedTypeForICmpPair() 370 if (!match(R1, m_And(m_Value(R11), m_Value(R12)))) { in getMaskedTypeForICmpPair() 396 if (!match(R2, m_And(m_Value(R11), m_Value(R12)))) { in getMaskedTypeForICmpPair() 878 if (match(LHS->getOperand(0), m_And(m_Value(A), m_Value(B))) && in foldAndOrOfICmpsOfAndWithPow2() 879 match(RHS->getOperand(0), m_And(m_Value(C), m_Value(D)))) { in foldAndOrOfICmpsOfAndWithPow2() 973 if (match(ICmp, m_ICmp(Pred, m_And(m_Value(X), m_APInt(Mask)), m_Zero())) && in foldSignedTruncationCheck() 1227 match(LHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps() 1231 match(RHS0, m_And(m_Specific(V), m_ConstantInt(AndC)))) { in foldAndOfICmps() 1638 if (match(Op0, m_And(m_Value(A), m_Value(B))) && in foldOrToXor() [all …]
|
D | InstCombineAddSub.cpp | 796 } else if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && (*C1 == *C2)) { in checkForNegativeOperand() 818 if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && *C1 == (*C2 + 1)) { in checkForNegativeOperand() 985 if (match(E, m_And(m_Value(Op), m_APInt(AI))) && (*AI + 1).isPowerOf2()) { in MatchRem() 1325 match(LHS, m_And(m_Value(X), m_ConstantInt(C2))) && in visitAdd() 1852 if (match(Op1, m_And(m_Value(A), m_Value(B))) && in visitSub() 1860 if (match(Op0, m_And(m_Value(A), m_Value(B))) && in visitSub() 1904 if (match(Op0, m_OneUse(m_And(m_Specific(Op1), m_Constant(C))))) { in visitSub()
|
D | InstCombineCasts.cpp | 536 if (match(L, m_And(m_Value(X), m_SpecificInt(Mask))) && in narrowRotate() 537 match(R, m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask)))) in narrowRotate() 541 if (match(L, m_ZExt(m_And(m_Value(X), m_SpecificInt(Mask)))) && in narrowRotate() 542 match(R, m_ZExt(m_And(m_Neg(m_Specific(X)), m_SpecificInt(Mask))))) in narrowRotate() 1210 match(SrcI, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Constant(C)))) && in visitZExt() 1217 match(And, m_OneUse(m_And(m_Trunc(m_Value(X)), m_Specific(C)))) && in visitZExt()
|
D | InstCombineShifts.cpp | 792 m_And(m_OneUse(m_Shr(m_Value(V1), m_Specific(Op1))), in FoldShiftByConstant() 826 m_And(m_OneUse(m_Shr(m_Value(V1), m_Value(V2))), in FoldShiftByConstant()
|
D | InstCombineSelect.cpp | 145 if (!match(V, m_And(m_Value(), m_Power2(AndRHS)))) in foldSelectICmpAnd() 511 if (!match(TVal, m_OneUse(m_And(m_Value(B), m_One())))) in foldSelectICmpAndAnd() 608 if (!match(CmpLHS, m_And(m_Value(), m_Power2(C1)))) in foldSelectICmpAndOr() 1449 match(CmpLHS, m_And(m_Value(X), m_Power2(Y))) && in foldSelectInstWithICmp()
|
D | InstCombineCompares.cpp | 1730 if (!match(And, m_And(m_Value(X), m_APInt(C2)))) in foldICmpAndConstConst() 4198 if (match(Op0, m_OneUse(m_And(m_Value(A), m_Value(B)))) && in foldICmpEquality() 4199 match(Op1, m_OneUse(m_And(m_Value(C), m_Value(D))))) { in foldICmpEquality() 4233 match(Op1, m_And(m_Value(B), m_ConstantInt(Cst1)))) || in foldICmpEquality() 4234 (Op1->hasOneUse() && match(Op0, m_And(m_Value(B), m_ConstantInt(Cst1))) && in foldICmpEquality() 4648 if (match(OtherVal, m_And(m_Value(ValToMask), m_ConstantInt(CI)))) { in processUMulZExtIdiom() 5027 if (!match(Op0, m_And(m_Value(LHS), m_APInt(LHSC))) || in foldICmpUsingKnownBits() 5597 if (match(Op0, m_And(m_Value(A), m_Not(m_Value(B)))) && in visitICmpInst()
|
D | InstCombineCalls.cpp | 4070 if (match(IIOperand, m_And(m_Value(A), m_Value(B)))) { in visitCallInst()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | GuardUtils.cpp | 85 if (!match(Cond, m_And(m_Value(A), m_Value(B)))) in parseWidenableBranch()
|
D | InstructionSimplify.cpp | 2161 if (match(Op0, m_And(m_Value(A), m_Value(B))) && in SimplifyOrInst() 2170 if (match(Op1, m_And(m_Value(A), m_Value(B))) && in SimplifyOrInst() 2205 if (match(Op0, m_And(m_Value(A), m_APInt(C1))) && in SimplifyOrInst() 2206 match(Op1, m_And(m_Value(B), m_APInt(C2)))) { in SimplifyOrInst() 3811 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest() 3817 if (TrueVal == X && match(FalseVal, m_And(m_Specific(X), m_APInt(C))) && in simplifySelectBitTest() 3865 if (match(CmpLHS, m_And(m_Value(X), m_APInt(Y)))) in simplifySelectWithICmpCond()
|
D | ValueTracking.cpp | 1867 if (OrZero && match(V, m_And(m_Value(X), m_Value(Y)))) { in isKnownToBeAPowerOfTwo() 1884 if (match(X, m_And(m_Specific(Y), m_Value())) || in isKnownToBeAPowerOfTwo() 1885 match(X, m_And(m_Value(), m_Specific(Y)))) in isKnownToBeAPowerOfTwo() 1888 if (match(Y, m_And(m_Specific(X), m_Value())) || in isKnownToBeAPowerOfTwo() 1889 match(Y, m_And(m_Value(), m_Specific(X)))) in isKnownToBeAPowerOfTwo() 5508 (LHSIsTrue && match(LHS, m_And(m_Value(ALHS), m_Value(ARHS))))) { in isImpliedCondAndOr()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | GuardWidening.cpp | 590 if (match(CheckCond, m_And(m_Value(AndLHS), m_Value(AndRHS)))) in parseRangeChecks()
|
D | LoopPredication.cpp | 757 if (match(Condition, m_And(m_Value(LHS), m_Value(RHS)))) { in collectChecks()
|
D | InductiveRangeCheckElimination.cpp | 345 if (match(Condition, m_And(m_Value(), m_Value()))) { in extractRangeChecksFromCond()
|
D | GVN.cpp | 1910 if ((isKnownTrue && match(LHS, m_And(m_Value(A), m_Value(B)))) || in propagateEquality()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | PredicateInfo.cpp | 425 if (match(BI->getCondition(), m_And(m_Cmp(Pred, m_Value(), m_Value()), in processBranch()
|
D | SimplifyCFG.cpp | 548 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | PatternMatch.h | 899 inline BinaryOp_match<LHS, RHS, Instruction::And> m_And(const LHS &L, in m_And() function
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 7363 if (match(LogicOp, m_And(m_OneUse(m_Value(Cond1)), in splitBranchCondition()
|