llvm / llvm/llvm-project

[HLSL] Handle cbuffer load/store with SGEP

Open
#192,983 0 comments 0 reactions 1 assignee Assigned to @bogner View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.