brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1023 B · 165e480 Raw
31 lines · plain
1; RUN: opt %s -dxil-embed -dxil-globals -S -o - | FileCheck %s2; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s --check-prefix=DXC3 4target triple = "dxil-unknown-shadermodel6.0-compute"5 6; CHECK: @dx.rts0 = private constant [24 x i8]  c"{{.*}}", section "RTS0", align 47 8define void @main() #0 {9entry:10  ret void11}12attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }13 14 15!dx.rootsignatures = !{!2} ; 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 20 21; DXC:  - Name:            RTS022; DXC-NEXT:    Size:            2423; DXC-NEXT:    RootSignature:24; DXC-NEXT:      Version:         225; DXC-NEXT:      NumRootParameters: 026; DXC-NEXT:      RootParametersOffset: 2427; DXC-NEXT:      NumStaticSamplers: 028; DXC-NEXT:      StaticSamplersOffset: 2429; DXC-NEXT:      Parameters: []30; DXC-NEXT:      AllowInputAssemblerInputLayout: true31