Commit c6d5cf5
Razvan Lupusoru
[flang][acc] Update FIR ref, heap, and pointer to be MappableType
The MappableType OpenACC type interface is a richer interface that
allows OpenACC dialect to be capable to better interact with a source
dialect, FIR in this case. fir.box and fir.class types already
implemented this interface. Now the same is being done with the other
FIR types that represent variables.
One additional notable change is that fir.array no longer implements
this interface. This is because MappableType is primarily intended
for variables - and FIR variables of this type have storage associated
and thus there's a pointer-like type (fir.ref/heap/pointer) that holds
the array type.
The end goal of promoting these FIR types to MappableType is that
we will soon implement ability to generate recipes outside of the
frontend via this interface.1 parent 44582c9 commit c6d5cf5
File tree
9 files changed
+277
-212
lines changed- flang
- lib
- Lower
- Optimizer
- Dialect
- OpenACC
- test
- Fir/OpenACC
- lib/OpenACC
- mlir/lib/Dialect/OpenACC/IR
9 files changed
+277
-212
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
169 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1533 | 1533 | | |
1534 | 1534 | | |
1535 | 1535 | | |
1536 | | - | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
1537 | 1539 | | |
1538 | 1540 | | |
1539 | 1541 | | |
| |||
0 commit comments