Searched refs:m_APFloat (Results 1 – 11 of 11) sorted by relevance
| /llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/ |
| H A D | ReduceOperands.cpp | 47 return match(Op, m_APFloat(C)) && in isZeroOrOneFP()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | Reassociate.cpp | 2090 if (match(I->getOperand(1), m_APFloat(C)) && C->isNegative()) { in getNegatibleInsts() 2103 if ((match(I->getOperand(0), m_APFloat(C)) && C->isNegative()) || in getNegatibleInsts() 2104 (match(I->getOperand(1), m_APFloat(C)) && C->isNegative())) { in getNegatibleInsts() 2142 if (match(Negatible->getOperand(0), m_APFloat(C))) { in canonicalizeNegFPConstantsForOp() 2149 if (match(Negatible->getOperand(1), m_APFloat(C))) { in canonicalizeNegFPConstantsForOp()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | PatternMatch.cpp | 1204 EXPECT_FALSE(match(ScalarUndef, m_APFloat(C))); in TEST_F() 1207 EXPECT_FALSE(match(VectorUndef, m_APFloat(C))); in TEST_F() 1213 EXPECT_TRUE(match(ScalarZero, m_APFloat(C))); in TEST_F() 1222 EXPECT_TRUE(match(VectorZero, m_APFloat(C))); in TEST_F() 1232 EXPECT_FALSE(match(VectorZeroUndef, m_APFloat(C))); in TEST_F()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineAddSub.cpp | 1524 if (match(XY, m_APFloat(C)) && !C->isNormal()) in factorizeFAddFSub() 1650 m_APFloat(StartC), m_Value(X)))) && in visitFAdd() 1651 match(RHS, m_APFloat(C))) { in visitFAdd()
|
| H A D | InstCombineCalls.cpp | 1776 if (M->getIntrinsicID() == IID && match(Arg1, m_APFloat(C1)) && in visitCallInst() 1778 match(M->getArgOperand(1), m_APFloat(C2))) || in visitCallInst() 1780 match(M->getArgOperand(0), m_APFloat(C2))))) { in visitCallInst() 1904 if (match(Sign, m_APFloat(C)) && C->isNegative()) { in visitCallInst()
|
| H A D | InstCombineCompares.cpp | 6653 if (!match(LHSI->getOperand(0), m_APFloat(C))) in foldFCmpReciprocalAndZero() 6879 if (match(Op1, m_APFloat(C))) { in visitFCmpInst() 6928 if (match(Op0, m_OneUse(m_Intrinsic<Intrinsic::copysign>(m_APFloat(C), in visitFCmpInst()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 3943 if (match(RHS, m_APFloat(C))) { in simplifyFCmpInst() 4011 if ((match(LHS, m_Intrinsic<Intrinsic::minnum>(m_Value(), m_APFloat(C2))) && in simplifyFCmpInst() 4013 (match(LHS, m_Intrinsic<Intrinsic::maxnum>(m_Value(), m_APFloat(C2))) && in simplifyFCmpInst() 4381 if (HasNoSignedZeros || (match(T, m_APFloat(C)) && C->isNonZero()) || in simplifySelectWithFCmp() 4382 (match(F, m_APFloat(C)) && C->isNonZero())) { in simplifySelectWithFCmp() 5969 if (match(Op1, m_APFloat(C)) && in simplifyBinaryIntrinsic()
|
| H A D | ValueTracking.cpp | 3650 return match(V, m_APFloat(C)) && in cannotBeOrderedLessThanZeroImpl() 5786 if (CmpRHS != TrueVal || !match(CmpRHS, m_APFloat(FC1)) || !FC1->isFinite()) in matchFastFloatClamp() 5796 m_CombineOr(m_OrdFMin(m_Specific(CmpLHS), m_APFloat(FC2)), in matchFastFloatClamp() 5797 m_UnordFMin(m_Specific(CmpLHS), m_APFloat(FC2)))) && in matchFastFloatClamp() 5806 m_CombineOr(m_OrdFMax(m_Specific(CmpLHS), m_APFloat(FC2)), in matchFastFloatClamp() 5807 m_UnordFMax(m_Specific(CmpLHS), m_APFloat(FC2)))) && in matchFastFloatClamp()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 980 match(Op0, PatternMatch::m_APFloat(C)); in instCombineIntrinsic()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyLibCalls.cpp | 1821 if (!match(Pow->getArgOperand(0), m_APFloat(BaseF))) in replacePowWithExp() 1929 if (!match(Expo, m_APFloat(ExpoF)) || in replacePowWithSqrt() 2029 if (AllowApprox && match(Expo, m_APFloat(ExpoF)) && in optimizePow()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 295 inline apfloat_match m_APFloat(const APFloat *&Res) { in m_APFloat() function
|