Commit e899d0b
Fix inlining of non-kernel funcs with SPIR-V image args
Before the migration to opaque pointers, the inlining logic in
ProcessFuncAttributes decided to inline functions based on the actual
type of an argument. With typed pointers, SPIR-V/OpenCL images were
represented using pointers to opaque structs (allowing to recognize the
image type by parsing the struct name). With opauqe pointers, such types
are represented using TargetExtTy. However, TargetExtTy are missing at
this point during compilation due to earlier retyping (to opaque
pointers) in PreprocessSPVIR. Hence, this change allows recognition of
such types based on metadata hints. Analogous metadata are already
emitted for kernel functions by SPIR-V Reader.1 parent 35cbc48 commit e899d0b
File tree
3 files changed
+81
-0
lines changed- IGC
- AdaptorCommon
- AdaptorOCL/preprocess_spvir
- Compiler/tests/PreprocessSPVIR
3 files changed
+81
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
270 | 294 | | |
271 | 295 | | |
272 | 296 | | |
| |||
688 | 712 | | |
689 | 713 | | |
690 | 714 | | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
691 | 718 | | |
692 | 719 | | |
693 | 720 | | |
694 | 721 | | |
695 | 722 | | |
696 | 723 | | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
697 | 727 | | |
698 | 728 | | |
699 | 729 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
162 | 186 | | |
163 | 187 | | |
164 | 188 | | |
| |||
232 | 256 | | |
233 | 257 | | |
234 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
235 | 267 | | |
236 | 268 | | |
237 | 269 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments