/llvm-project/llvm/include/llvm/ADT/ |
H A D | APFloat.h | 300 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 D | APFloat.cpp | 1574 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 D | APFixedPoint.cpp | 507 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 D | AttrToLLVMConverter.cpp | 53 mlir::arith::convertArithRoundingModeToLLVM(arith::RoundingMode roundingMode) { in convertArithRoundingModeToLLVM() argument 54 switch (roundingMode) { in convertArithRoundingModeToLLVM()
|
/llvm-project/libc/src/__support/FPUtil/aarch64/ |
H A D | FEnvImpl.h | 217 uint32_t roundingMode = in get_round() local 219 switch (roundingMode) { in get_round()
|
/llvm-project/clang-tools-extra/clang-tidy/readability/ |
H A D | MagicNumbersCheck.h | 102 constexpr static llvm::APFloat::roundingMode DefaultRoundingMode =
|
/llvm-project/mlir/include/mlir/Conversion/ArithCommon/ |
H A D | AttrToLLVMConverter.h | 37 convertArithRoundingModeToLLVM(arith::RoundingMode roundingMode);
|
/llvm-project/flang/lib/Evaluate/ |
H A D | host.cpp | 88 switch (context.targetCharacteristics().roundingMode().mode) { in SetUpHostFloatingPointEnvironment()
|
H A D | fold-reduction.h | 47 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 D | fold-matmul.h | 42 context.targetCharacteristics().roundingMode()}; in FoldMatmul()
|
H A D | fold-logical.cpp | 55 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 D | fold-implementation.h | 1983 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 D | fold-real.cpp | 131 context.targetCharacteristics().roundingMode()}; in FoldNorm2()
|
/llvm-project/flang/include/flang/Evaluate/ |
H A D | target.h | 57 Rounding roundingMode() const { return roundingMode_; } 55 Rounding roundingMode() const { return roundingMode_; } roundingMode() function
|
/llvm-project/mlir/include/mlir/Dialect/Quant/ |
H A D | UniformSupport.h |
|
/llvm-project/llvm/unittests/ADT/ |
H A D | APFloatTest.cpp | 480 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 D | ArithOps.cpp | 103 /// 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 D | ArithToSPIRV.cpp | 811 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 D | ConstantFolding.cpp | 2049 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 D | EmulateInstructionRISCV.cpp | 1286 APFloat::roundingMode RM)) { in operator ()()
|
/llvm-project/flang/lib/Lower/ |
H A D | Bridge.cpp | 5317 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 D | expression.cpp | 765 Scalar<TYPE>::Read(p, context.targetCharacteristics().roundingMode())}; in Analyze()
|