21 lines · plain
1; RUN: not opt -passes='print<dxil-root-signature>' %s -S -o - 2>&1 | FileCheck %s2 3; CHECK: error: Invalid value for ShaderVisibility: 2554; CHECK-NOT: Root Signature Definitions5 6target triple = "dxil-unknown-shadermodel6.0-compute"7 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 = !{ !5 } ; list of root signature elements20!5 = !{ !"RootConstants", i32 255, i32 1, i32 2, i32 3 }21