| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[MLIR][Python] Expose the insertion point of pattern rewriter (#161001) In [#160520](https://github.com/llvm/llvm-project/pull/160520), we discussed the current limitations of PDL rewriting in Python (see [this comment](https://github.com/llvm/llvm-project/pull/160520#issuecomment-3332326184)). At the moment, we cannot create new operations in PDL native (python) rewrite functions because the PatternRewriter APIs are not exposed. This PR introduces bindings to retrieve the insertion point of the PatternRewriter, enabling users to create new operations within Python rewrite functions. With this capability, more complex rewrites e.g. with branching and loops that involve op creations become possible. --------- Co-authored-by: Maksim Levental <maksim.levental@gmail.com> | 9 个月前 | |
[mlir] Clean up boolean flags usage in LIT tests * Call llvm_canonicalize_cmake_booleans for all CMake options, which are propagated to lit.local.cfg files. * Use Python native boolean values instead of strings for such options. This fixes the cases, when CMake variables have values other than ON (like TRUE). This might happen due to IDE integration or due to CMake preset usage. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D110073 | 4 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 9 个月前 | ||
| 4 年前 |