[Mlir-commits] [mlir] Extending UniformQuantizedType with interface-based support for new storage types in Quant dialect (PR #152966)
Matthias Springer
llvmlistbot at llvm.org
Mon Aug 11 03:40:36 PDT 2025
================
@@ -0,0 +1,44 @@
+#ifndef MLIR_IR_QUANTIZATIONINTERFACE
+#define MLIR_IR_QUANTIZATIONINTERFACE
+
+include "mlir/IR/OpBase.td"
+
+def QuantizationInterface : TypeInterface<"QuantizationInterface"> {
+ let description = [{
+ Interface for types that can be used as storage types in Quant dialect.
----------------
matthias-springer wrote:
Ideally, this interface would live in the `quant` dialect. It would then be attached to the `IntegerType` as an external model. Unfortunately, that makes it impossible to declare the interface as "promised" due to layering constraints.
https://github.com/llvm/llvm-project/pull/152966
More information about the Mlir-commits
mailing list