Home
last modified time | relevance | path

Searched refs:APF (Results 1 – 19 of 19) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXMCExpr.cpp26 APFloat APF = getAPFloat(); in printImpl() local
35 APF.convert(APFloat::IEEEhalf(), APFloat::rmNearestTiesToEven, &Ignored); in printImpl()
40 APF.convert(APFloat::IEEEsingle(), APFloat::rmNearestTiesToEven, &Ignored); in printImpl()
45 APF.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &Ignored); in printImpl()
49 APInt API = APF.bitcastToAPInt(); in printImpl()
H A DNVPTXAsmPrinter.cpp1745 APFloat APF = APFloat(Fp->getValueAPF()); // make a copy in printFPConstant() local
1753 APF.convert(APFloat::IEEEsingle(), APFloat::rmNearestTiesToEven, &ignored); in printFPConstant()
1757 APF.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &ignored); in printFPConstant()
1761 APInt API = APF.bitcastToAPInt(); in printFPConstant()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DConstantFolding.cpp1360 const APFloat &APF = CFP->getValueAPF(); in FlushFPConstant() local
1373 if (APF.isDenormal()) { in FlushFPConstant()
1376 APFloat::getZero(Ty->getFltSemantics(), APF.isNegative())); in FlushFPConstant()
1380 if (APF.isDenormal()) { in FlushFPConstant()
1736 APFloat APF(V); in GetConstantFoldFPValue() local
1738 APF.convert(Ty->getFltSemantics(), APFloat::rmNearestTiesToEven, &unused); in GetConstantFoldFPValue()
1739 return ConstantFP::get(Ty->getContext(), APF); in GetConstantFoldFPValue()
1885 APFloat APF = Op->getValueAPF(); in getValueAsDouble() local
1886 APF.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &unused); in getValueAsDouble()
1887 return APF.convertToDouble(); in getValueAsDouble()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUCombinerHelper.cpp139 static bool isInv2Pi(const APFloat &APF) { in isInv2Pi() argument
145 return APF.bitwiseIsEqual(KF16) || APF.bitwiseIsEqual(KF32) || in isInv2Pi()
146 APF.bitwiseIsEqual(KF64); in isInv2Pi()
H A DAMDGPUISelLowering.cpp3782 static bool isInv2Pi(const APFloat &APF) { in isInv2Pi() argument
3787 return APF.bitwiseIsEqual(KF16) || in isInv2Pi()
3788 APF.bitwiseIsEqual(KF32) || in isInv2Pi()
3789 APF.bitwiseIsEqual(KF64); in isInv2Pi()
H A DSIISelLowering.cpp11498 const APFloat &APF = CRHS->getValueAPF(); in performSetCCCombine() local
11499 if (APF.isInfinity() && !APF.isNegative()) { in performSetCCCombine()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DAsmWriter.cpp1361 const APFloat &APF = CFP->getValueAPF(); in WriteConstantInternal() local
1362 if (&APF.getSemantics() == &APFloat::IEEEsingle() || in WriteConstantInternal()
1363 &APF.getSemantics() == &APFloat::IEEEdouble()) { in WriteConstantInternal()
1370 bool isDouble = &APF.getSemantics() == &APFloat::IEEEdouble(); in WriteConstantInternal()
1371 bool isInf = APF.isInfinity(); in WriteConstantInternal()
1372 bool isNaN = APF.isNaN(); in WriteConstantInternal()
1374 double Val = APF.convertToDouble(); in WriteConstantInternal()
1376 APF.toString(StrVal, 6, 0, false); in WriteConstantInternal()
1396 APFloat apf = APF; in WriteConstantInternal()
1419 APInt API = APF.bitcastToAPInt(); in WriteConstantInternal()
[all …]
H A DCore.cpp1439 APFloat APF = cFP->getValueAPF(); in LLVMConstRealGetDouble() local
1440 APF.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &APFLosesInfo); in LLVMConstRealGetDouble()
1442 return APF.convertToDouble(); in LLVMConstRealGetDouble()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfExpression.cpp223 void DwarfExpression::addConstantFP(const APFloat &APF, const AsmPrinter &AP) { in addConstantFP() argument
225 APInt API = APF.bitcastToAPInt(); in addConstantFP()
H A DAsmPrinter.cpp1159 APFloat APF = APFloat(Op.getFPImm()->getValueAPF()); in emitDebugValueComment() local
1163 OS << APF.convertToDouble(); in emitDebugValueComment()
1168 APF.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, in emitDebugValueComment()
1170 OS << "(long double) " << APF.convertToDouble(); in emitDebugValueComment()
3042 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP);
3239 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP) { in emitGlobalConstantFP() argument
3241 APInt API = APF.bitcastToAPInt(); in emitGlobalConstantFP()
3247 APF.toString(StrVal); in emitGlobalConstantFP()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp489 APFloat APF(Val); in getAPFloatFromSize() local
490 APF.convert(APFloat::IEEEhalf(), APFloat::rmNearestTiesToEven, &Ignored); in getAPFloatFromSize()
491 return APF; in getAPFloatFromSize()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp194 static bool ConvertToSInt(const APFloat &APF, int64_t &IntVal) { in ConvertToSInt() argument
198 if (APF.convertToInteger(MutableArrayRef(UIntVal), 64, true, in ConvertToSInt()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp306 APFloat APF = CFP->getValueAPF(); in ExpandConstantFP() local
312 if (!APF.isSignaling()) { in ExpandConstantFP()
315 if (ConstantFPSDNode::isValueValidForType(SVT, APF) && in ExpandConstantFP()
H A DSelectionDAG.cpp1699 APFloat APF = APFloat(Val); in getConstantFP() local
1700 APF.convert(EVTToAPFloatSemantics(EltVT), APFloat::rmNearestTiesToEven, in getConstantFP()
1702 return getConstantFP(APF, DL, VT, isTarget); in getConstantFP()
11886 const APFloat &APF = CN->getValueAPF(); in getConstantFPSplatPow2ToLog2Int() local
11887 if (APF.convertToInteger(IntVal, APFloat::rmTowardZero, &IsExact) != in getConstantFPSplatPow2ToLog2Int()
H A DTargetLowering.cpp7804 APFloat APF(APFSem, APInt::getZero(SrcVT.getScalarSizeInBits())); in expandFP_TO_UINT() local
7807 APF.convertFromAPInt(SignMask, false, APFloat::rmNearestTiesToEven)) { in expandFP_TO_UINT()
7822 SDValue Cst = DAG.getConstantFP(APF, dl, SrcVT); in expandFP_TO_UINT()
/openbsd-src/share/misc/
H A Dairport100 APF:Naples Municipal, Florida, USA
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp2216 static std::optional<uint64_t> getExactInteger(const APFloat &APF, in getExactInteger() argument
2218 APSInt ValInt(BitWidth, !APF.isNegative()); in getExactInteger()
2227 if ((APF.convertToInteger(ValInt, ArbitraryRM, &IsExact) == in getExactInteger()
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp8203 APFloat APF = APFloat(APFloat::PPCDoubleDouble(), APInt(128, TwoE31)); in LowerFP_TO_INT() local
8204 SDValue Cst = DAG.getConstantFP(APF, dl, SrcVT); in LowerFP_TO_INT()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp23753 APFloat APF = Op0CN->getValueAPF(); in LowerFCOPYSIGN() local
23754 APF.clearSign(); in LowerFCOPYSIGN()
23755 MagBits = DAG.getConstantFP(APF, dl, LogicVT); in LowerFCOPYSIGN()