mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
ff5696cec9
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 |
||
---|---|---|
.. | ||
_index.md | ||
AttributesAndTypes.md | ||
Operations.md |