Commit 58c0bd1
authored
[mlir][Transforms] Dialect Conversion:
When an operation is folded to an attribute, the attribute must be
materialized as a constant operation. That operation must then be
legalized. If such a legalization fails, the entire folding is rolled
back. This is not supported in a One-Shot Dialect Conversion. (Support
for rolling back foldings could be added at a later point of time.)
This commit improves the `allowPatternRollback` flag handling, such that
a fatal error is reported when a folder is attempted to be rolled back.allowPatternRollback to check foldings (#148394)1 parent a647fd7 commit 58c0bd1
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2176 | 2176 | | |
2177 | 2177 | | |
2178 | 2178 | | |
| 2179 | + | |
2179 | 2180 | | |
2180 | 2181 | | |
2181 | 2182 | | |
| |||
2195 | 2196 | | |
2196 | 2197 | | |
2197 | 2198 | | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
2198 | 2205 | | |
2199 | 2206 | | |
2200 | 2207 | | |
| |||
0 commit comments