brintos

brintos / llvm-project-archived public Read only

0
0
Text · 817 B · dc7a3fd Raw
27 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: Root Element mdnode is null.6; CHECK-NOT: Root Signature Definitions7 8define void @main() #0 {9entry:10  ret void11}12 13define void @anotherMain() #0 {14entry:15  ret void16}17 18attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }19 20!dx.rootsignatures = !{!2, !5} ; list of function/root signature pairs21!2 = !{ ptr @main, null, i32 2 } ; function, root signature22!3 = !{ !4 } ; list of root signature elements23!4 = !{ !"RootFlags", i32 1 } ; 1 = allow_input_assembler_input_layout24!5 = !{ i32 -1, !6, i32 2 } ; function, root signature25!6 = !{ !7 } ; list of root signature elements26!7 = !{ !"RootFlags", i32 2 } ; 1 = allow_input_assembler_input_layout27