[Mlir-commits] [mlir] Sub-channel quantized type implementation (PR #120172)
Kevin Gleason
llvmlistbot at llvm.org
Tue Feb 11 14:55:22 PST 2025
================
@@ -159,46 +159,183 @@ static Type parseAnyType(DialectAsmParser &parser) {
typeFlags, storageType, expressedType, storageTypeMin, storageTypeMax);
}
-static ParseResult parseQuantParams(DialectAsmParser &parser, double &scale,
+/// Checks if the given scale value is within the valid range of the expressed
+/// type. The `expressedType` argument is the floating-point type used for
+/// expressing the quantized values, and `scale` is the double value to check.
+LogicalResult
+isScaleInExpressedTypeRange(function_ref<InFlightDiagnostic()> emitError,
----------------
GleasonK wrote:
Should this instead be in the verifier not the parser?
https://github.com/llvm/llvm-project/pull/120172
More information about the Mlir-commits
mailing list