[llvm] [DXIL] Add support for root signature flag element in DXContainer (PR #123147)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 10 11:08:25 PST 2025


================
@@ -0,0 +1,18 @@
+; RUN: not llc %s --filetype=obj -o - 2>&1 | FileCheck %s
+
+target triple = "dxil-unknown-shadermodel6.0-compute"
+
+; CHECK: error: Missing Root Element Metadata Node.
+
+
+define void @main() #0 {
+entry:
+  ret void
+}
+
+attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }
+
----------------
joaosaffran wrote:

I replied in the comment above

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


More information about the llvm-commits mailing list