[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.
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11118 bytes
Desc: not available
More information about the cfe-commits