Home
last modified time | relevance | path

Searched refs:roundMode (Results 1 – 3 of 3) sorted by relevance

/external/llvm-project/mlir/include/mlir/Dialect/Quant/
DUniformSupport.h79 roundMode(APFloat::rmNearestTiesToAway) {} in UniformQuantizedValueConverter()
89 roundMode(APFloat::rmNearestTiesToAway) {} in UniformQuantizedValueConverter()
98 roundMode == llvm::APFloatBase::rmNearestTiesToAway) { in quantizeFloatToInt()
103 expressedValue.convert(scale.getSemantics(), roundMode, &lossy); in quantizeFloatToInt()
107 scaled.roundToIntegral(roundMode); in quantizeFloatToInt()
108 scaled.add(zeroPoint, roundMode); in quantizeFloatToInt()
113 fixedpoint.convertToInteger(result, roundMode, &lossy); in quantizeFloatToInt()
131 assert(roundMode == llvm::APFloatBase::rmNearestTiesToAway); in quantizeF32ToInt8()
166 const llvm::APFloat::roundingMode roundMode; variable
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/AsmParser/
DAMDGPUAsmParser.cpp2365 auto roundMode = APFloat::rmNearestTiesToEven; in parseImm() local
2366 if (errorToBool(RealVal.convertFromString(Num, roundMode).takeError())) { in parseImm()
/external/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/
DAMDGPUAsmParser.cpp2592 auto roundMode = APFloat::rmNearestTiesToEven; in parseImm() local
2593 if (errorToBool(RealVal.convertFromString(Num, roundMode).takeError())) { in parseImm()