20 lines · plain
1; RUN: not opt -passes='print<dxil-root-signature>' %s -S -o - 2>&1 | FileCheck %s2 3target triple = "dxil-unknown-shadermodel6.0-compute"4 5; CHECK: error: Missing Root Element Metadata Node.6; CHECK-NOT: Root Signature Definitions7 8 9define void @main() #0 {10entry:11 ret void12}13 14attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }15 16 17!dx.rootsignatures = !{!2} ; list of function/root signature pairs18!2 = !{ ptr @main, !3, i32 2 } ; function, root signature19!3 = !{ !"NOTRootElements" } ; list of root signature elements20