[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Add Metadata generation of Root Signatures for Attr (PR #125131)

Finn Plummer via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Mar 5 09:59:51 PST 2025


================
@@ -0,0 +1,29 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -emit-llvm -o - %s | FileCheck %s
+
+// CHECK-DAG: ![[#EMPTY:]] = !{}
+[shader("compute"), RootSignature("")]
+[numthreads(1,1,1)]
+void FirstEntry() {}
+
+// CHECK-DAG: ![[#CBV:]] = !{!"CBV", i32 1, i32 0, i32 0, i32 -1, i32 4}
----------------
inbelic wrote:

These are in a deterministic order, I had only used DAG to help with readability of the testcase. But I can see that affects correctness. Updated to remove use of CHECK-DAG

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


More information about the llvm-branch-commits mailing list