Home
last modified time | relevance | path

Searched refs:rmNearestTiesToEven (Results 1 – 25 of 60) sorted by relevance

123

/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXMCExpr.cpp35 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()
H A DNVPTXAsmPrinter.cpp1743 APF.convert(APFloat::IEEEsingle(), APFloat::rmNearestTiesToEven, &ignored); in printFPConstant()
1747 APF.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &ignored); in printFPConstant()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DAPFloatTest.cpp1486 P.roundToIntegral(APFloat::rmNearestTiesToEven); in TEST()
1499 P.roundToIntegral(APFloat::rmNearestTiesToEven); in TEST()
1941 APFloat::rmNearestTiesToEven); in TEST()
2776 APFloat::rmNearestTiesToEven}, in TEST()
2787 APFloat::rmNearestTiesToEven}, in TEST()
2798 APFloat::rmNearestTiesToEven}, in TEST()
3058 APFloat::rmNearestTiesToEven}, in TEST()
3069 APFloat::rmNearestTiesToEven}, in TEST()
3080 APFloat::rmNearestTiesToEven}, in TEST()
4725 APFloat::rmNearestTiesToEven); in TEST()
[all …]
H A DAPFixedPointTest.cpp807 Val.convert(APFloat::IEEEhalf(), APFloat::rmNearestTiesToEven, &Ignored); in TEST()
838 APRes.convert(APFloat::IEEEhalf(), APFloat::rmNearestTiesToEven, &Ignored); in CheckFixedToHalfConversion()
/llvm-project-15.0.7/llvm/lib/Support/
H A DAPFloat.cpp932 normalize(rmNearestTiesToEven, lfExactlyZero); in IEEEFloat()
1312 if (rounding_mode == rmNearestTiesToEven || in handleOverflow()
1347 case rmNearestTiesToEven: in roundAwayFromZero()
1929 fs = VEx.add(VEx, rmNearestTiesToEven); in remainder()
1933 fs = subtract(P, rmNearestTiesToEven); in remainder()
1939 fs = VEx.subtract(PEx, rmNearestTiesToEven); in remainder()
1946 fs = subtract(P, rmNearestTiesToEven); in remainder()
1968 V = scalbn(V, -1, rmNearestTiesToEven); in mod()
1971 fs = subtract(V, rmNearestTiesToEven); in mod()
3201 v.subtract(u, rmNearestTiesToEven); in convertPPCDoubleDoubleAPFloatToAPInt()
[all …]
H A DStringRef.cpp589 auto StatusOrErr = F.convertFromString(*this, APFloat::rmNearestTiesToEven); in getAsDouble()
H A DAPFixedPoint.cpp460 APFloat::roundingMode RM = APFloat::rmNearestTiesToEven; in convertToFloat()
/llvm-project-15.0.7/lldb/source/Utility/
H A DScalar.cpp201 llvm::APFloat::rmNearestTiesToEven); in FloatPromote()
209 m_float.convert(semantics, llvm::APFloat::rmNearestTiesToEven, &ignore); in FloatPromote()
374 result.convert(APFloat::IEEEsingle(), APFloat::rmNearestTiesToEven, in Float()
394 result.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, in Double()
683 f.convertFromString(value_str, APFloat::rmNearestTiesToEven)) { in SetValueFromCString()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DFloat2Int.cpp269 auto Res = NewF.roundToIntegral(APFloat::rmNearestTiesToEven); in calcRange()
277 APFloat::rmNearestTiesToEven, in calcRange()
446 APFloat::rmNearestTiesToEven, in convert()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPFloat.h190 static constexpr roundingMode rmNearestTiesToEven = member
1058 (void)Result.add(RHS, rmNearestTiesToEven);
1066 (void)Result.subtract(RHS, rmNearestTiesToEven);
1074 (void)Result.multiply(RHS, rmNearestTiesToEven);
1082 (void)Result.divide(RHS, rmNearestTiesToEven);
1201 Tmp.convert(getSemantics(), APFloat::rmNearestTiesToEven, &ignored); in isExactlyValue()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMagicNumbersCheck.h95 llvm::APFloat::rmNearestTiesToEven;
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp488 APF.convert(APFloat::IEEEhalf(), APFloat::rmNearestTiesToEven, &Ignored); in getAPFloatFromSize()
571 C1.add(C2, APFloat::rmNearestTiesToEven); in ConstantFoldFPBinOp()
574 C1.subtract(C2, APFloat::rmNearestTiesToEven); in ConstantFoldFPBinOp()
577 C1.multiply(C2, APFloat::rmNearestTiesToEven); in ConstantFoldFPBinOp()
580 C1.divide(C2, APFloat::rmNearestTiesToEven); in ConstantFoldFPBinOp()
769 APFloat::rmNearestTiesToEven); in ConstantFoldIntToFloat()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp690 APFloat::rmNearestTiesToEven); in getConstantValue()
705 APFloat::rmNearestTiesToEven); in getConstantValue()
843 apfLHS.add(APFloat(Sem, RHS.IntVal), APFloat::rmNearestTiesToEven); in getConstantValue()
848 APFloat::rmNearestTiesToEven); in getConstantValue()
853 APFloat::rmNearestTiesToEven); in getConstantValue()
858 APFloat::rmNearestTiesToEven); in getConstantValue()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/
H A DArithmeticOps.cpp1070 APFloat::rmNearestTiesToEven); in fold()
1096 APFloat::rmNearestTiesToEven); in fold()
1563 APFloat::rmNearestTiesToEven); in matchAndRewrite()
1579 APFloat::rmNearestTiesToEven); in matchAndRewrite()
1596 APFloat::rmNearestTiesToEven); in matchAndRewrite()
1611 APFloat::rmNearestTiesToEven); in matchAndRewrite()
1640 apf.convertFromAPInt(rhsInt, !isUnsigned, APFloat::rmNearestTiesToEven); in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DConstantFolding.cpp1737 APF.convert(Ty->getFltSemantics(), APFloat::rmNearestTiesToEven, &unused); in GetConstantFoldFPValue()
1867 : APFloat::rmNearestTiesToEven; in ConstantFoldSSEConvertToInt()
1885 APF.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &unused); in getValueAsDouble()
1999 Val.convert(APFloat::IEEEhalf(), APFloat::rmNearestTiesToEven, &lost); in ConstantFoldScalarCall1()
2041 U.roundToIntegral(APFloat::rmNearestTiesToEven); in ConstantFoldScalarCall1()
2051 U.roundToIntegral(APFloat::rmNearestTiesToEven); in ConstantFoldScalarCall1()
2297 U.roundToIntegral(APFloat::rmNearestTiesToEven); in ConstantFoldScalarCall1()
2359 Ty->getFltSemantics(), APFloat::rmNearestTiesToEven, &lost); in ConstantFoldScalarCall1()
2603 APFloat::rmNearestTiesToEven); in ConstantFoldScalarCall2()
2952 V.fusedMultiplyAdd(C2, C3, APFloat::rmNearestTiesToEven); in ConstantFoldScalarCall3()
/llvm-project-15.0.7/lldb/include/lldb/Utility/
H A DScalar.h68 llvm::APFloat::rmNearestTiesToEven, &ignore); in Scalar()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantFold.cpp438 Val.convert(DestTy->getFltSemantics(), APFloat::rmNearestTiesToEven, in ConstantFoldCastInstruction()
476 APFloat::rmNearestTiesToEven); in ConstantFoldCastInstruction()
1199 (void)C3V.add(C2V, APFloat::rmNearestTiesToEven); in ConstantFoldBinaryInstruction()
1202 (void)C3V.subtract(C2V, APFloat::rmNearestTiesToEven); in ConstantFoldBinaryInstruction()
1205 (void)C3V.multiply(C2V, APFloat::rmNearestTiesToEven); in ConstantFoldBinaryInstruction()
1208 (void)C3V.divide(C2V, APFloat::rmNearestTiesToEven); in ConstantFoldBinaryInstruction()
H A DConstants.cpp932 APFloat::rmNearestTiesToEven, &ignored); in get()
1540 Val2.convert(APFloat::IEEEhalf(), APFloat::rmNearestTiesToEven, &losesInfo); in isValueValidForType()
1546 Val2.convert(APFloat::BFloat(), APFloat::rmNearestTiesToEven, &losesInfo); in isValueValidForType()
1552 Val2.convert(APFloat::IEEEsingle(), APFloat::rmNearestTiesToEven, &losesInfo); in isValueValidForType()
1561 Val2.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &losesInfo); in isValueValidForType()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyInstPrinter.cpp285 Buf, /*HexDigits=*/0, /*UpperCase=*/false, APFloat::rmNearestTiesToEven); in toString()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp370 Val.divide(ArgVal, APFloat::rmNearestTiesToEven); in instCombineIntrinsic()
399 frexp(C->getValueAPF(), Exp, APFloat::rmNearestTiesToEven); in instCombineIntrinsic()
1003 ConstantFP::get(Ty, scalbn(*C, 0, APFloat::rmNearestTiesToEven)); in instCombineIntrinsic()
H A DAMDGPUPrintfRuntimeBinding.cpp405 Val.convert(APFloat::IEEEsingle(), APFloat::rmNearestTiesToEven, in lowerPrintfForGpu()
/llvm-project-15.0.7/lldb/source/Core/
H A DDumpDataExtractor.cpp766 llvm::APFloat::rmNearestTiesToEven); in DumpDataExtractor()
773 llvm::APFloat::rmNearestTiesToEven); in DumpDataExtractor()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DNarrowingConversionsCheck.cpp494 llvm::APFloatBase::rmNearestTiesToEven, &UnusedLosesInfo); in handleFloatingCast()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DPGOInstrumentation.cpp1633 SumCount.add(APFloat(CountValue * 1.0), APFloat::rmNearestTiesToEven); in fixFuncEntryCount()
1634 SumBFICount.add(APFloat(BFICountValue * 1.0), APFloat::rmNearestTiesToEven); in fixFuncEntryCount()
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DAttributeParser.cpp669 apVal.convert(eltTy.getFloatSemantics(), APFloat::rmNearestTiesToEven, in getFloatAttrElements()

123