aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2024-12-02 14:03:31 -0800
committerGitHub <noreply@github.com>2024-12-02 14:03:31 -0800
commitbd92e46204331b9af296f53abb708317e72ab7a8 (patch)
treeeedcd3512a2284cbe102e284bd5d6ffa5f7029e0 /llvm/lib/Bitcode
parent1250a1db1a378736afda389c94d2846d7a254576 (diff)
downloadllvm-bd92e46204331b9af296f53abb708317e72ab7a8.zip
llvm-bd92e46204331b9af296f53abb708317e72ab7a8.tar.gz
llvm-bd92e46204331b9af296f53abb708317e72ab7a8.tar.bz2
[HLSL] Implement RWBuffer::operator[] via __builtin_hlsl_resource_getpointer (#117017)
This introduces `__builtin_hlsl_resource_getpointer`, which lowers to `llvm.dx.resource.getpointer` and is used to implement indexing into resources. This will only work through the backend for typed buffers at this point, but the changes to structured buffers should be correct as far as the frontend is concerned. Note: We probably want this to return a reference in the HLSL device address space, but for now we're just using address space 0. Creating a device address space and updating this code can be done later as necessary. Fixes #95956
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions