[HLSL] Handle cbuffer load/store with SGEP
Open
HLSL
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
Current codegen relies on `getelementptr` instruction for cbuffer load/stores.
If `@llvm.structured.gep` is available (ie, under `-fexperimental-logical-pointer` for now), we should emit it for cbuffer accesses. The work here should mostly be contained in the `HLSLBufferCopyEmitter` class, but may also touch other parts of `CGHLSLRuntime`
Contributor guide
Assessment
This issue has not been assessed yet.