[Mlir-commits] [mlir] QuantileType relax quantileType conditions and inheritance issue (PR #204793)

Renato Golin llvmlistbot at llvm.org
Wed Jun 24 02:49:29 PDT 2026


================
@@ -41,7 +41,8 @@ unsigned QuantizedType::getFlags() const {
 }
 
 bool QuantizedType::classof(Type type) {
-  return llvm::isa<QuantDialect>(type.getDialect());
+  return llvm::isa<QuantDialect>(type.getDialect()) &&
----------------
rengolin wrote:

Usually, `QuantileType::classof` does `isa<QuantileType>`, but here, it's `QuantizeType` which is not the base class any more.

https://github.com/llvm/llvm-project/pull/204793


More information about the Mlir-commits mailing list