VValentin Clement[mlir][CSE] Remove duplicated operations with MemRead side-effect
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[mlir][CSE] Remove duplicated operations with MemRead side-effect This patch enhances the CSE pass to deal with simple cases of duplicated operations with MemoryEffects. It allows the CSE pass to remove safely duplicate operations with the MemoryEffects::Read that have no other side-effecting operations in between. Other MemoryEffects::Read operation are allowed. The use case is pretty simple so far so we can build on top of it to add more features. This patch is also meant to avoid a dedicated CSE pass in FIR and was brought together afetr discussion on https://reviews.llvm.org/D112711. It does not currently cover the full range of use cases described in https://reviews.llvm.org/D112711 but the idea is to gradually enhance the MLIR CSE pass to handle common use cases that can be used by other dialects. This patch takes advantage of the new CSE capabilities in Fir. Reviewed By: mehdi_amini, rriddle, schweitz Differential Revision: https://reviews.llvm.org/D122801 | 4 年前 | |
[MLIR] Fix several misc issues in in Toy tutorial Summary: - Fix comments in several places - Eliminate extra ' in AST dump and adjust tests accordingly Differential Revision: https://reviews.llvm.org/D78399 | 6 年前 | |
[mlir][toy] Define a FuncOp operation in toy and drop the dependence on FuncOp FuncOp is being moved out of the builtin dialect, and defining a custom toy operation showcases various aspects of defining function-like operation (e.g. inlining, passes, etc.). Differential Revision: https://reviews.llvm.org/D121264 | 4 年前 | |
[mlir][Tutorial] Make parsing an empty file print a better error. Summary: Previously, we would, for an empty file, print the somewhat confusing Assertion `tok == curTok [...]' failed. With this change, we now print Parse error [...]: expected 'def' [...] This only affects the parser from chapters 1-6, since the more advanced chapter 7 parser is actually able to generate an empty module from an empty file. Nonetheless, this commit also adds the additional check to the chapter 7 parser, for consistency. Differential Revision: https://reviews.llvm.org/D75534 | 6 年前 | |
[mlir][toy] Define a FuncOp operation in toy and drop the dependence on FuncOp FuncOp is being moved out of the builtin dialect, and defining a custom toy operation showcases various aspects of defining function-like operation (e.g. inlining, passes, etc.). Differential Revision: https://reviews.llvm.org/D121264 | 4 年前 | |
Revert "Revert "Fix MLIR Toy tutorial JIT example and add a test to cover it"" This reverts commit f36060417ad3e247900dfcb07a2476a9d92ee2d2 and reapply commit ae15b1e7ad71e4bfde1b031dd5e6b0bbb3b88a42. JIT test must be annotated to not run on Windows. | 5 年前 | |
[mlir][toy] Define a FuncOp operation in toy and drop the dependence on FuncOp FuncOp is being moved out of the builtin dialect, and defining a custom toy operation showcases various aspects of defining function-like operation (e.g. inlining, passes, etc.). Differential Revision: https://reviews.llvm.org/D121264 | 4 年前 | |
[mlir][toy] Define a FuncOp operation in toy and drop the dependence on FuncOp FuncOp is being moved out of the builtin dialect, and defining a custom toy operation showcases various aspects of defining function-like operation (e.g. inlining, passes, etc.). Differential Revision: https://reviews.llvm.org/D121264 | 4 年前 | |
[mlir][toy] Define a FuncOp operation in toy and drop the dependence on FuncOp FuncOp is being moved out of the builtin dialect, and defining a custom toy operation showcases various aspects of defining function-like operation (e.g. inlining, passes, etc.). Differential Revision: https://reviews.llvm.org/D121264 | 4 年前 | |
[mlir][toy] Define a FuncOp operation in toy and drop the dependence on FuncOp FuncOp is being moved out of the builtin dialect, and defining a custom toy operation showcases various aspects of defining function-like operation (e.g. inlining, passes, etc.). Differential Revision: https://reviews.llvm.org/D121264 | 4 年前 | |
[mlir][toy] Define a FuncOp operation in toy and drop the dependence on FuncOp FuncOp is being moved out of the builtin dialect, and defining a custom toy operation showcases various aspects of defining function-like operation (e.g. inlining, passes, etc.). Differential Revision: https://reviews.llvm.org/D121264 | 4 年前 |