[PATCH] D131268: [HLSL] Generate buffer subscript operators
Chris Bieneman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 5 09:40:44 PDT 2022
beanz created this revision.
beanz added reviewers: bogner, aaron.ballman, python3kgae, pow2clk.
Herald added a subscriber: Anastasia.
Herald added a project: All.
beanz requested review of this revision.
Herald added a project: clang.
In HLSL buffer types support array subscripting syntax for loads and
stores. This change fleshes out the subscript operators to become array
accesses on the underlying handle pointer. This will allow LLVM
optimization passes to optimize resource accesses the same way any other
memory access would be optimized.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131268
Files:
clang/lib/Sema/HLSLExternalSemaSource.cpp
clang/lib/Sema/SemaType.cpp
clang/test/AST/HLSL/RWBuffer-AST.hlsl
clang/test/CodeGenHLSL/buffer-array-operator.hlsl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131268.450311.patch
Type: text/x-patch
Size: 11118 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220805/8d4e9c7a/attachment.bin>
More information about the cfe-commits
mailing list