1 ; RUN: opt -S -passes="print<dxil-metadata>" -disable-output %s 2>&1 | FileCheck %s
2 target triple = "dxil-pc-shadermodel6.8-library"
4 ; CHECK: Shader Model Version : 6.8
5 ; CHECK-NEXT: DXIL Version : 1.8
6 ; CHECK-NEXT: Target Shader Stage : library
7 ; CHECK-NEXT: Validator Version : 0
9 ; CHECK-NEXT: Function Shader Stage : amplification
10 ; CHECK-NEXT: NumThreads: 0,0,0
11 ; CHECK-NEXT: entry_ms
12 ; CHECK-NEXT: Function Shader Stage : mesh
13 ; CHECK-NEXT: NumThreads: 0,0,0
14 ; CHECK-NEXT: entry_cs
15 ; CHECK-NEXT: Function Shader Stage : compute
16 ; CHECK-NEXT: NumThreads: 1,2,1
19 define void @entry_as() #0 {
24 define i32 @entry_ms(i32 %a) #1 {
29 define float @entry_cs(float %f) #3 {
34 attributes #0 = { noinline nounwind "hlsl.shader"="amplification" }
35 attributes #1 = { noinline nounwind "hlsl.shader"="mesh" }
36 attributes #3 = { noinline nounwind "hlsl.numthreads"="1,2,1" "hlsl.shader"="compute" }