[Mlir-commits] [mlir] [MLIR][TableGen] Add inheritableExtraClassDeclaration/Definition for Op and AttrOrTypeDef (PR #182265)
Henrich Lauko
llvmlistbot at llvm.org
Thu Feb 19 11:09:06 PST 2026
xlauko wrote:
> > Motivation: The existing extraClassDeclaration/extraClassDefinition fields follow standard TableGen override semantics: when a derived class sets them, the base class value is lost.
>
> Isn't this showing a more fundamental issue with TableGen? Could we get a solution within the language? This seems like a recurring issue and manually patching every backend for every kind of field to handle seems a bit ad-hoc.
I agree I will give it deeper thought and open discussion once I have something. IT would be nice to be able to inherit also things like `argumets` and `results`.
https://github.com/llvm/llvm-project/pull/182265
More information about the Mlir-commits
mailing list