aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorHelena Kotas <hekotas@microsoft.com>2025-09-02 10:10:40 -0700
committerGitHub <noreply@github.com>2025-09-02 10:10:40 -0700
commitabb62b6ede461ac384d169fa9d9122328dc11809 (patch)
tree85f287b026551cd51f85f587d76ec76b9c8ee48f /llvm/lib/CodeGen
parent772cb84b9f03e1f630d237183acf37ba4c7a3bcf (diff)
downloadllvm-abb62b6ede461ac384d169fa9d9122328dc11809.zip
llvm-abb62b6ede461ac384d169fa9d9122328dc11809.tar.gz
llvm-abb62b6ede461ac384d169fa9d9122328dc11809.tar.bz2
[HLSL] Codegen for indexing of sub-arrays of multi-dimensional resource arrays (#154248)
Adds support for accessing sub-arrays from fixed-size multi-dimensional global resource arrays. Enables indexing into globally scoped, fixed-size resource arrays that have multiple dimensions when the result is a smaller resource array. For example: ``` RWBuffer<float> GlobalArray[4][2]; void main() { RWBuffer<float> SubArray[2] = GlobalArray[3]; ... } ``` The initialization logic is handled during codegen when the ArraySubscriptExpr AST node is processed. When a global resource array is indexed and the result type is a sub-array of the larger array, a local array of the resource type is created and all elements in the array are initialized with a constructor call for the corresponding resource record type and binding. Closes #145426
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions