[llvm] [DirectX] Teach DXILResourceAccess about cbuffers (PR #164554)
Helena Kotas via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 23 00:19:27 PDT 2025
================
@@ -0,0 +1,109 @@
+; RUN: opt -S -dxil-resource-access -mtriple=dxil %s | FileCheck %s
+
+; cbuffer CB {
+; float3 a1; // offset 0, size 12 (+4)
+; double3 a2; // offset 16, size 24
+; float16_t2 a3; // offset 40, size 4 (+4)
+; uint64_t3 a4; // offset 48, size 24 (+8)
+; int4 a5; // offset 80, size 16
+; uint16_t3 a6; // offset 96, size 6 (+10)
----------------
hekota wrote:
```suggestion
; uint16_t3 a6; // offset 96, size 6
```
https://github.com/llvm/llvm-project/pull/164554
More information about the llvm-commits
mailing list