Home
last modified time | relevance | path

Searched refs:getFastMathFlags (Results 1 – 25 of 44) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/IR/
H A DIRBuilderTest.cpp533 EXPECT_FALSE(Builder.getFastMathFlags().any()); in TEST_F()
569 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
570 EXPECT_TRUE(Builder.getFastMathFlags().all()); in TEST_F()
578 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
585 EXPECT_TRUE(Builder.getFastMathFlags().all()); in TEST_F()
604 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
622 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
641 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
686 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
691 EXPECT_TRUE(Builder.getFastMathFlags().any()); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DInstruction.cpp289 FastMathFlags Instruction::getFastMathFlags() const { in getFastMathFlags() function in Instruction
291 return cast<FPMathOperator>(this)->getFastMathFlags(); in getFastMathFlags()
295 copyFastMathFlags(I->getFastMathFlags()); in copyFastMathFlags()
315 copyFastMathFlags(FP->getFastMathFlags()); in copyIRFlags()
336 FastMathFlags FM = getFastMathFlags(); in andIRFlags()
337 FM &= FP->getFastMathFlags(); in andIRFlags()
H A DIRBuilder.cpp906 UseFMF = FMFSource->getFastMathFlags(); in CreateConstrainedFPBinOp()
939 UseFMF = FMFSource->getFastMathFlags(); in CreateConstrainedFPCast()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DExpandReductions.cpp107 isa<FPMathOperator>(II) ? II->getFastMathFlags() : FastMathFlags{}; in expandReductions()
H A DExpandVectorPredication.cpp109 NewInst->setFastMathFlags(OldFMOp->getFastMathFlags()); in transferDecorations()
298 FastMathFlags Flags = VPI.getFastMathFlags(); in getNeutralReductionElement()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp90 simplifyBinOp(I.getOpcode(), LHS, RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
H A DInstructionSimplify.cpp6168 FPI->getArgOperand(0), FPI->getArgOperand(1), FPI->getFastMathFlags(), in simplifyIntrinsic()
6174 FPI->getArgOperand(0), FPI->getArgOperand(1), FPI->getFastMathFlags(), in simplifyIntrinsic()
6180 FPI->getArgOperand(0), FPI->getArgOperand(1), FPI->getFastMathFlags(), in simplifyIntrinsic()
6186 FPI->getArgOperand(0), FPI->getArgOperand(1), FPI->getFastMathFlags(), in simplifyIntrinsic()
6192 FPI->getArgOperand(0), FPI->getArgOperand(1), FPI->getFastMathFlags(), in simplifyIntrinsic()
6310 Result = simplifyFNegInst(NewOps[0], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6313 Result = simplifyFAddInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6321 Result = simplifyFSubInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6329 Result = simplifyFMulInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
6341 Result = simplifyFDivInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q); in simplifyInstructionWithOperands()
[all …]
H A DIVDescriptors.cpp387 FastMathFlags CurFMF = ReduxDesc.getPatternInst()->getFastMathFlags(); in AddReductionVar()
394 CurFMF |= FCmp->getFastMathFlags(); in AddReductionVar()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp125 Builder.setFastMathFlags(I.getFastMathFlags()); in foldMulSelectToNegate()
135 Builder.setFastMathFlags(I.getFastMathFlags()); in foldMulSelectToNegate()
452 Builder.setFastMathFlags(I.getFastMathFlags()); in foldFPSignBitOps()
464 I.getFastMathFlags(), in visitFMul()
1335 I.getFastMathFlags(), in visitFDiv()
1403 B.setFastMathFlags(I.getFastMathFlags()); in visitFDiv()
1623 I.getFastMathFlags(), in visitFRem()
H A DInstCombineSelect.cpp322 FastMathFlags FMF = TI->getFastMathFlags(); in foldSelectOpOp()
323 FMF &= FI->getFastMathFlags(); in foldSelectOpOp()
324 FMF |= SI.getFastMathFlags(); in foldSelectOpOp()
460 FMF = SI.getFastMathFlags(); in foldSelectIntoOp()
1802 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
1803 Flags &= SubOp->getFastMathFlags(); in foldAddSubSelect()
1821 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
1822 Flags &= SubOp->getFastMathFlags(); in foldAddSubSelect()
2561 NewFNeg->setFastMathFlags(SI.getFastMathFlags()); in foldSelectWithFCmpToFabs()
2878 Builder.setFastMathFlags(FCmp->getFastMathFlags()); in visitSelectInst()
[all …]
H A DInstCombineAddSub.cpp687 NewInstr->setFastMathFlags(Instr->getFastMathFlags()); in createInstPostProc()
1533 I.getFastMathFlags(), in visitFAdd()
2267 FastMathFlags FMF = I.getFastMathFlags(); in foldFNegIntoConstant()
2268 FastMathFlags OpFMF = FNegOp->getFastMathFlags(); in foldFNegIntoConstant()
2300 if (Value *V = simplifyFNegInst(Op, I.getFastMathFlags(), in visitFNeg()
2352 I.getFastMathFlags(), in visitFSub()
H A DInstructionCombining.cpp318 FastMathFlags FMF = I.getFastMathFlags(); in ClearSubclassDataAfterReassociation()
540 FastMathFlags Flags = I.getFastMathFlags(); in SimplifyAssociativeOrCommutative()
541 Flags &= Op0->getFastMathFlags(); in SimplifyAssociativeOrCommutative()
542 Flags &= Op1->getFastMathFlags(); in SimplifyAssociativeOrCommutative()
871 FMF = I.getFastMathFlags(); in SimplifySelectsFeedingBinaryOp()
H A DInstCombineCalls.cpp1836 Builder.setFastMathFlags(II->getFastMathFlags()); in visitCallInst()
1846 II->getFastMathFlags(), in visitCallInst()
1877 II->getFastMathFlags(), in visitCallInst()
1889 II->getFastMathFlags().noSignedZeros())) in visitCallInst()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp408 static FastMathFlags getFastMathFlags(Instruction *Inst) { in getFastMathFlags() function in __anon8ba1aee70111::LowerMatrixIntrinsics
412 FMF = Inst->getFastMathFlags(); in getFastMathFlags()
1451 getFastMathFlags(MatMul)); in createTiledLoops()
1511 getFastMathFlags(MatMul)); in emitSIMDTiling()
1579 getFastMathFlags(MatMul)); in LowerMatrixMultiplyFused()
1655 getFastMathFlags(MatMul)); in LowerMultiply()
1740 Builder.setFastMathFlags(getFastMathFlags(Inst)); in VisitBinaryOperator()
1786 Builder.setFastMathFlags(getFastMathFlags(Inst)); in VisitUnaryOperator()
H A DReassociate.cpp248 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateAdd()
260 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateMul()
782 NewOp->setFastMathFlags(I->getFastMathFlags()); in RewriteExprTree()
804 FastMathFlags Flags = I->getFastMathFlags(); in RewriteExprTree()
1937 Builder.setFastMathFlags(FPI->getFastMathFlags()); in OptimizeMul()
H A DLICM.cpp920 ReciprocalDivisor->setFastMathFlags(I.getFastMathFlags()); in hoistRegion()
926 Product->setFastMathFlags(I.getFastMathFlags()); in hoistRegion()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DIVDescriptors.h199 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags() function
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPlanRecipes.cpp570 Builder.setFastMathFlags(Cmp->getFastMathFlags()); in execute()
831 O << getUnderlyingInstr()->getFastMathFlags(); in print()
1134 RdxDesc.getFastMathFlags()); in execute()
H A DLoopVectorize.cpp3134 B.setFastMathFlags(II.getInductionBinOp()->getFastMathFlags()); in createInductionResumeValues()
3333 B.setFastMathFlags(II.getInductionBinOp()->getFastMathFlags()); in fixupIVUsers()
3482 FMF = FPMO->getFastMathFlags(); in getVectorIntrinsicCost()
3894 Sel->setFastMathFlags(RdxDesc.getFastMathFlags()); in fixReduction()
3955 Builder.setFastMathFlags(RdxDesc.getFastMathFlags()); in fixReduction()
6521 RdxDesc.getOpcode(), VectorTy, RdxDesc.getFastMathFlags(), CostKind); in getReductionPatternCost()
9146 FMulRecipe->setFastMathFlags(R->getFastMathFlags()); in adjustRecipesForReductions()
9248 Builder.setFastMathFlags(ID.getInductionBinOp()->getFastMathFlags()); in execute()
9438 IndDesc.getInductionBinOp()->getFastMathFlags()); in execute()
9502 State.Builder.setFastMathFlags(RdxDesc->getFastMathFlags()); in execute()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DIRBuilder.h277 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags() function
279 FastMathFlags &getFastMathFlags() { return FMF; } in getFastMathFlags() function
1426 FastMathFlags FMF = FMFSource->getFastMathFlags();
1453 FastMathFlags FMF = FMFSource->getFastMathFlags();
1480 FastMathFlags FMF = FMFSource->getFastMathFlags();
1532 FastMathFlags FMF = FMFSource->getFastMathFlags();
1601 FastMathFlags FMF = FMFSource->getFastMathFlags();
H A DOperator.h285 FastMathFlags getFastMathFlags() const { in getFastMathFlags() function
H A DInstruction.h467 FastMathFlags getFastMathFlags() const;
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp641 Builder.setFastMathFlags(FPOp->getFastMathFlags()); in foldBinOpIntoSelect()
777 FastMathFlags FMF = FPOp->getFastMathFlags(); in visitFDiv()
959 FQ->copyFastMathFlags(Builder.getFastMathFlags()); in expandDivRem24Impl()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1552 B.setFastMathFlags(CI->getFastMathFlags()); in replaceUnaryCall()
1626 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeDoubleFP()
1665 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeCAbs()
1694 B.setFastMathFlags(Call->getFastMathFlags()); in optimizeTrigReflections()
1994 B.setFastMathFlags(Pow->getFastMathFlags()); in optimizePow()
2139 FastMathFlags FMF = CI->getFastMathFlags(); in optimizeFMinFMax()
2353 B.setFastMathFlags(I->getFastMathFlags()); in optimizeSqrt()
/llvm-project-15.0.7/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp460 Builder.setFastMathFlags(Call->getFastMathFlags()); in foldSqrt()

12