From ebdf00bc1982d38a1f175c41c138254454b802cc Mon Sep 17 00:00:00 2001 From: Mathieu Fehr Date: Mon, 26 Sep 2022 09:42:33 -0700 Subject: [PATCH] [mlir] Allow accessing TypeID of attrs/types defs SelfOwningTypeID was inherited privately, so it was not possible to access the TypeID of an attribute or a type definition. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D134593 --- mlir/include/mlir/IR/ExtensibleDialect.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/include/mlir/IR/ExtensibleDialect.h b/mlir/include/mlir/IR/ExtensibleDialect.h index 520712f..662a735 100644 --- a/mlir/include/mlir/IR/ExtensibleDialect.h +++ b/mlir/include/mlir/IR/ExtensibleDialect.h @@ -51,7 +51,7 @@ struct DynamicTypeStorage; /// extensible dialect (a dialect inheriting ExtensibleDialect). This class /// stores the parser, the printer, and the verifier of the attribute. Each /// dynamic attribute definition refers to one instance of this class. -class DynamicAttrDefinition : SelfOwningTypeID { +class DynamicAttrDefinition : public SelfOwningTypeID { public: using VerifierFn = llvm::unique_function, ArrayRef) const>; @@ -196,7 +196,7 @@ public: /// extensible dialect (a dialect inheriting ExtensibleDialect). This class /// stores the parser, the printer, and the verifier of the type. Each dynamic /// type definition refers to one instance of this class. -class DynamicTypeDefinition : SelfOwningTypeID { +class DynamicTypeDefinition : public SelfOwningTypeID { public: using VerifierFn = llvm::unique_function, ArrayRef) const>; -- 2.7.4