Home
last modified time | relevance | path

Searched refs:expressedValue (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/mlir/include/mlir/Dialect/Quant/
DUniformSupport.h91 virtual APInt quantizeFloatToInt(APFloat expressedValue) const { in quantizeFloatToInt() argument
96 if (&expressedValue.getSemantics() == &APFloat::IEEEsingle() && in quantizeFloatToInt()
99 return quantizeF32ToInt8(expressedValue); in quantizeFloatToInt()
103 expressedValue.convert(scale.getSemantics(), roundMode, &lossy); in quantizeFloatToInt()
106 APFloat scaled = (expressedValue / scale); in quantizeFloatToInt()
118 int64_t quantizeFloatToInt64(APFloat expressedValue) const { in quantizeFloatToInt64() argument
119 APInt qValue = quantizeFloatToInt(expressedValue); in quantizeFloatToInt64()
128 virtual APInt quantizeF32ToInt8(APFloat expressedValue) const { in quantizeF32ToInt8() argument
129 assert(&expressedValue.getSemantics() == &APFloat::IEEEsingle()); in quantizeF32ToInt8()
133 const float realValue = expressedValue.convertToFloat(); in quantizeF32ToInt8()
/external/llvm-project/mlir/unittests/Dialect/Quant/
DQuantizationUtilsTest.cpp28 APInt quantizeFloatToInt(APFloat expressedValue) const { in quantizeFloatToInt()