Home
last modified time | relevance | path

Searched refs:m_Value (Results 1 – 25 of 159) sorted by relevance

1234567

/external/llvm/unittests/IR/
DPatternMatch.cpp61 EXPECT_TRUE(m_OneUse(m_Value(V)).match(One)); in TEST_F()
64 EXPECT_FALSE(m_OneUse(m_Value()).match(Two)); in TEST_F()
65 EXPECT_FALSE(m_OneUse(m_Value()).match(Leaf)); in TEST_F()
75 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F()
81 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F()
87 EXPECT_FALSE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F()
91 EXPECT_FALSE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F()
95 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F()
101 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F()
114 EXPECT_TRUE(m_OrdFMax(m_Value(MatchL), m_Value(MatchR)) in TEST_F()
[all …]
/external/llvm-project/llvm/unittests/IR/
DPatternMatch.cpp61 EXPECT_TRUE(m_OneUse(m_Value(V)).match(One)); in TEST_F()
64 EXPECT_FALSE(m_OneUse(m_Value()).match(Two)); in TEST_F()
65 EXPECT_FALSE(m_OneUse(m_Value()).match(Leaf)); in TEST_F()
580 EXPECT_TRUE(match(IRB.CreateAnd(X, X), m_And(m_Value(tX), m_Deferred(tX)))); in TEST_F()
586 match(IRB.CreateAnd(X, Y), m_c_And(m_Value(tX), m_Deferred(tX)))); in TEST_F()
592 Pattern, m_c_And(m_Value(tX), m_c_And(m_Deferred(tX), m_Value(tY))))); in TEST_F()
610 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F()
616 EXPECT_TRUE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F()
622 EXPECT_FALSE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F()
626 EXPECT_FALSE(m_OrdFMin(m_Value(MatchL), m_Value(MatchR)) in TEST_F()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp782 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand()
785 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand()
787 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
790 if (match(X, m_Xor(m_Value(Y), m_APInt(C1)))) { in checkForNegativeOperand()
793 if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) { in checkForNegativeOperand()
796 } else if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && (*C1 == *C2)) { in checkForNegativeOperand()
810 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
816 if (match(LHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
818 if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && *C1 == (*C2 + 1)) { in checkForNegativeOperand()
839 match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_APInt(C2))))) && in foldNoWrapAdd()
[all …]
DInstCombineMulDivRem.cpp61 if (match(V, m_LShr(m_OneUse(m_Shl(m_Value(One), m_Value(A))), m_Value(B))) && in simplifyValueKnownNonZero()
138 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_One(), m_AllOnes())), in foldMulSelectToNegate()
139 m_Value(OtherOp)))) in foldMulSelectToNegate()
144 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_AllOnes(), m_One())), in foldMulSelectToNegate()
145 m_Value(OtherOp)))) in foldMulSelectToNegate()
150 if (match(&I, m_c_FMul(m_OneUse(m_Select(m_Value(Cond), m_SpecificFP(1.0), in foldMulSelectToNegate()
152 m_Value(OtherOp)))) { in foldMulSelectToNegate()
160 if (match(&I, m_c_FMul(m_OneUse(m_Select(m_Value(Cond), m_SpecificFP(-1.0), in foldMulSelectToNegate()
162 m_Value(OtherOp)))) { in foldMulSelectToNegate()
199 if (match(&I, m_Mul(m_Shl(m_Value(NewOp), m_Constant(C2)), in visitMul()
[all …]
DInstCombineAndOrXor.cpp90 if (!match(OldLHS, m_BSwap(m_Value(NewLHS)))) in SimplifyBSwap()
96 if (match(OldRHS, m_BSwap(m_Value(NewRHS)))) { in SimplifyBSwap()
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()
939 m_ICmp(Pred, m_Add(m_Value(X), m_Power2(I01)), m_Power2(I1))) && in foldSignedTruncationCheck()
973 if (match(ICmp, m_ICmp(Pred, m_And(m_Value(X), m_APInt(Mask)), m_Zero())) && in foldSignedTruncationCheck()
[all …]
DInstCombineShifts.cpp41 m_Shift(m_Instruction(Sh0Op0), m_ZExtOrSelf(m_Value(ShAmt0))))) in reassociateShiftAmtsOfTwoSameDirectionShifts()
50 m_CombineOr(m_CombineAnd(m_Trunc(m_Instruction(Sh1)), m_Value(Trunc)), in reassociateShiftAmtsOfTwoSameDirectionShifts()
56 if (!match(Sh1, m_Shift(m_Value(X), m_ZExtOrSelf(m_Value(ShAmt1))))) in reassociateShiftAmtsOfTwoSameDirectionShifts()
82 bool HadTwoRightShifts = match(Sh0, m_Shr(m_Value(), m_Value())) && in reassociateShiftAmtsOfTwoSameDirectionShifts()
83 match(Sh1, m_Shr(m_Value(), m_Value())); in reassociateShiftAmtsOfTwoSameDirectionShifts()
99 !match(Sh0, m_c_BinOp(m_OneUse(m_Value()), m_Value()))) in reassociateShiftAmtsOfTwoSameDirectionShifts()
186 m_Shift(m_Value(Masked), m_ZExtOrSelf(m_Value(ShiftShAmt)))); in dropRedundantMaskingOfLeftShiftInput()
191 if (match(Masked, m_CombineAnd(m_Trunc(m_Value(Masked)), m_Value(Trunc))) && in dropRedundantMaskingOfLeftShiftInput()
206 auto MaskA = m_Add(m_Shl(m_One(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput()
208 auto MaskB = m_Xor(m_Shl(m_AllOnes(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput()
[all …]
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp779 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand()
782 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand()
784 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
787 if (match(X, m_Xor(m_Value(Y), m_APInt(C1)))) { in checkForNegativeOperand()
790 if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) { in checkForNegativeOperand()
793 } else if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && (*C1 == *C2)) { in checkForNegativeOperand()
807 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
813 if (match(LHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
815 if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && *C1 == (*C2 + 1)) { in checkForNegativeOperand()
836 match(Op0, m_OneUse(m_ZExt(m_NUWAdd(m_Value(X), m_APInt(C2))))) && in foldNoWrapAdd()
[all …]
DInstCombineMulDivRem.cpp62 if (match(V, m_LShr(m_OneUse(m_Shl(m_Value(One), m_Value(A))), m_Value(B))) && in simplifyValueKnownNonZero()
109 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_One(), m_AllOnes())), in foldMulSelectToNegate()
110 m_Value(OtherOp)))) in foldMulSelectToNegate()
115 if (match(&I, m_c_Mul(m_OneUse(m_Select(m_Value(Cond), m_AllOnes(), m_One())), in foldMulSelectToNegate()
116 m_Value(OtherOp)))) in foldMulSelectToNegate()
121 if (match(&I, m_c_FMul(m_OneUse(m_Select(m_Value(Cond), m_SpecificFP(1.0), in foldMulSelectToNegate()
123 m_Value(OtherOp)))) { in foldMulSelectToNegate()
131 if (match(&I, m_c_FMul(m_OneUse(m_Select(m_Value(Cond), m_SpecificFP(-1.0), in foldMulSelectToNegate()
133 m_Value(OtherOp)))) { in foldMulSelectToNegate()
170 if (match(&I, m_Mul(m_Shl(m_Value(NewOp), m_Constant(C2)), in visitMul()
[all …]
DInstCombineAndOrXor.cpp92 if (!match(OldLHS, m_BSwap(m_Value(NewLHS)))) in SimplifyBSwap()
98 if (match(OldRHS, m_BSwap(m_Value(NewRHS)))) { in SimplifyBSwap()
291 if (!match(L1, m_And(m_Value(L11), m_Value(L12)))) { in getMaskedTypeForICmpPair()
298 if (!match(L2, m_And(m_Value(L21), m_Value(L22)))) { in getMaskedTypeForICmpPair()
326 if (!match(R1, m_And(m_Value(R11), m_Value(R12)))) { in getMaskedTypeForICmpPair()
352 if (!match(R2, m_And(m_Value(R11), m_Value(R12)))) { in getMaskedTypeForICmpPair()
818 if (match(LHS->getOperand(0), m_And(m_Value(A), m_Value(B))) && in foldAndOrOfICmpsOfAndWithPow2()
819 match(RHS->getOperand(0), m_And(m_Value(C), m_Value(D)))) { in foldAndOrOfICmpsOfAndWithPow2()
879 m_ICmp(Pred, m_Add(m_Value(X), m_Power2(I01)), m_Power2(I1))) && in foldSignedTruncationCheck()
913 if (match(ICmp, m_ICmp(Pred, m_And(m_Value(X), m_APInt(Mask)), m_Zero())) && in foldSignedTruncationCheck()
[all …]
DInstCombineShifts.cpp42 m_Shift(m_Instruction(Sh0Op0), m_ZExtOrSelf(m_Value(ShAmt0))))) in reassociateShiftAmtsOfTwoSameDirectionShifts()
51 m_CombineOr(m_CombineAnd(m_Trunc(m_Instruction(Sh1)), m_Value(Trunc)), in reassociateShiftAmtsOfTwoSameDirectionShifts()
57 if (!match(Sh1, m_Shift(m_Value(X), m_ZExtOrSelf(m_Value(ShAmt1))))) in reassociateShiftAmtsOfTwoSameDirectionShifts()
83 bool HadTwoRightShifts = match(Sh0, m_Shr(m_Value(), m_Value())) && in reassociateShiftAmtsOfTwoSameDirectionShifts()
84 match(Sh1, m_Shr(m_Value(), m_Value())); in reassociateShiftAmtsOfTwoSameDirectionShifts()
100 !match(Sh0, m_c_BinOp(m_OneUse(m_Value()), m_Value()))) in reassociateShiftAmtsOfTwoSameDirectionShifts()
187 m_Shift(m_Value(Masked), m_ZExtOrSelf(m_Value(ShiftShAmt)))); in dropRedundantMaskingOfLeftShiftInput()
192 if (match(Masked, m_CombineAnd(m_Trunc(m_Value(Masked)), m_Value(Trunc))) && in dropRedundantMaskingOfLeftShiftInput()
207 auto MaskA = m_Add(m_Shl(m_One(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput()
209 auto MaskB = m_Xor(m_Shl(m_AllOnes(), m_Value(MaskShAmt)), m_AllOnes()); in dropRedundantMaskingOfLeftShiftInput()
[all …]
/external/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
DAggressiveInstCombine.cpp94 m_Shl(m_Value(ShVal0), m_Value(ShAmt)), in foldGuardedRotateToFunnelShift()
95 m_LShr(m_Value(ShVal1), in foldGuardedRotateToFunnelShift()
96 m_Sub(m_SpecificInt(Width), m_Value(SubAmt))))))) { in foldGuardedRotateToFunnelShift()
104 m_OneUse(m_c_Or(m_Shl(m_Value(ShVal0), m_Sub(m_SpecificInt(Width), in foldGuardedRotateToFunnelShift()
105 m_Value(SubAmt))), in foldGuardedRotateToFunnelShift()
106 m_LShr(m_Value(ShVal1), m_Value(ShAmt)))))) { in foldGuardedRotateToFunnelShift()
196 if (match(V, m_And(m_Value(Op0), m_One()))) { in matchAndOrChain()
200 if (match(V, m_And(m_Value(Op0), m_Value(Op1)))) in matchAndOrChain()
204 if (match(V, m_Or(m_Value(Op0), m_Value(Op1)))) in matchAndOrChain()
212 if (!match(V, m_LShr(m_Value(Candidate), m_APInt(BitIndex)))) in matchAndOrChain()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/AggressiveInstCombine/
DAggressiveInstCombine.cpp81 auto Sub = m_Sub(m_SpecificInt(Width), m_Value(R1)); in foldGuardedRotateToFunnelShift()
85 m_c_Or(m_Shl(m_Value(L0), m_Value(L1)), m_LShr(m_Value(R0), Sub))); in foldGuardedRotateToFunnelShift()
94 m_c_Or(m_LShr(m_Value(L0), m_Value(L1)), m_Shl(m_Value(R0), Sub))); in foldGuardedRotateToFunnelShift()
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()
190 if (match(V, m_Or(m_Value(Op0), m_Value(Op1)))) in matchAndOrChain()
198 if (!match(V, m_LShr(m_Value(Candidate), m_ConstantInt(BitIndex)))) 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()
288 if ((match(Op0, m_Mul(m_Value(MulOp0), m_SpecificInt(Mask01)))) && in tryToRecognizePopCount()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp604 } else if (!match(L1, m_And(m_Value(L11), m_Value(L12)))) { in foldLogOpOfMaskedICmpsHelper()
614 } else if (!match(L2, m_And(m_Value(L21), m_Value(L22)))) { in foldLogOpOfMaskedICmpsHelper()
638 if (!match(R1, m_And(m_Value(R11), m_Value(R12)))) { in foldLogOpOfMaskedICmpsHelper()
658 if (!match(R2, m_And(m_Value(R11), m_Value(R12)))) { in foldLogOpOfMaskedICmpsHelper()
924 if (match(Val2, m_Trunc(m_Value(V))) && in FoldAndOfICmps()
928 } else if (match(Val, m_Trunc(m_Value(V))) && in FoldAndOfICmps()
1179 if (match(Op0, m_OneUse(m_Xor(m_ZExt(m_Value(A)), m_ConstantInt(C1)))) && in matchDeMorgansLaws()
1180 match(Op1, m_OneUse(m_Xor(m_ZExt(m_Value(B)), m_Specific(C1))))) { in matchDeMorgansLaws()
1221 if ((match(Op0, m_BitCast(m_Value(BC))) && match(Op1, m_Constant(C)))) { in foldCastedBitwiseLogic()
1286 if (match(Op1, m_SExt(m_Value())) || match(Op1, m_Not(m_Value()))) { in foldBoolSextMaskToSelect()
[all …]
DInstCombineAddSub.cpp987 if (match(RHS, m_Add(m_Value(X), m_One()))) in checkForNegativeOperand()
990 if (match(LHS, m_Add(m_Value(X), m_One()))) { in checkForNegativeOperand()
992 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
995 if (match(X, m_Xor(m_Value(Y), m_APInt(C1)))) { in checkForNegativeOperand()
998 if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) { in checkForNegativeOperand()
1001 } else if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && (*C1 == *C2)) { in checkForNegativeOperand()
1015 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
1021 if (match(LHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
1023 if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && *C1 == (*C2 + 1)) { in checkForNegativeOperand()
1062 if (match(LHS, m_Xor(m_Value(XorLHS), m_ConstantInt(XorRHS)))) { in visitAdd()
[all …]
DInstCombineMulDivRem.cpp40 if (match(V, m_LShr(m_OneUse(m_Shl(m_Value(One), m_Value(A))), m_Value(B))) && in simplifyValueKnownNonZero()
201 if (match(&I, m_Mul(m_Shl(m_Value(NewOp), m_Constant(C2)), in visitMul()
216 if (match(&I, m_Mul(m_Value(NewOp), m_Constant(C1)))) { in visitMul()
255 if (match(Op0, m_Sub(m_Value(Y), m_Value(X)))) in visitMul()
257 else if (match(Op0, m_Add(m_Value(Y), m_ConstantInt(C1)))) in visitMul()
283 if (match(Op0, m_OneUse(m_Add(m_Value(X), m_Constant(C1))))) { in visitMul()
287 if (!match(Mul, m_Mul(m_Value(), m_Value()))) in visitMul()
297 match(Op0, m_NSWSub(m_Value(), m_Value())) && in visitMul()
298 match(Op1, m_NSWSub(m_Value(), m_Value()))) in visitMul()
353 if (match(Op0, m_Shl(m_One(), m_Value(Y)))) { in visitMul()
[all …]
/external/lzma/CS/7zip/Compress/LzmaAlone/Properties/
DSettings.cs15 private static Settings m_Value; field in LzmaAlone.Properties.Settings
23 if ((Settings.m_Value == null))
26 if ((Settings.m_Value == null))
30 Settings.m_Value = new Settings();
38 return Settings.m_Value;
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLowerMatrixIntrinsics.cpp344 m_Value(MatrixA), m_Value(MatrixB), m_Value(M), in propagateShapeForward()
345 m_Value(N), m_Value(K)))) { in propagateShapeForward()
348 m_Value(MatrixA), m_Value(M), m_Value(N)))) { in propagateShapeForward()
352 m_Value(MatrixA), m_Value(), m_Value(), in propagateShapeForward()
353 m_Value(M), m_Value(N)))) { in propagateShapeForward()
357 m_Value(), m_Value(), m_Value(M), m_Value(N)))) { in propagateShapeForward()
359 } else if (match(Inst, m_Store(m_Value(MatrixA), m_Value()))) { in propagateShapeForward()
416 m_Value(MatrixA), m_Value(MatrixB), m_Value(M), in propagateShapeBackward()
417 m_Value(N), m_Value(K)))) { in propagateShapeBackward()
425 m_Value(MatrixA), m_Value(M), m_Value(N)))) { in propagateShapeBackward()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DInstructionSimplify.cpp104 m_ICmp(Pred2, m_Value(X), m_Value(Y)))) || in foldSelectWithBinaryOp()
638 if (match(Op1, m_Sub(m_Value(Y), m_Specific(Op0))) || in SimplifyAddInst()
639 match(Op0, m_Sub(m_Value(Y), m_Specific(Op1)))) in SimplifyAddInst()
652 match(Op0, m_Xor(m_Value(Y), m_SignMask()))) in SimplifyAddInst()
776 if (MaxRecurse && match(Op0, m_Add(m_Value(X), m_Value(Y)))) { // (X + Y) - Z in SimplifySubInst()
798 if (MaxRecurse && match(Op1, m_Add(m_Value(Y), m_Value(Z)))) { // X - (Y + Z) in SimplifySubInst()
820 if (MaxRecurse && match(Op1, m_Sub(m_Value(X), m_Value(Y)))) // Z - (X - Y) in SimplifySubInst()
831 if (MaxRecurse && match(Op0, m_Trunc(m_Value(X))) && in SimplifySubInst()
832 match(Op1, m_Trunc(m_Value(Y)))) in SimplifySubInst()
843 if (match(Op0, m_PtrToInt(m_Value(X))) && in SimplifySubInst()
[all …]
DAssumptionCache.cpp70 if (match(I, m_BitCast(m_Value(Op))) || in findAffectedValues()
71 match(I, m_PtrToInt(m_Value(Op))) || in findAffectedValues()
72 match(I, m_Not(m_Value(Op)))) { in findAffectedValues()
83 if (match(Cond, m_ICmp(Pred, m_Value(A), m_Value(B)))) { in findAffectedValues()
91 if (match(V, m_Not(m_Value(A)))) { in findAffectedValues()
99 if (match(V, m_BitwiseLogic(m_Value(A), m_Value(B)))) { in findAffectedValues()
103 } else if (match(V, m_Shift(m_Value(A), m_ConstantInt(C)))) { in findAffectedValues()
DIVDescriptors.cpp488 if (m_UMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern()
490 else if (m_UMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern()
492 else if (m_SMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern()
494 else if (m_SMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern()
496 else if (m_OrdFMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern()
498 else if (m_OrdFMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern()
500 else if (m_UnordFMin(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern()
502 else if (m_UnordFMax(m_Value(CmpLeft), m_Value(CmpRight)).match(Select)) in isMinMaxSelectCmpPattern()
544 if ((m_FAdd(m_Value(Op1), m_Value(Op2)).match(I1) || in isConditionalRdxPattern()
545 m_FSub(m_Value(Op1), m_Value(Op2)).match(I1)) && in isConditionalRdxPattern()
[all …]
/external/llvm-project/llvm/lib/Analysis/
DInstructionSimplify.cpp104 m_ICmp(Pred2, m_Value(X), m_Value(Y)))) || in foldSelectWithBinaryOp()
630 if (match(Op1, m_Sub(m_Value(Y), m_Specific(Op0))) || in SimplifyAddInst()
631 match(Op0, m_Sub(m_Value(Y), m_Specific(Op1)))) in SimplifyAddInst()
644 match(Op0, m_Xor(m_Value(Y), m_SignMask()))) in SimplifyAddInst()
767 if (MaxRecurse && match(Op0, m_Add(m_Value(X), m_Value(Y)))) { // (X + Y) - Z in SimplifySubInst()
789 if (MaxRecurse && match(Op1, m_Add(m_Value(Y), m_Value(Z)))) { // X - (Y + Z) in SimplifySubInst()
811 if (MaxRecurse && match(Op1, m_Sub(m_Value(X), m_Value(Y)))) // Z - (X - Y) in SimplifySubInst()
822 if (MaxRecurse && match(Op0, m_Trunc(m_Value(X))) && in SimplifySubInst()
823 match(Op1, m_Trunc(m_Value(Y)))) in SimplifySubInst()
834 if (match(Op0, m_PtrToInt(m_Value(X))) && in SimplifySubInst()
[all …]
DAssumptionCache.cpp73 if (match(I, m_BitCast(m_Value(Op))) || in findAffectedValues()
74 match(I, m_PtrToInt(m_Value(Op))) || match(I, m_Not(m_Value(Op)))) { in findAffectedValues()
91 if (match(Cond, m_ICmp(Pred, m_Value(A), m_Value(B)))) { in findAffectedValues()
99 if (match(V, m_Not(m_Value(A)))) { in findAffectedValues()
106 if (match(V, m_BitwiseLogic(m_Value(A), m_Value(B)))) { in findAffectedValues()
110 } else if (match(V, m_Shift(m_Value(A), m_ConstantInt()))) { in findAffectedValues()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp551 if (match(Op1, m_Sub(m_Value(Y), m_Specific(Op0))) || in SimplifyAddInst()
552 match(Op0, m_Sub(m_Value(Y), m_Specific(Op1)))) in SimplifyAddInst()
689 if (MaxRecurse && match(Op0, m_Add(m_Value(X), m_Value(Y)))) { // (X + Y) - Z in SimplifySubInst()
711 if (MaxRecurse && match(Op1, m_Add(m_Value(Y), m_Value(Z)))) { // X - (Y + Z) in SimplifySubInst()
733 if (MaxRecurse && match(Op1, m_Sub(m_Value(X), m_Value(Y)))) // Z - (X - Y) in SimplifySubInst()
744 if (MaxRecurse && match(Op0, m_Trunc(m_Value(X))) && in SimplifySubInst()
745 match(Op1, m_Trunc(m_Value(Y)))) in SimplifySubInst()
755 if (match(Op0, m_PtrToInt(m_Value(X))) && in SimplifySubInst()
756 match(Op1, m_PtrToInt(m_Value(Y)))) in SimplifySubInst()
844 if (match(Op0, m_NegZero()) && match(Op1, m_FSub(m_NegZero(), m_Value(X)))) in SimplifyFSubInst()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonGenExtract.cpp107 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()
145 Match = match(In, m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
152 Match = match(In, m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
/external/llvm-project/llvm/lib/Target/Hexagon/
DHexagonGenExtract.cpp107 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()
145 Match = match(In, m_Shl(m_LShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()
152 Match = match(In, m_Shl(m_AShr(m_Value(BF), m_ConstantInt(CSR)), in INITIALIZE_PASS_DEPENDENCY()

1234567