Home
last modified time | relevance | path

Searched refs:m_APFloat (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceOperands.cpp47 return match(Op, m_APFloat(C)) && in isZeroOrOneFP()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp2090 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 DPatternMatch.cpp1204 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 DInstCombineAddSub.cpp1524 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 DInstCombineCalls.cpp1776 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 DInstCombineCompares.cpp6653 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 DInstructionSimplify.cpp3943 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 DValueTracking.cpp3650 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 DAMDGPUInstCombineIntrinsic.cpp980 match(Op0, PatternMatch::m_APFloat(C)); in instCombineIntrinsic()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1821 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 DPatternMatch.h295 inline apfloat_match m_APFloat(const APFloat *&Res) { in m_APFloat() function