Commit bb21a68
authored
This commit moves code around: The helper functions/classes are moved
into `MemRefToLLVM.cpp`. This simplifies the code a bit: fewer
templatized functions, fewer function calls, fewer lines of code.
This commit also moves checks in `matchAndRewrite` to the beginning of
the functions, such that patterns bail out (`return failure()`) before
starting to modify any IR. (Apart from that, this change is NFC.) This
is in preparation of the One-Shot Dialect Conversion refactoring, which
will disallow pattern rollbacks.
1 parent 90c845f commit bb21a68
File tree
4 files changed
+301
-405
lines changed- mlir
- include/mlir/Conversion/MemRefToLLVM
- lib/Conversion/MemRefToLLVM
4 files changed
+301
-405
lines changedLines changed: 0 additions & 153 deletions
This file was deleted.
Lines changed: 0 additions & 195 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
0 commit comments