Commit 391a1da
[LLVM 16] Fixing ResolveOCLRaytracingBuiltins by creating "struct.intel_ray_query_opaque_t" that's not present in generated BiF .bc file
When importing built-in types, the type called "struct.intel_ray_query_opaque_t" was properly imported on typed-pointers mode as:
```
%struct.intel_ray_query_opaque_t = type opaque
```
but on opaque types mode it was not present in the generated BiF .bc file, thus it was not imported.
It caused ResolveOCLRaytracingBuiltins pass to fail because it relied on having when creating Alloca.
```
auto *allocaType = IGCLLVM::getTypeByName(callInst.getModule(), "struct.intel_ray_query_opaque_t");
auto *alloca = m_builder->CreateAlloca(allocaType);
```
This patch adds workaround for it by creating such type when it is not present.1 parent ea5c192 commit 391a1da
File tree
1 file changed
+1
-5
lines changed- IGC/Compiler/Optimizer/OpenCLPasses/RayTracing
1 file changed
+1
-5
lines changedLines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | 144 | | |
150 | 145 | | |
151 | 146 | | |
152 | 147 | | |
153 | 148 | | |
154 | 149 | | |
155 | 150 | | |
| 151 | + | |
156 | 152 | | |
157 | 153 | | |
158 | 154 | | |
| |||
0 commit comments