Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp610 FastMathFlags Instruction::getFastMathFlags() const { in getFastMathFlags() function in Instruction
612 return cast<FPMathOperator>(this)->getFastMathFlags(); in getFastMathFlags()
616 copyFastMathFlags(I->getFastMathFlags()); in copyFastMathFlags()
647 copyFastMathFlags(FP->getFastMathFlags()); in copyIRFlags()
684 FastMathFlags FM = getFastMathFlags(); in andIRFlags()
685 FM &= FP->getFastMathFlags(); in andIRFlags()
H A DIRBuilder.cpp980 UseFMF = FMFSource->getFastMathFlags(); in CreateConstrainedFPBinOp()
997 UseFMF = FMFSource->getFastMathFlags(); in CreateConstrainedFPUnroundedBinOp()
1030 UseFMF = FMFSource->getFastMathFlags(); in CreateConstrainedFPCast()
/freebsd/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.cpp59 isa<FPMathOperator>(II) ? II->getFastMathFlags() : FastMathFlags{}; in expandReductions()
H A DExpandVectorPredication.cpp110 NewInst->setFastMathFlags(OldFMOp->getFastMathFlags()); in transferDecorations()
398 FastMathFlags Flags = VPI.getFastMathFlags(); in getNeutralReductionElement()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp126 Builder.setFastMathFlags(I.getFastMathFlags()); in foldMulSelectToNegate()
136 Builder.setFastMathFlags(I.getFastMathFlags()); in foldMulSelectToNegate()
594 Builder.setFastMathFlags(I.getFastMathFlags()); in foldFPSignBitOps()
687 FastMathFlags FMF = I.getFastMathFlags() & Op0BinOp->getFastMathFlags(); in foldFMulReassoc()
740 FastMathFlags FMF = I.getFastMathFlags() & DivOp->getFastMathFlags(); in foldFMulReassoc()
858 I.getFastMathFlags(), in visitFMul()
917 SI->copyFastMathFlags(I.getFastMathFlags()); in visitFMul()
923 SI->copyFastMathFlags(I.getFastMathFlags()); in visitFMul()
1879 I.getFastMathFlags(), in visitFDiv()
1947 B.setFastMathFlags(I.getFastMathFlags()); in visitFDiv()
[all …]
H A DInstCombineSelect.cpp371 FastMathFlags FMF = TI->getFastMathFlags(); in foldSelectOpOp()
372 FMF &= FI->getFastMathFlags(); in foldSelectOpOp()
373 FMF |= SI.getFastMathFlags(); in foldSelectOpOp()
410 FastMathFlags FMF = cast<FPMathOperator>(TII)->getFastMathFlags(); in foldSelectOpOp()
411 FMF &= cast<FPMathOperator>(FII)->getFastMathFlags(); in foldSelectOpOp()
412 FMF |= SelectFPOp->getFastMathFlags(); in foldSelectOpOp()
536 FMF = SI.getFastMathFlags(); in foldSelectIntoOp()
2063 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
2064 Flags &= SubOp->getFastMathFlags(); in foldAddSubSelect()
2082 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
[all …]
H A DInstCombineAddSub.cpp686 NewInstr->setFastMathFlags(Instr->getFastMathFlags()); in createInstPostProc()
1889 I.getFastMathFlags(), in visitFAdd()
2699 FastMathFlags FMF = I.getFastMathFlags(); in foldFNegIntoConstant()
2700 FastMathFlags OpFMF = FNegOp->getFastMathFlags(); in foldFNegIntoConstant()
2730 FastMathFlags FMF = FMFSource.getFastMathFlags() | II->getFastMathFlags(); in hoistFNegAboveFMulFDiv()
2748 if (Value *V = simplifyFNegInst(Op, I.getFastMathFlags(), in visitFNeg()
2778 FastMathFlags FMF = I.getFastMathFlags() | OldSel->getFastMathFlags(); in visitFNeg()
2816 FastMathFlags FMF = I.getFastMathFlags(); in visitFNeg()
2817 FMF &= cast<FPMathOperator>(OneUse)->getFastMathFlags(); in visitFNeg()
2832 I.getFastMathFlags(), in visitFSub()
H A DInstCombineCalls.cpp2472 II->getFastMathFlags(), in visitCallInst()
2503 II->getFastMathFlags(), in visitCallInst()
2515 II->getFastMathFlags().noSignedZeros())) in visitCallInst()
2577 FastMathFlags FMF1 = II->getFastMathFlags(); in visitCallInst()
2578 FastMathFlags FMF2 = cast<SelectInst>(Arg)->getFastMathFlags(); in visitCallInst()
2661 FastMathFlags FMF = II->getFastMathFlags(); in visitCallInst()
2662 FastMathFlags InnerFlags = cast<FPMathOperator>(Src)->getFastMathFlags(); in visitCallInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanRecipes.cpp316 FastMathFlags VPRecipeWithIRFlags::getFastMathFlags() const { in getFastMathFlags() function in VPRecipeWithIRFlags
584 Builder.setFastMathFlags(RdxDesc.getFastMathFlags()); in generatePerPart()
709 State.Builder.setFastMathFlags(getFastMathFlags()); in execute()
1028 getFastMathFlags().print(O); in printFlags()
1114 Builder.setFastMathFlags(I->getFastMathFlags()); in execute()
1271 Builder.setFastMathFlags(ID.getInductionBinOp()->getFastMathFlags()); in execute()
1403 State.Builder.setFastMathFlags(getFastMathFlags()); in execute()
1707 State.Builder.setFastMathFlags(RdxDesc.getFastMathFlags()); in execute()
1715 RdxDesc.getFastMathFlags()); in execute()
1759 Builder.setFastMathFlags(RdxDesc.getFastMathFlags()); in execute()
[all …]
H A DVPlan.h1064 FMFs = Op->getFastMathFlags(); in VPRecipeWithIRFlags()
1200 FastMathFlags getFastMathFlags() const;
2936 ? IndDesc.getInductionBinOp()->getFastMathFlags() in VPScalarIVStepsRecipe()
2944 hasFastMathFlags() ? getFastMathFlags() : FastMathFlags()); in clone()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp755 Builder.setFastMathFlags(FPOp->getFastMathFlags()); in foldBinOpIntoSelect()
1086 const FastMathFlags DivFMF = FPOp->getFastMathFlags(); in visitFDiv()
1099 SqrtFMF = SqrtOp->getFastMathFlags(); in visitFDiv()
1270 FQ->copyFastMathFlags(Builder.getFastMathFlags()); in expandDivRem24Impl()
1709 Builder.setFastMathFlags(FPOp->getFastMathFlags()); in visitSelectInst()
2187 FastMathFlags FMF = I.getFastMathFlags(); in visitMinNum()
2211 FastMathFlags SqrtFMF = FPOp->getFastMathFlags(); in visitSqrt()
2231 canOptimizeWithRsq(FPOp, FDiv->getFastMathFlags(), SqrtFMF) && in visitSqrt()
H A DAMDGPULibCalls.cpp680 FastMathFlags FMF = FPOp->getFastMathFlags(); in fold()
779 FPOp->getFastMathFlags())) { in fold()
1098 if (!isKnownIntegral(opr1, M->getDataLayout(), FPOp->getFastMathFlags())) in fold_pow()
1226 FastMathFlags FMF = FPOp->getFastMathFlags(); in fold_rootn()
1399 FastMathFlags FMF = FPOp->getFastMathFlags(); in fold_sincos()
1428 FMF &= OtherOp->getFastMathFlags(); in fold_sincos()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp509 static FastMathFlags getFastMathFlags(Instruction *Inst) { in getFastMathFlags() function in __anon821fcdb70111::LowerMatrixIntrinsics
513 FMF = Inst->getFastMathFlags(); in getFastMathFlags()
1013 lowerDotProduct(CI, FusedInsts, getFastMathFlags(CI)); in Visit()
1776 getFastMathFlags(MatMul)); in createTiledLoops()
1836 getFastMathFlags(MatMul)); in emitSIMDTiling()
1906 getFastMathFlags(MatMul)); in LowerMatrixMultiplyFused()
2031 getFastMathFlags(MatMul)); in LowerMultiply()
2116 Builder.setFastMathFlags(getFastMathFlags(Inst)); in VisitBinaryOperator()
2162 Builder.setFastMathFlags(getFastMathFlags(Inst)); in VisitUnaryOperator()
H A DReassociate.cpp256 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateAdd()
269 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateMul()
704 NewOp->setFastMathFlags(I->getFastMathFlags()); in RewriteExprTree()
730 FastMathFlags Flags = I->getFastMathFlags(); in RewriteExprTree()
1879 Builder.setFastMathFlags(FPI->getFastMathFlags()); in OptimizeMul()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp90 simplifyBinOp(I.getOpcode(), LHS, RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
H A DInstructionSimplify.cpp6891 return simplifyFAddInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
6897 return simplifyFSubInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
6903 return simplifyFMulInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
6909 return simplifyFDivInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
6915 return simplifyFRemInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
7077 return simplifyFNegInst(NewOps[0], I->getFastMathFlags(), Q, MaxRecurse); in simplifyInstructionWithOperands()
7079 return simplifyFAddInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
7086 return simplifyFSubInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
7093 return simplifyFMulInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
7108 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/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIVDescriptors.h201 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags() function
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h297 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags() function
299 FastMathFlags &getFastMathFlags() { return FMF; } in getFastMathFlags() function
1558 FastMathFlags FMF = FMFSource->getFastMathFlags();
1585 FastMathFlags FMF = FMFSource->getFastMathFlags();
1612 FastMathFlags FMF = FMFSource->getFastMathFlags();
1639 FastMathFlags FMF = FMFSource->getFastMathFlags();
1665 FastMathFlags FMF = FMFSource->getFastMathFlags();
1747 FastMathFlags FMF = FMFSource->getFastMathFlags();
H A DOperator.h320 FastMathFlags getFastMathFlags() const {
H A DInstruction.h623 FastMathFlags getFastMathFlags() const LLVM_READONLY;
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DIRMutator.cpp276 [&Inst] { Inst.setFast(!Inst.getFastMathFlags().all()); }); in mutate()
279 [&Inst] { Inst.setFast(!Inst.getFastMathFlags().none()); }); in mutate()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1928 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeDoubleFP()
1995 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeCAbs()
2007 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeCAbs()
2303 B.setFastMathFlags(Pow->getFastMathFlags()); in optimizePow()
2440 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeExp2()
2469 FastMathFlags FMF = CI->getFastMathFlags(); in optimizeFMinFMax()
2751 B.setFastMathFlags(I->getFastMathFlags()); in optimizeSqrt()
2891 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeSymmetricCall()
2906 B.setFastMathFlags(CI->getFastMathFlags()); in optimizeSymmetricCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVModuleAnalysis.cpp1269 static unsigned getFastMathFlags(const MachineInstr &I) { in getFastMathFlags() function
1304 unsigned FMFlags = getFastMathFlags(I); in handleMIFlagDecoration()

12