brintos

brintos / llvm-project-archived public Read only

0
0
Text · 433 B · b4b616f Raw
20 lines · plain
1; RUN: not opt -passes='print<dxil-root-signature>' %s -S -o - 2>&1 | FileCheck %s2 3; CHECK: error: Invalid format for Root Element4; 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!dx.rootsignatures = !{!0}17!0 = !{ ptr @main, !1, i32 2 }18!1 = !{ !2 }19!2 = !{ i32 0 }20