| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[MLIR][IRDL][CMake] Switch to using setup_host_tool to fix cross compilation (#156606) Using build_native_tool directly doesn't seem to be standard, instead other tools seem to call setup_host_tool (e.g. milr-linalg-ods-gen and add_tablegen seems to have a copy of setup_host_tool internally). When cross compiling llvm in two stages, the first building all native tools and then the second using those built tools to cross compile, this prevents the second stage from trying to rebuild mlir-irdl-to-cpp, which fails. | 10 个月前 | |
[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> | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 10 个月前 | ||
| 1 年前 |