brintos

brintos / llvm-project-archived public Read only

0
0
Text · 790 B · c6b57ee Raw
22 lines · plain
1; RUN: not opt -passes='print<dxil-root-signature>' %s -S -o - 2>&1 | FileCheck %s2 3; CHECK: error: Function associated with Root Signature definition is null4; CHECK-NOT: Root Signature Definitions5 6target triple = "dxil-unknown-shadermodel6.0-compute"7 8define void @main() #0 {9entry:10  ret void11}12 13attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }14 15!dx.rootsignatures = !{!2, !5} ; list of function/root signature pairs16!2 = !{ ptr @main, !3, i32 2 } ; function, root signature17!3 = !{ !4 } ; list of root signature elements18!4 = !{ !"RootFlags", i32 1 } ; 1 = allow_input_assembler_input_layout19!5 = !{ null, !6, i32 2 } ; function, root signature20!6 = !{ !7 } ; list of root signature elements21!7 = !{ !"RootFlags", i32 2 } ; 1 = allow_input_assembler_input_layout22