Commit 178e944
Add support of memref of struct type (#44)
`SubIndexOpLowering` was unable to correctly handle memref of struct type.
memref of struct type is only generated for struct that has at least one entry of SYCL type, otherwise a llvm pointer type is generated instead of a memref. (ref: https://github.com/InteonCo/Polygeist/blob/main/tools/cgeist/Lib/clang-mlir.cc#L5421)
When a memref element type is a struct type, the return type of a `polygeist.subindex` should be a memref of the element type of the struct. (ref: https://github.com/InteonCo/Polygeist/blob/main/tools/cgeist/Lib/clang-mlir.cc#L703)
Signed-off-by: Tsang, Whitney <whitney.tsang@intel.com>1 parent 0402ca1 commit 178e944
File tree
2 files changed
+46
-0
lines changed- polygeist
- lib/polygeist/Passes
- test/polygeist-opt/sycl
2 files changed
+46
-0
lines changedLines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
114 | 147 | | |
115 | 148 | | |
116 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments