[clang] [HLSL] Codegen for indexing of sub-arrays of multi-dimensional resource arrays (PR #154248)
Alex Sepkowski via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 28 16:29:10 PDT 2025
================
@@ -0,0 +1,102 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.6-compute -finclude-default-header \
+// RUN: -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s
+
+// CHECK: @[[BufA:.*]] = private unnamed_addr constant [2 x i8] c"A\00", align 1
+
+RWBuffer<float> A[5][4][3][2] : register(u10, space2);
+RWStructuredBuffer<float> Out;
+
+float foo(RWBuffer<float> Arr[3][2]) {
----------------
alsepkow wrote:
Not seeing any file check statements for the code generated by foo. Is that something we'd want to check to make sure the subscript accesses are in the correct order?
https://github.com/llvm/llvm-project/pull/154248
More information about the cfe-commits
mailing list