Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DOperator.h83 FastMathFlags getFastMathFlags() const { in getFastMathFlags() function
84 return cast<llvm::FPMathOperator>(Val)->getFastMathFlags(); in getFastMathFlags()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/SandboxVectorizer/
H A DLegality.cpp55 FastMathFlags FMF0 = cast<Instruction>(Bndl[0])->getFastMathFlags(); in notVectorizableBasedOnOpcodesAndTypes()
57 return cast<Instruction>(V)->getFastMathFlags() != FMF0; in notVectorizableBasedOnOpcodesAndTypes()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp664 FastMathFlags Instruction::getFastMathFlags() const { in getFastMathFlags() function in Instruction
666 return cast<FPMathOperator>(this)->getFastMathFlags(); in getFastMathFlags()
670 copyFastMathFlags(I->getFastMathFlags()); in copyFastMathFlags()
701 copyFastMathFlags(FP->getFastMathFlags()); in copyIRFlags()
742 FastMathFlags FM = getFastMathFlags(); in andIRFlags()
743 FM &= FP->getFastMathFlags(); in andIRFlags()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp788 FastMathFlags FMF = I.getFastMathFlags() & Op0BinOp->getFastMathFlags(); in foldFMulReassoc()
839 FastMathFlags FMF = I.getFastMathFlags() & DivOp->getFastMathFlags(); in foldFMulReassoc()
955 I.getFastMathFlags(), in visitFMul()
1013 SI->copyFastMathFlags(I.getFastMathFlags()); in visitFMul()
1019 SI->copyFastMathFlags(I.getFastMathFlags()); in visitFMul()
2070 FastMathFlags R1FMF = (*R1.begin())->getFastMathFlags(); // Common FMF in convertFSqrtDivIntoFMul()
2074 R1FMF &= I->getFastMathFlags(); in convertFSqrtDivIntoFMul()
2087 FastMathFlags R2FMF = (*R2.begin())->getFastMathFlags(); // Common FMF in convertFSqrtDivIntoFMul()
2091 R2FMF &= I->getFastMathFlags(); in convertFSqrtDivIntoFMul()
2115 I.getFastMathFlags(), in visitFDiv()
[all …]
H A DInstCombineAddSub.cpp686 NewInstr->setFastMathFlags(Instr->getFastMathFlags()); in createInstPostProc()
1990 I.getFastMathFlags(), in visitFAdd()
2909 FastMathFlags FNegF = I.getFastMathFlags(); in foldFNegIntoConstant()
2910 FastMathFlags OpF = FNegOp->getFastMathFlags(); in foldFNegIntoConstant()
2928 FastMathFlags FMF = I.getFastMathFlags(); in foldFNegIntoConstant()
2929 FastMathFlags OpFMF = FNegOp->getFastMathFlags(); in foldFNegIntoConstant()
2961 FastMathFlags FMF = FMFSource.getFastMathFlags() | II->getFastMathFlags(); in hoistFNegAboveFMulFDiv()
2978 if (Value *V = simplifyFNegInst(Op, I.getFastMathFlags(), in visitFNeg()
3008 FastMathFlags FMF = I.getFastMathFlags() | OldSel->getFastMathFlags(); in visitFNeg()
3046 FastMathFlags FMF = I.getFastMathFlags(); in visitFNeg()
[all …]
H A DInstCombineSelect.cpp344 FastMathFlags FMF = TI->getFastMathFlags(); in foldSelectOpOp()
345 FMF &= FI->getFastMathFlags(); in foldSelectOpOp()
346 FMF |= SI.getFastMathFlags(); in foldSelectOpOp()
383 FastMathFlags FMF = cast<FPMathOperator>(TII)->getFastMathFlags(); in foldSelectOpOp()
384 FMF &= cast<FPMathOperator>(FII)->getFastMathFlags(); in foldSelectOpOp()
385 FMF |= SelectFPOp->getFastMathFlags(); in foldSelectOpOp()
518 FMF = SI.getFastMathFlags(); in foldSelectIntoOp()
2117 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
2118 Flags &= SubOp->getFastMathFlags(); in foldAddSubSelect()
2136 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
[all …]
H A DInstCombineCalls.cpp2761 II->getFastMathFlags(), SQ.getWithInstruction(II))) in visitCallInst()
2763 II->getFastMathFlags()); in visitCallInst()
2789 if (Value *V = simplifyFMAFMul(Src0, Src1, II->getFastMathFlags(), in visitCallInst()
2791 return BinaryOperator::CreateFAddFMF(V, Src2, II->getFastMathFlags()); in visitCallInst()
2797 (match(Src2, m_PosZeroFP()) && II->getFastMathFlags().noSignedZeros())) in visitCallInst()
2867 FastMathFlags FMF1 = II->getFastMathFlags(); in visitCallInst()
2868 FastMathFlags FMF2 = cast<SelectInst>(Arg)->getFastMathFlags(); in visitCallInst()
2950 FastMathFlags FMF = II->getFastMathFlags(); in visitCallInst()
2951 FastMathFlags InnerFlags = cast<FPMathOperator>(Src)->getFastMathFlags(); in visitCallInst()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DComplexDeinterleavingPass.cpp694 (!Real->getFastMathFlags().allowContract() || in identifyPartialMul()
695 !Imag->getFastMathFlags().allowContract())) { in identifyPartialMul()
894 Real->getFastMathFlags() != Imag->getFastMathFlags()) in identifySymmetricOperation()
901 Node->Flags = Real->getFastMathFlags(); in identifySymmetricOperation()
1134 if (Real->getFastMathFlags() != Imag->getFastMathFlags()) { in identifyReassocNodes()
1140 Flags = Real->getFastMathFlags(); in identifyReassocNodes()
1223 if (Flags && I->getFastMathFlags() != *Flags) { in identifyReassocNodes()
H A DExpandReductions.cpp59 isa<FPMathOperator>(II) ? II->getFastMathFlags() : FastMathFlags{}; in expandReductions()
H A DExpandVectorPredication.cpp107 NewInst->setFastMathFlags(OldFMOp->getFastMathFlags()); in transferDecorations()
330 FMF = VPI.getFastMathFlags(); in getNeutralReductionElement()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/
H A DPPC.cpp796 FastMathFlags FMF = Builder.getFastMathFlags(); in EmitPPCBuiltinExpr()
797 Builder.getFastMathFlags().setFast(); in EmitPPCBuiltinExpr()
805 Builder.getFastMathFlags() &= (FMF); in EmitPPCBuiltinExpr()
811 Builder.getFastMathFlags() &= (FMF); in EmitPPCBuiltinExpr()
1246 FastMathFlags FMF = Builder.getFastMathFlags(); in EmitPPCBuiltinExpr()
1247 Builder.getFastMathFlags().setFast(); in EmitPPCBuiltinExpr()
1249 Builder.getFastMathFlags() &= (FMF); in EmitPPCBuiltinExpr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp560 static FastMathFlags getFastMathFlags(Instruction *Inst) { in getFastMathFlags() function in __anon821fcdb70111::LowerMatrixIntrinsics
564 FMF = Inst->getFastMathFlags(); in getFastMathFlags()
1131 lowerDotProduct(CI, FusedInsts, getFastMathFlags(CI)); in Visit()
1251 Builder.setFastMathFlags(getFastMathFlags(Inst)); in VisitIntrinsicInst()
1961 getFastMathFlags(MatMul)); in createTiledLoops()
2021 getFastMathFlags(MatMul)); in emitSIMDTiling()
2092 getFastMathFlags(MatMul)); in LowerMatrixMultiplyFused()
2216 getFastMathFlags(MatMul)); in LowerMultiply()
2311 Builder.setFastMathFlags(getFastMathFlags(Inst)); in VisitBinaryOperator()
2328 Builder.setFastMathFlags(getFastMathFlags(Inst)); in VisitUnaryOperator()
[all …]
H A DReassociate.cpp258 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateAdd()
271 Res->setFastMathFlags(cast<FPMathOperator>(FlagsOp)->getFastMathFlags()); in CreateMul()
704 NewOp->setFastMathFlags(I->getFastMathFlags()); in RewriteExprTree()
730 FastMathFlags Flags = I->getFastMathFlags(); in RewriteExprTree()
1880 Builder.setFastMathFlags(FPI->getFastMathFlags()); in OptimizeMul()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp759 Builder.setFastMathFlags(FPOp->getFastMathFlags()); in foldBinOpIntoSelect()
1090 const FastMathFlags DivFMF = FPOp->getFastMathFlags(); in visitFDiv()
1103 SqrtFMF = SqrtOp->getFastMathFlags(); in visitFDiv()
1288 FQ->copyFastMathFlags(Builder.getFastMathFlags()); in expandDivRem24Impl()
1805 Builder.setFastMathFlags(FPOp->getFastMathFlags()); in visitSelectInst()
2295 FastMathFlags FMF = I.getFastMathFlags(); in visitFMinLike()
2319 FastMathFlags SqrtFMF = FPOp->getFastMathFlags(); in visitSqrt()
2339 canOptimizeWithRsq(FPOp, FDiv->getFastMathFlags(), SqrtFMF) && in visitSqrt()
H A DAMDGPULibCalls.cpp676 FastMathFlags FMF = FPOp->getFastMathFlags(); in fold()
775 FPOp->getFastMathFlags())) { in fold()
1096 if (!isKnownIntegral(opr1, M->getDataLayout(), FPOp->getFastMathFlags())) in fold_pow()
1224 FastMathFlags FMF = FPOp->getFastMathFlags(); in fold_rootn()
1402 FastMathFlags FMF = FPOp->getFastMathFlags(); in fold_sincos()
1431 FMF &= OtherOp->getFastMathFlags(); in fold_sincos()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp91 simplifyBinOp(I.getOpcode(), LHS, RHS, FI->getFastMathFlags(), DL); in visitBinaryOperator()
H A DInstructionSimplify.cpp6917 return simplifyFAddInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
6923 return simplifyFSubInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
6929 return simplifyFMulInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
6935 return simplifyFDivInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
6941 return simplifyFRemInst(Args[0], Args[1], FPI->getFastMathFlags(), Q, in simplifyIntrinsic()
7120 return simplifyFNegInst(NewOps[0], I->getFastMathFlags(), Q, MaxRecurse); in simplifyInstructionWithOperands()
7122 return simplifyFAddInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
7129 return simplifyFSubInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
7136 return simplifyFMulInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
7151 return simplifyFDivInst(NewOps[0], NewOps[1], I->getFastMathFlags(), Q, in simplifyInstructionWithOperands()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanRecipes.cpp396 FastMathFlags VPIRFlags::getFastMathFlags() const { in getFastMathFlags() function in VPIRFlags
728 Builder.setFastMathFlags(getFastMathFlags()); in generate()
801 Builder.setFastMathFlags(getFastMathFlags()); in generate()
1003 State.Builder.setFastMathFlags(getFastMathFlags()); in execute()
1553 FastMathFlags FMF = hasFastMathFlags() ? getFastMathFlags() : FastMathFlags(); in computeCost()
1828 getFastMathFlags().print(O); in printFlags()
2165 State.Builder.setFastMathFlags(getFastMathFlags()); in execute()
2496 State.Builder.setFastMathFlags(getFastMathFlags()); in execute()
2503 Value *Start = getRecurrenceIdentity(Kind, ElementTy, getFastMathFlags()); in execute()
2541 Builder.setFastMathFlags(getFastMathFlags()); in execute()
[all …]
H A DVPlan.h691 FMFs = Op->getFastMathFlags(); in VPIRFlags()
811 LLVM_ABI_FOR_TEST FastMathFlags getFastMathFlags() const;
2503 return new VPReductionRecipe(RdxKind, getFastMathFlags(), in clone()
2616 R.getFastMathFlags(),
3469 ? IndDesc.getInductionBinOp()->getFastMathFlags()
3478 hasFastMathFlags() ? getFastMathFlags() : FastMathFlags(), in clone()
H A DLoopVectorizationPlanner.h312 FPBinOp ? FPBinOp->getFastMathFlags() : FastMathFlags(), DL)); in createScalarIVSteps()
H A DVPlanUnroll.cpp158 Flags = ID.getInductionBinOp()->getFastMathFlags(); in unrollWidenInductionByUF()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIVDescriptors.h227 FastMathFlags getFastMathFlags() const { return FMF; } in getFastMathFlags() function
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DIRMutator.cpp309 [&Inst] { Inst.setFast(!Inst.getFastMathFlags().all()); }); in mutate()
312 [&Inst] { Inst.setFast(!Inst.getFastMathFlags().none()); }); in mutate()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h333 FastMathFlags getFastMathFlags() const {
H A DInstruction.h675 LLVM_ABI FastMathFlags getFastMathFlags() const LLVM_READONLY;

123