Home
last modified time | relevance | path

Searched refs:roundingMode (Results 1 – 22 of 22) sorted by relevance

/llvm-project/llvm/include/llvm/ADT/
H A DAPFloat.h300 using roundingMode = llvm::RoundingMode;
302 static constexpr roundingMode rmNearestTiesToEven =
304 static constexpr roundingMode rmTowardPositive = RoundingMode::TowardPositive;
305 static constexpr roundingMode rmTowardNegative = RoundingMode::TowardNegative;
306 static constexpr roundingMode rmTowardZero = RoundingMode::TowardZero;
307 static constexpr roundingMode rmNearestTiesToAway =
371 using roundingMode = APFloatBase::roundingMode;
377 static constexpr roundingMode rmNearestTiesToEven =
379 static constexpr roundingMode rmNearestTiesToAwa
244 using roundingMode = llvm::RoundingMode; global() member
[all...]
/llvm-project/llvm/lib/Support/
H A DAPFloat.cpp1574 APFloat::opStatus IEEEFloat::handleOverflow(roundingMode rounding_mode) { in roundAwayFromZero()
1606 bool IEEEFloat::roundAwayFromZero(roundingMode rounding_mode, in normalize()
1644 APFloat::opStatus IEEEFloat::normalize(roundingMode rounding_mode, in normalize()
2089 roundingMode rounding_mode, in multiply()
2122 roundingMode rounding_mode) { in remainder()
2128 roundingMode rounding_mode) { in remainder()
2134 roundingMode rounding_mode) { in remainder()
2154 roundingMode rounding_mode) { in remainder()
2323 roundingMode rounding_mode) { in roundToIntegral()
2367 APFloat::opStatus IEEEFloat::roundToIntegral(roundingMode rounding_mod in roundToIntegral()
[all...]
H A DAPFixedPoint.cpp507 APFloat::roundingMode RM = APFloat::rmNearestTiesToEven; in convertToFloat()
508 APFloat::roundingMode LosslessRM = APFloat::rmTowardZero; in convertToFloat()
555 APFloat::roundingMode RM = APFloat::rmTowardZero; in getFromFloatValue()
556 APFloat::roundingMode LosslessRM = APFloat::rmTowardZero; in getFromFloatValue()
/llvm-project/mlir/lib/Conversion/ArithCommon/
H A DAttrToLLVMConverter.cpp53 mlir::arith::convertArithRoundingModeToLLVM(arith::RoundingMode roundingMode) { in convertArithRoundingModeToLLVM() argument
54 switch (roundingMode) { in convertArithRoundingModeToLLVM()
/llvm-project/libc/src/__support/FPUtil/aarch64/
H A DFEnvImpl.h217 uint32_t roundingMode = in get_round() local
219 switch (roundingMode) { in get_round()
/llvm-project/clang-tools-extra/clang-tidy/readability/
H A DMagicNumbersCheck.h102 constexpr static llvm::APFloat::roundingMode DefaultRoundingMode =
/llvm-project/mlir/include/mlir/Conversion/ArithCommon/
H A DAttrToLLVMConverter.h37 convertArithRoundingModeToLLVM(arith::RoundingMode roundingMode);
/llvm-project/flang/lib/Evaluate/
H A Dhost.cpp88 switch (context.targetCharacteristics().roundingMode().mode) { in SetUpHostFloatingPointEnvironment()
H A Dfold-reduction.h47 const auto &rounding{context.targetCharacteristics().roundingMode()}; in FoldDotProduct()
97 const auto &rounding{context.targetCharacteristics().roundingMode()}; in FoldDotProduct()
406 arrayAndMask->array, context.targetCharacteristics().roundingMode()};
H A Dfold-matmul.h42 context.targetCharacteristics().roundingMode()}; in FoldMatmul()
H A Dfold-logical.cpp55 common::RoundingMode roundingMode{round in RealToIntBoundHelper()
62 while (!at.template ToInteger<IntType>(roundingMode) in RealToIntBoundHelper()
80 } else if (!tmp.value.template ToInteger<IntType>(roundingMode) in RealToIntBoundHelper()
54 common::RoundingMode roundingMode{round RealToIntBoundHelper() local
H A Dfold-implementation.h1983 folded->second, context.targetCharacteristics().roundingMode())}; in FoldOperation()
2014 folded->second, context.targetCharacteristics().roundingMode())}; in FoldOperation()
2045 folded->second, context.targetCharacteristics().roundingMode())}; in FoldOperation()
2110 folded->second, context.targetCharacteristics().roundingMode())}; in FoldOperation()
H A Dfold-real.cpp131 context.targetCharacteristics().roundingMode()}; in FoldNorm2()
/llvm-project/flang/include/flang/Evaluate/
H A Dtarget.h57 Rounding roundingMode() const { return roundingMode_; }
55 Rounding roundingMode() const { return roundingMode_; } roundingMode() function
/llvm-project/mlir/include/mlir/Dialect/Quant/
H A DUniformSupport.h
/llvm-project/llvm/unittests/ADT/
H A DAPFloatTest.cpp480 APFloat::roundingMode rdmd = APFloat::rmNearestTiesToEven; in TEST()
739 APFloat::roundingMode rdmd = APFloat::rmNearestTiesToEven; in TEST()
3133 APFloat::roundingMode roundingMode = APFloat::rmNearestTiesToEven; in TEST()
3391 APFloat::opStatus status = x.multiply(y, SpecialCaseTests[i].roundingMode); in TEST()
3437 APFloat::roundingMode roundingMode = APFloat::rmNearestTiesToEven; in TEST()
3673 APFloat::opStatus status = x.divide(y, SpecialCaseTests[i].roundingMode); in TEST()
3874 const APFloat::roundingMode RM = APFloat::rmNearestTiesToEven; in TEST()
4044 const APFloat::roundingMode R in TEST()
3020 APFloat::roundingMode roundingMode = APFloat::rmNearestTiesToEven; TEST() member
3324 APFloat::roundingMode roundingMode = APFloat::rmNearestTiesToEven; TEST() member
5648 APFloat::roundingMode roundingMode = APFloat::rmNearestTiesToEven; TEST() member
5947 APFloat::roundingMode roundingMode = APFloat::rmNearestTiesToEven; TEST() member
6145 APFloat::roundingMode roundingMode = APFloat::rmNearestTiesToEven; TEST() member
[all...]
/llvm-project/mlir/lib/Dialect/Arith/IR/
H A DArithOps.cpp103 /// convertRoundingModeToLLVM(convertArithRoundingModeToLLVM(roundingMode)).
109 convertArithRoundingModeToLLVMIR(RoundingMode roundingMode) { in convertArithRoundingModeToLLVMIR()
110 switch (roundingMode) { in convertArithRoundingModeToLLVMIR()
1345 /// `targetSemantics` and `roundingMode`, without any information loss. in fold()
1348 llvm::RoundingMode roundingMode = llvm::RoundingMode::NearestTiesToEven) { in areCastCompatible()
1350 auto status = sourceValue.convert(targetSemantics, roundingMode, &losesInfo); in areCastCompatible()
1525 RoundingMode roundingMode = in getCanonicalizationPatterns()
1528 convertArithRoundingModeToLLVMIR(roundingMode);
108 convertArithRoundingModeToLLVMIR(RoundingMode roundingMode) convertArithRoundingModeToLLVMIR() argument
1320 convertFloatValue(APFloat sourceValue,const llvm::fltSemantics & targetSemantics,llvm::RoundingMode roundingMode=llvm::RoundingMode::NearestTiesToEven) convertFloatValue() argument
1497 RoundingMode roundingMode = fold() local
/llvm-project/mlir/lib/Conversion/ArithToSPIRV/
H A DArithToSPIRV.cpp811 convertArithRoundingModeToSPIRV(arith::RoundingMode roundingMode) {
812 switch (roundingMode) {
855 if (arith::RoundingModeAttr roundingMode =
858 convertArithRoundingModeToSPIRV(roundingMode.getValue())) { in matchAndRewrite()
865 llvm::formatv("unsupported rounding mode '{0}'", roundingMode)); in matchAndRewrite()
836 if (arith::RoundingModeAttr roundingMode = matchAndRewrite() local
/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp2049 APFloat::roundingMode mode = roundTowardZero? APFloat::rmTowardZero in ConstantFoldScalarCall1()
2350 std::optional<APFloat::roundingMode> RM; in ConstantFoldScalarCall1()
2456 APFloat::roundingMode RMode = in ConstantFoldScalarCall1()
/llvm-project/lldb/source/Plugins/Instruction/RISCV/
H A DEmulateInstructionRISCV.cpp1286 APFloat::roundingMode RM)) { in operator ()()
/llvm-project/flang/lib/Lower/
H A DBridge.cpp5317 mlir::Value roundingMode = in startNewFunction()
5320 builder->create<fir::CallOp>(endLoc, setRounding, roundingMode); in startNewFunction()
5149 mlir::Value roundingMode = manageFPEnvironment() local
/llvm-project/flang/lib/Semantics/
H A Dexpression.cpp765 Scalar<TYPE>::Read(p, context.targetCharacteristics().roundingMode())}; in Analyze()