llvm-capstone/mlir/docs/DefiningDialects
max ff5696cec9 Document CMake Changes Needed to Generate Attribute Code from TableGen
I've been struggling with generating the C++ class declarations and definitions for custom attributes from TableGen, as described on this documentation page: https://mlir.llvm.org/docs/DefiningDialects/AttributesAndTypes/#adding-a-new-attribute-or-type-definition

The code for custom types is automatically generated when the MLIR Dialect is added with `add_mlir_dialect()` in the CMake file.

The same is not the case for custom attributes. I think people could benefit from learning how to adjsut their CMakeLists.txt to automatically generate the classes as described on that documentation page. This change adds the necessary information for this.

makslevental on Discord was so kind to help me figure this out myself

Reviewed By: makslevental

Differential Revision: https://reviews.llvm.org/D155249
2023-08-15 16:29:46 -05:00
..
_index.md
AttributesAndTypes.md Document CMake Changes Needed to Generate Attribute Code from TableGen 2023-08-15 16:29:46 -05:00
Operations.md [MLIR][Doc] Also print summarys for passes on a newline 2023-06-13 09:26:11 +02:00