[llvm-branch-commits] [clang] [HLSL] Global resource arrays element access (PR #152454)
Alex Sepkowski via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Aug 8 17:24:49 PDT 2025
================
@@ -701,3 +808,95 @@ void CGHLSLRuntime::emitInitListOpaqueValues(CodeGenFunction &CGF,
}
}
}
+
+std::optional<LValue> CGHLSLRuntime::emitResourceArraySubscriptExpr(
+ const ArraySubscriptExpr *ArraySubsExpr, CodeGenFunction &CGF) {
+ assert(ArraySubsExpr->getType()->isHLSLResourceRecord() ||
+ ArraySubsExpr->getType()->isHLSLResourceRecordArray() &&
+ "expected resource array subscript expression");
+
+ // let clang codegen handle local resource array subscrips
----------------
alsepkow wrote:
```suggestion
// let clang codegen handle local resource array subscripts
```
https://github.com/llvm/llvm-project/pull/152454
More information about the llvm-branch-commits
mailing list