Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp534 FastMathFlags Instruction::getFastMathFlags() const { in getFastMathFlags() function in Instruction
536 return cast<FPMathOperator>(this)->getFastMathFlags(); in getFastMathFlags()
540 copyFastMathFlags(I->getFastMathFlags()); in copyFastMathFlags()
564 copyFastMathFlags(FP->getFastMathFlags()); in copyIRFlags()
593 FastMathFlags FM = getFastMathFlags(); in andIRFlags()
594 FM &= FP->getFastMathFlags(); in andIRFlags()
H A DIRBuilder.cpp977 UseFMF = FMFSource->getFastMathFlags(); in CreateConstrainedFPBinOp()
994 UseFMF = FMFSource->getFastMathFlags(); in CreateConstrainedFPUnroundedBinOp()
1027 UseFMF = FMFSource->getFastMathFlags(); in CreateConstrainedFPCast()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DComplexDeinterleavingPass.cpp678 (!Real->getFastMathFlags().allowContract() || in identifyPartialMul()
679 !Imag->getFastMathFlags().allowContract())) { in identifyPartialMul()
878 Real->getFastMathFlags() != Imag->getFastMathFlags()) in identifySymmetricOperation()
885 Node->Flags = Real->getFastMathFlags(); in identifySymmetricOperation()
969 if (Real->getFastMathFlags() != Imag->getFastMathFlags()) { in identifyReassocNodes()
975 Flags = Real->getFastMathFlags(); in identifyReassocNodes()
1059 if (Flags && I->getFastMathFlags() != *Flags) { in identifyReassocNodes()
H A DExpandReductions.cpp107 isa<FPMathOperator>(II) ? II->getFastMathFlags() : FastMathFlags{}; in expandReductions()
H A DExpandVectorPredication.cpp110 NewInst->setFastMathFlags(OldFMOp->getFastMathFlags()); in transferDecorations()
387 FastMathFlags Flags = VPI.getFastMathFlags(); in getNeutralReductionElement()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanRecipes.cpp242 FastMathFlags VPRecipeWithIRFlags::getFastMathFlags() const { in getFastMathFlags() function in VPRecipeWithIRFlags
446 Builder.setFastMathFlags(RdxDesc.getFastMathFlags()); in generateInstruction()
508 State.Builder.setFastMathFlags(getFastMathFlags()); in execute()
735 getFastMathFlags().print(O); in printFlags()
821 Builder.setFastMathFlags(I->getFastMathFlags()); in execute()
978 Builder.setFastMathFlags(ID.getInductionBinOp()->getFastMathFlags()); in execute()
1111 State.Builder.setFastMathFlags(getFastMathFlags()); in execute()
1419 O << getUnderlyingInstr()->getFastMathFlags(); in print()
1759 RdxDesc.getFastMathFlags()); in execute()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp364 FastMathFlags FMF = TI->getFastMathFlags(); in foldSelectOpOp()
365 FMF &= FI->getFastMathFlags(); in foldSelectOpOp()
366 FMF |= SI.getFastMathFlags(); in foldSelectOpOp()
405 FMF |= SelectFPOp->getFastMathFlags(); in foldSelectOpOp()
530 FMF = SI.getFastMathFlags(); in foldSelectIntoOp()
1919 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
1920 Flags &= SubOp->getFastMathFlags(); in foldAddSubSelect()
1938 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
1939 Flags &= SubOp->getFastMathFlags(); in foldAddSubSelect()
2770 NewFNeg->setFastMathFlags(SI.getFastMathFlags()); in foldSelectWithFCmpToFabs()
[all …]
H A DInstCombineAddSub.cpp686 NewInstr->setFastMathFlags(Instr->getFastMathFlags()); in createInstPostProc()
1829 I.getFastMathFlags(), in visitFAdd()
2688 FastMathFlags FMF = I.getFastMathFlags(); in foldFNegIntoConstant()
2689 FastMathFlags OpFMF = FNegOp->getFastMathFlags(); in foldFNegIntoConstant()
2719 FastMathFlags FMF = FMFSource.getFastMathFlags() | II->getFastMathFlags(); in hoistFNegAboveFMulFDiv()
2737 if (Value *V = simplifyFNegInst(Op, I.getFastMathFlags(), in visitFNeg()
2767 FastMathFlags FMF = I.getFastMathFlags() | OldSel->getFastMathFlags(); in visitFNeg()
2795 FastMathFlags FMF = I.getFastMathFlags(); in visitFNeg()
2796 FMF &= cast<FPMathOperator>(OneUse)->getFastMathFlags(); in visitFNeg()
2811 I.getFastMathFlags(), in visitFSub()
H A DInstCombineMulDivRem.cpp126 Builder.setFastMathFlags(I.getFastMathFlags()); in foldMulSelectToNegate()
136 Builder.setFastMathFlags(I.getFastMathFlags()); in foldMulSelectToNegate()
564 Builder.setFastMathFlags(I.getFastMathFlags()); in foldFPSignBitOps()
750 I.getFastMathFlags(), in visitFMul()
1714 I.getFastMathFlags(), in visitFDiv()
1782 B.setFastMathFlags(I.getFastMathFlags()); in visitFDiv()
2148 I.getFastMathFlags(), in visitFRem()
H A DInstCombineCalls.cpp2358 Builder.setFastMathFlags(II->getFastMathFlags()); in visitCallInst()
2368 II->getFastMathFlags(), in visitCallInst()
2399 II->getFastMathFlags(), in visitCallInst()
2411 II->getFastMathFlags().noSignedZeros())) in visitCallInst()
2534 FastMathFlags FMF = II->getFastMathFlags(); in visitCallInst()
2535 FastMathFlags InnerFlags = cast<FPMathOperator>(Src)->getFastMathFlags(); in visitCallInst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp753 Builder.setFastMathFlags(FPOp->getFastMathFlags()); in foldBinOpIntoSelect()
1084 const FastMathFlags DivFMF = FPOp->getFastMathFlags(); in visitFDiv()
1097 SqrtFMF = SqrtOp->getFastMathFlags(); in visitFDiv()
1265 FQ->copyFastMathFlags(Builder.getFastMathFlags()); in expandDivRem24Impl()
1701 Builder.setFastMathFlags(FPOp->getFastMathFlags()); in visitSelectInst()
2102 FastMathFlags FMF = I.getFastMathFlags(); in visitMinNum()
2126 FastMathFlags SqrtFMF = FPOp->getFastMathFlags(); in visitSqrt()
2146 canOptimizeWithRsq(FPOp, FDiv->getFastMathFlags(), SqrtFMF) && in visitSqrt()
H A DAMDGPULibCalls.cpp667 FastMathFlags FMF = FPOp->getFastMathFlags(); in fold()
765 FPOp->getFastMathFlags())) { in fold()
1086 if (!isKnownIntegral(opr1, M->getDataLayout(), FPOp->getFastMathFlags())) in fold_pow()
1357 FastMathFlags FMF = FPOp->getFastMathFlags(); in fold_sincos()
1386 FMF &= OtherOp->getFastMathFlags(); in fold_sincos()
H A DAMDGPUInstCombineIntrinsic.cpp476 FastMathFlags FMF = cast<FPMathOperator>(II).getFastMathFlags(); in instCombineIntrinsic()
490 FastMathFlags InnerFMF = SqrtOp->getFastMathFlags(); in instCombineIntrinsic()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp90 simplifyBinOp(I.getOpcode(), LHS, RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
H A DInstructionSimplify.cpp6829 return simplifyFAddInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
6835 return simplifyFSubInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
6841 return simplifyFMulInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
6847 return simplifyFDivInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
6853 return simplifyFRemInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
6993 return simplifyFNegInst(NewOps[0], I->getFastMathFlags(), Q, MaxRecurse); in simplifyInstructionWithOperands()
6995 return simplifyFAddInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
7002 return simplifyFSubInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
7009 return simplifyFMulInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
7024 return simplifyFDivInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
[all …]
H A DIVDescriptors.cpp384 FastMathFlags CurFMF = ReduxDesc.getPatternInst()->getFastMathFlags(); in AddReductionVar()
391 CurFMF |= FCmp->getFastMathFlags(); in AddReductionVar()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp447 static FastMathFlags getFastMathFlags(Instruction *Inst) { in getFastMathFlags() function in __anon04e69bad0111::LowerMatrixIntrinsics
451 FMF = Inst->getFastMathFlags(); in getFastMathFlags()
994 lowerDotProduct(CI, FusedInsts, getFastMathFlags(CI)); in Visit()
1729 getFastMathFlags(MatMul)); in createTiledLoops()
1789 getFastMathFlags(MatMul)); in emitSIMDTiling()
1857 getFastMathFlags(MatMul)); in LowerMatrixMultiplyFused()
1933 getFastMathFlags(MatMul)); in LowerMultiply()
2018 Builder.setFastMathFlags(getFastMathFlags(Inst)); in VisitBinaryOperator()
2064 Builder.setFastMathFlags(getFastMathFlags(Inst)); in VisitUnaryOperator()
H A DReassociate.cpp255 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateAdd()
267 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateMul()
799 NewOp->setFastMathFlags(I->getFastMathFlags()); in RewriteExprTree()
825 FastMathFlags Flags = I->getFastMathFlags(); in RewriteExprTree()
1962 Builder.setFastMathFlags(FPI->getFastMathFlags()); in OptimizeMul()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIVDescriptors.h201 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags() function
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h294 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags() function
296 FastMathFlags &getFastMathFlags() { return FMF; } in getFastMathFlags() function
1547 FastMathFlags FMF = FMFSource->getFastMathFlags();
1574 FastMathFlags FMF = FMFSource->getFastMathFlags();
1601 FastMathFlags FMF = FMFSource->getFastMathFlags();
1628 FastMathFlags FMF = FMFSource->getFastMathFlags();
1654 FastMathFlags FMF = FMFSource->getFastMathFlags();
1741 FastMathFlags FMF = FMFSource->getFastMathFlags();
H A DOperator.h288 FastMathFlags getFastMathFlags() const { in getFastMathFlags() function
H A DInstruction.h588 FastMathFlags getFastMathFlags() const LLVM_READONLY;
/freebsd-14.2/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DIRMutator.cpp275 [&Inst] { Inst.setFast(!Inst.getFastMathFlags().all()); }); in mutate()
278 [&Inst] { Inst.setFast(!Inst.getFastMathFlags().none()); }); in mutate()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1775 B.setFastMathFlags(CI->getFastMathFlags()); in replaceUnaryCall()
1849 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeDoubleFP()
1888 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeCAbs()
1917 B.setFastMathFlags(Call->getFastMathFlags()); in optimizeTrigReflections()
2222 B.setFastMathFlags(Pow->getFastMathFlags()); in optimizePow()
2344 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeExp2()
2374 FastMathFlags FMF = CI->getFastMathFlags(); in optimizeFMinFMax()
2592 B.setFastMathFlags(I->getFastMathFlags()); in optimizeSqrt()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVModuleAnalysis.cpp991 static unsigned getFastMathFlags(const MachineInstr &I) { in getFastMathFlags() function
1026 unsigned FMFlags = getFastMathFlags(I); in handleMIFlagDecoration()

12