[llvm] [mlir] [MLIR] convert OpAsmDialectInterface using ODS (PR #171488)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 11 09:10:09 PST 2025
================
@@ -147,9 +157,17 @@ class TypeInterface<string name, list<Interface> baseInterfaces = []>
!if(!empty(cppNamespace),"", cppNamespace # "::") # name
>;
+// AliasDeclaration represents an Alias Declaration in a Dialect Interface
----------------
aidint wrote:
I didn’t use `extraClassDecls` because the alias is required as a return type in some of the methods, and for other interfaces (Op/Attr/Type) `extraClassDecls` places everything after the method declarations. Placing aliases after the methods causes the compilation to fail. I could change the behavior and place `extraClassDecls` before the methods, but that seemed wrong, as it would make the ordering arbitrary in different interface types. So I came up with this approach instead.
https://github.com/llvm/llvm-project/pull/171488
More information about the llvm-commits
mailing list