diff options
| author | Stella Laurenzo <stellaraccident@gmail.com> | 2021-12-13 13:08:54 -0800 |
|---|---|---|
| committer | Stella Laurenzo <stellaraccident@gmail.com> | 2021-12-13 13:33:00 -0800 |
| commit | c10995a8adcec00cc929d9fa742758a415316fb2 (patch) | |
| tree | 4d59d819c0cc57e8e1c2ed9c9f721fbd2ea11767 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | aa0981ba86d73309163b70b95da50ee79c1eda05 (diff) | |
Re-apply [NFC] Generalize a couple of passes so they can operate on any FunctionLike op.
* Generalizes passes linalg-detensorize, linalg-fold-unit-extent-dims, convert-elementwise-to-linalg.
* I feel that more work could be done in the future (i.e. make FunctionLike into a proper OpInterface and extend actions in dialect conversion to be trait based), and this patch would be a good record of why that is useful.
* Note for downstreams:
* Since these passes are now generic, they do not automatically nest with pass managers set up for implicit nesting.
* The Detensorize pass must run on a FunctionLike, and this requires explicit nesting.
* Addressed missed comments from the original and per-suggestion removed the assert on FunctionLike in ElementwiseToLinalg and DropUnitDims.cpp, which also is what was causing the integration test to fail.
This reverts commit aa8815e42e646a98663af4cf036dbb913ad047a7.
Differential Revision: https://reviews.llvm.org/D115671
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
