[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,62 @@
+// 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[4][2] : register(u10, space2);
----------------
alsepkow wrote:

minor nit: I think 'space2' is meaningless for this test?

https://github.com/llvm/llvm-project/pull/154248


More information about the cfe-commits mailing list