| Issue |
204234
|
| Summary |
[DirectX] Add lowering of `llvm.dx.resource.getbasepointer`
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
hekota
|
Add lowering of intrisics `llvm.dx.resource.getbasepointer` which has been added in #195151.
When implemented, the following code should work:
```
struct S {
int a;
float f;
};
ConstantBuffer<S> CB;
RWBuffer<int> Buf;
[numthreads(4,1,1)]
void main() {
Buf[0] = CB.a;
}
```
https://godbolt.org/z/M1TjsMWco
Currently it reports an error `error: Unsupported intrinsic llvm.dx.resource.getbasepointer.p2.tdx.CBuffer_s_Sst for DXIL lowering`.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs