[all-commits] [llvm/llvm-project] 00ecac: [HLSL] Generate buffer subscript operators
Chris B via All-commits
all-commits at lists.llvm.org
Fri Sep 2 12:56:06 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 00ecacca7d90f96a1d54bc3fa38986fdd64e4c72
https://github.com/llvm/llvm-project/commit/00ecacca7d90f96a1d54bc3fa38986fdd64e4c72
Author: Chris Bieneman <chris.bieneman at me.com>
Date: 2022-09-02 (Fri, 02 Sep 2022)
Changed paths:
M clang/lib/Sema/HLSLExternalSemaSource.cpp
M clang/lib/Sema/SemaType.cpp
M clang/test/AST/HLSL/RWBuffer-AST.hlsl
A clang/test/CodeGenHLSL/buffer-array-operator.hlsl
Log Message:
-----------
[HLSL] Generate buffer subscript operators
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.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D131268
More information about the All-commits
mailing list