diff options
author | Ivan Ho <ihkh2@cam.ac.uk> | 2025-05-25 15:42:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-25 16:42:30 +0200 |
commit | c76e2800e3d78fa6e8618431a6893f66f2fd3496 (patch) | |
tree | cff744bc4d83de96eafe29059c1a7aababcbac37 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 63eb00483fe97bbf6b7f26d1827b777518544e8f (diff) | |
download | llvm-c76e2800e3d78fa6e8618431a6893f66f2fd3496.zip llvm-c76e2800e3d78fa6e8618431a6893f66f2fd3496.tar.gz llvm-c76e2800e3d78fa6e8618431a6893f66f2fd3496.tar.bz2 |
[MLIR][IRDL] Added IRDL to C++ Translation (#141248)
This PR introduces a new tool, mlir-irdl-to-cpp, that converts IRDL to
C++ definitions.
The C++ definitions allow use of the IRDL-defined dialect in MLIR C++
infrastructure, enabling the use of conversion patterns with IRDL
dialects for example. This PR also adds CMake utilities to easily
integrate the IRDL dialects into MLIR projects.
Note that most IRDL features are not supported. In general, we are only
able to define simple types and operations.
- The only type constraint supported is irdl.any.
- Variadic operands and results are not supported.
- Verifiers for the IRDL constraints are not generated.
- Attributes are not supported.
---------
Co-authored-by: Théo Degioanni <theo.degioanni.llvm.deluge062@simplelogin.fr>
Co-authored-by: Fehr Mathieu <mathieu.fehr@gmail.com>
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions