This matches the current support provided to operations, and allows attaching traits, interfaces, and using the DeclareInterfaceMethods utility. This was missed when attribute/type generation was first added.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I am most likely not the right person to LG this, but, wow, thank you for adding this so quickly!!!
mlir/include/mlir/TableGen/Operator.h | ||
---|---|---|
178–179 | Didn't the code in Trait.h/cpp add that? | |
mlir/lib/TableGen/Trait.cpp | ||
2 | Please add this file to CMakeLists.txt | |
81 | Nit: something like getTraitClassName or getFullyQualifiedTraitName? | |
mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp | ||
360 | Do we want to assert the trait subclass here for future-proofness? |
Didn't the code in Trait.h/cpp add that?