52 lines · plain
1; RUN: llc %s --filetype=obj -o - | obj2yaml | FileCheck %s --check-prefix=DXC2 3target triple = "dxil-unknown-shadermodel6.0-compute"4 5define void @main() #0 {6entry:7 ret void8}9attributes #0 = { "hlsl.numthreads"="1,1,1" "hlsl.shader"="compute" }10 11 12!dx.rootsignatures = !{!2} ; list of function/root signature pairs13!2 = !{ ptr @main, !3, i32 1 } ; function, root signature14!3 = !{ !5, !8 } ; list of root signature elements15!5 = !{ !"DescriptorTable", i32 0, !6 }16!6 = !{ !"Sampler", i32 1, i32 1, i32 0, i32 -1, i32 1 }17!8 = !{ !"DescriptorTable", i32 0, !7 }18!7 = !{ !"UAV", i32 5, i32 1, i32 10, i32 5, i32 3 }19 20 21; DXC: - Name: RTS022; DXC-NEXT: Size: 10423; DXC-NEXT: RootSignature:24; DXC-NEXT: Version: 125; DXC-NEXT: NumRootParameters: 226; DXC-NEXT: RootParametersOffset: 2427; DXC-NEXT: NumStaticSamplers: 028; DXC-NEXT: StaticSamplersOffset: 10429; DXC-NEXT: Parameters:30; DXC-NEXT: - ParameterType: DescriptorTable31; DXC-NEXT: ShaderVisibility: All32; DXC-NEXT: Table:33; DXC-NEXT: NumRanges: 134; DXC-NEXT: RangesOffset: 5635; DXC-NEXT: Ranges:36; DXC-NEXT: - RangeType: Sampler37; DXC-NEXT: NumDescriptors: 138; DXC-NEXT: BaseShaderRegister: 139; DXC-NEXT: RegisterSpace: 040; DXC-NEXT: OffsetInDescriptorsFromTableStart: 429496729541; DXC-NEXT: - ParameterType: DescriptorTable42; DXC-NEXT: ShaderVisibility: All43; DXC-NEXT: Table:44; DXC-NEXT: NumRanges: 145; DXC-NEXT: RangesOffset: 8446; DXC-NEXT: Ranges:47; DXC-NEXT: - RangeType: UAV48; DXC-NEXT: NumDescriptors: 549; DXC-NEXT: BaseShaderRegister: 150; DXC-NEXT: RegisterSpace: 1051; DXC-NEXT: OffsetInDescriptorsFromTableStart: 552