[llvm-branch-commits] [llvm] [HLSL] Adding support for Root Constants in LLVM Metadata (PR #135085)

Finn Plummer via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Apr 16 14:11:05 PDT 2025


================
@@ -0,0 +1,18 @@
+; RUN: not opt -passes='print<dxil-root-signature>' %s -S -o - 2>&1 | FileCheck %s
+
+target triple = "dxil-unknown-shadermodel6.0-compute"
+
+; CHECK: error: Invalid value for Num32BitValues
+; CHECK-NOT: Root Signature Definitions
+
+define void @main() #0 {
+entry:
+  ret void
+}
+attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }
----------------
inbelic wrote:

nit: are these attributes needed?

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


More information about the llvm-branch-commits mailing list