Home
last modified time | relevance | path

Searched refs:FPOp (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp78 bool fold_pow(FPMathOperator *FPOp, IRBuilder<> &B, const FuncInfo &FInfo);
81 bool fold_rootn(FPMathOperator *FPOp, IRBuilder<> &B, const FuncInfo &FInfo);
99 bool fold_sincos(FPMathOperator *FPOp, IRBuilder<> &B, const FuncInfo &FInfo);
124 bool isUnsafeMath(const FPMathOperator *FPOp) const;
125 bool isUnsafeFiniteOnlyMath(const FPMathOperator *FPOp) const;
127 bool canIncreasePrecisionOfConstantFold(const FPMathOperator *FPOp) const;
422 bool AMDGPULibCalls::isUnsafeMath(const FPMathOperator *FPOp) const { in isUnsafeMath()
423 return UnsafeFPMath || FPOp->isFast(); in isUnsafeMath()
426 bool AMDGPULibCalls::isUnsafeFiniteOnlyMath(const FPMathOperator *FPOp) const { in isUnsafeFiniteOnlyMath()
428 (FPOp->hasApproxFunc() && FPOp->hasNoNaNs() && FPOp->hasNoInfs()); in isUnsafeFiniteOnlyMath()
[all …]
H A DAMDGPUCodeGenPrepare.cpp754 if (const FPMathOperator *FPOp = dyn_cast<const FPMathOperator>(&BO)) in foldBinOpIntoSelect() local
755 Builder.setFastMathFlags(FPOp->getFastMathFlags()); in foldBinOpIntoSelect()
1085 const FPMathOperator *FPOp = cast<const FPMathOperator>(&FDiv); in visitFDiv() local
1086 const FastMathFlags DivFMF = FPOp->getFastMathFlags(); in visitFDiv()
1087 const float ReqdAccuracy = FPOp->getFPAccuracy(); in visitFDiv()
1142 cast<Instruction>(FPOp), ReqdAccuracy); in visitFDiv()
1704 FPMathOperator *FPOp = dyn_cast<FPMathOperator>(&I); in visitSelectInst() local
1705 if (!FPOp) in visitSelectInst()
1709 Builder.setFastMathFlags(FPOp->getFastMathFlags()); in visitSelectInst()
2210 const FPMathOperator *FPOp = cast<const FPMathOperator>(&Sqrt); in visitSqrt() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp2535 if (ConstantFP *FPOp = in ConstantFoldScalarCall1() local
2537 return ConstantFoldSSEConvertToInt(FPOp->getValueAPF(), in ConstantFoldScalarCall1()
2545 if (ConstantFP *FPOp = in ConstantFoldScalarCall1() local
2547 return ConstantFoldSSEConvertToInt(FPOp->getValueAPF(), in ConstantFoldScalarCall1()
2959 if (ConstantFP *FPOp = in ConstantFoldIntrinsicCall2() local
2961 return ConstantFoldSSEConvertToInt(FPOp->getValueAPF(), in ConstantFoldIntrinsicCall2()
2969 if (ConstantFP *FPOp = in ConstantFoldIntrinsicCall2() local
2971 return ConstantFoldSSEConvertToInt(FPOp->getValueAPF(), in ConstantFoldIntrinsicCall2()
2979 if (ConstantFP *FPOp = in ConstantFoldIntrinsicCall2() local
2981 return ConstantFoldSSEConvertToInt(FPOp->getValueAPF(), in ConstantFoldIntrinsicCall2()
[all …]
H A DValueTracking.cpp4957 if (const FPMathOperator *FPOp = dyn_cast_or_null<FPMathOperator>(Op)) { in computeKnownFPClass() local
4958 if (FPOp->hasNoNaNs()) in computeKnownFPClass()
4960 if (FPOp->hasNoInfs()) in computeKnownFPClass()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp3561 if (auto *FPOp = dyn_cast<FPMathOperator>(&I)) in visitUnary() local
3562 Flags.copyFMF(*FPOp); in visitUnary()
3580 if (auto *FPOp = dyn_cast<FPMathOperator>(&I)) in visitBinary() local
3581 Flags.copyFMF(*FPOp); in visitBinary()
3709 if (auto *FPOp = dyn_cast<FPMathOperator>(&I)) in visitSelect() local
3710 Flags.copyFMF(*FPOp); in visitSelect()
6396 if (auto *FPOp = dyn_cast<FPMathOperator>(&I)) in visitIntrinsicCall() local
6397 Flags.copyFMF(*FPOp); in visitIntrinsicCall()
8184 if (auto *FPOp = dyn_cast<FPMathOperator>(&FPI)) in visitConstrainedFPIntrinsic() local
8185 Flags.copyFMF(*FPOp); in visitConstrainedFPIntrinsic()
H A DLegalizeDAG.cpp2140 SDValue FPOp = Node->getOperand(0); in ExpandFrexpLibCall() local
2142 EVT ArgVT = FPOp.getValueType(); in ExpandFrexpLibCall()
2146 FPArgEntry.Node = FPOp; in ExpandFrexpLibCall()
H A DDAGCombiner.cpp15361 SDValue FPOp = DAG.getNode(FPOpcode, SDLoc(N), VT, CastOp0); in foldBitcastedFPLogic() local
15364 return DAG.getNode(ISD::FNEG, SDLoc(N), VT, FPOp); in foldBitcastedFPLogic()
15365 return FPOp; in foldBitcastedFPLogic()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp5312 SDValue FPOp, in PrepareTailCall() argument
5325 Chain = EmitTailCallStoreFPAndRetAddr(DAG, Chain, LROp, FPOp, SPDiff, dl); in PrepareTailCall()
6073 SDValue LROp, FPOp; in LowerCall_32SVR4() local
6074 Chain = EmitTailCallLoadFPAndRetAddr(DAG, SPDiff, Chain, LROp, FPOp, dl); in LowerCall_32SVR4()
6200 PrepareTailCall(DAG, InGlue, Chain, dl, SPDiff, NumBytes, LROp, FPOp, in LowerCall_32SVR4()
6401 SDValue LROp, FPOp; in LowerCall_64SVR4() local
6402 Chain = EmitTailCallLoadFPAndRetAddr(DAG, SPDiff, Chain, LROp, FPOp, dl); in LowerCall_64SVR4()
6802 PrepareTailCall(DAG, InGlue, Chain, dl, SPDiff, NumBytes, LROp, FPOp, in LowerCall_64SVR4()