xref: /llvm-project/llvm/test/CodeGen/DirectX/ContainerData/PipelineStateValidation.ll (revision 141bea8c3cad62b381aef3c216cf7f78b812f580)
1; RUN: opt %s -dxil-embed -dxil-globals -S -o - | FileCheck %s
2; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s --check-prefix=DXC
3target triple = "dxil-unknown-shadermodel6.0-compute"
4
5; CHECK: @dx.psv0 = private constant  [76 x i8] c"{{.*}}", section "PSV0", align 4
6
7define void @main() #0 {
8entry:
9  ret void
10}
11
12attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }
13
14!dx.valver = !{!0}
15
16!0 = !{i32 1, i32 7}
17
18; DXC: - Name:            PSV0
19; DXC:     Size:            76
20; DXC:     PSVInfo:
21; DXC:       Version:         3
22; DXC:       ShaderStage:     5
23; DXC:       MinimumWaveLaneCount: 0
24; DXC:       MaximumWaveLaneCount: 4294967295
25; DXC:       UsesViewID:      0
26; DXC:       SigInputVectors: 0
27; DXC:       SigOutputVectors: [ 0, 0, 0, 0 ]
28; DXC:       NumThreadsX:     1
29; DXC:       NumThreadsY:     1
30; DXC:       NumThreadsZ:     1
31; DXC:       EntryName:       main
32; DXC:       ResourceStride:  24
33; DXC:       Resources:       []
34; DXC:       SigInputElements: []
35; DXC:       SigOutputElements: []
36; DXC:       SigPatchOrPrimElements: []
37; DXC:       InputOutputMap:
38; DXC:         - [  ]
39; DXC:         - [  ]
40; DXC:         - [  ]
41; DXC:         - [  ]