Commit dac2419
Razvan Lupusoru
[mlir][acc] Improve acc.loop support as a container
Dialects which have their own loop representation not representable
with numeric bounds + steps cannot be represented cleanly with
acc.loop. In such a case, we permit the dialects representation with
acc.loop merely encompasing its loop representation. This limitation
became obvious when looking at range / random iterator C++ loops.
The API of acc.loop was updated to test for this differentiation.
Additionally, the verifier was updated to check for consistent bounds
and whether inner-loops are contained when it works as a container.1 parent a24457e commit dac2419
File tree
2 files changed
+22
-0
lines changed- mlir
- include/mlir/Dialect/OpenACC
- lib/Dialect/OpenACC/IR
2 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2127 | 2127 | | |
2128 | 2128 | | |
2129 | 2129 | | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
2130 | 2135 | | |
2131 | 2136 | | |
2132 | 2137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2298 | 2298 | | |
2299 | 2299 | | |
2300 | 2300 | | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
2301 | 2309 | | |
2302 | 2310 | | |
2303 | 2311 | | |
| |||
2415 | 2423 | | |
2416 | 2424 | | |
2417 | 2425 | | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
2418 | 2435 | | |
2419 | 2436 | | |
2420 | 2437 | | |
| |||
0 commit comments