Skip to content

Commit 69c30f7

Browse files
authored
[DirectX] Use resource names when generating DXIL metadata (#140635)
Use resource names gathered during the DXIL resource analysis when creating DXIL resources metadata. Part 4/4 of #105059 Closes #105059
1 parent 11c7a0c commit 69c30f7

File tree

5 files changed

+171
-158
lines changed

5 files changed

+171
-158
lines changed

llvm/lib/Analysis/DXILResource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ MDTuple *ResourceInfo::getAsMetadata(Module &M,
559559
MDVals.push_back(getIntMD(Binding.RecordID));
560560
assert(Symbol && "Cannot yet create useful resource metadata without symbol");
561561
MDVals.push_back(ValueAsMetadata::get(Symbol));
562-
MDVals.push_back(MDString::get(Ctx, Symbol->getName()));
562+
MDVals.push_back(MDString::get(Ctx, Name));
563563
MDVals.push_back(getIntMD(Binding.Space));
564564
MDVals.push_back(getIntMD(Binding.LowerBound));
565565
MDVals.push_back(getIntMD(Binding.Size));

llvm/test/CodeGen/DirectX/Metadata/cbuffer_metadata.ll

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,23 @@ target triple = "dxil-pc-shadermodel6.6-compute"
77

88
%__cblayout_CB1 = type <{ float, i32, double, <2 x i32> }>
99
@CB1.cb = global target("dx.CBuffer", target("dx.Layout", %__cblayout_CB1, 24, 0, 4, 8, 16)) poison
10+
@CB1.str = private unnamed_addr constant [4 x i8] c"CB1\00", align 1
1011

1112
%__cblayout_CB2 = type <{ float, double, float, half, i16, i64, i32 }>
1213
@CB2.cb = global target("dx.CBuffer", target("dx.Layout", %__cblayout_CB2, 36, 0, 8, 16, 20, 22, 24, 32)) poison
14+
@CB2.str = private unnamed_addr constant [4 x i8] c"CB2\00", align 1
1315

14-
%__cblayout_CB3 = type <{ double, <3 x float>, float, <3 x double>, half, <2 x double>, float, <3 x half>, <3 x half> }>
15-
@CB3.cb = global target("dx.CBuffer", target("dx.Layout", %__cblayout_CB3, 96, 0, 16, 28, 32, 56, 64, 80, 84, 90)) poison
16+
%__cblayout_MyConstants = type <{ double, <3 x float>, float, <3 x double>, half, <2 x double>, float, <3 x half>, <3 x half> }>
17+
@MyConstants.cb = global target("dx.CBuffer", target("dx.Layout", %__cblayout_MyConstants, 96, 0, 16, 28, 32, 56, 64, 80, 84, 90)) poison
18+
@MyConstants.str = private unnamed_addr constant [12 x i8] c"MyConstants\00", align 1
1619

1720
; PRINT:; Resource Bindings:
1821
; PRINT-NEXT:;
1922
; PRINT-NEXT:; Name Type Format Dim ID HLSL Bind Count
2023
; PRINT-NEXT:; ------------------------------ ---------- ------- ----------- ------- -------------- ------
21-
; PRINT-NEXT:; cbuffer NA NA CB0 cb0 1
22-
; PRINT-NEXT:; cbuffer NA NA CB1 cb1 1
23-
; PRINT-NEXT:; cbuffer NA NA CB2 cb5,space15 1
24+
; PRINT-NEXT:; CB1 cbuffer NA NA CB0 cb0 1
25+
; PRINT-NEXT:; CB2 cbuffer NA NA CB1 cb1 1
26+
; PRINT-NEXT:; MyConstants cbuffer NA NA CB2 cb5,space15 1
2427

2528
define void @test() #0 {
2629

@@ -31,9 +34,7 @@ define void @test() #0 {
3134
; int2 d;
3235
; }
3336
%CB1.cb_h = call target("dx.CBuffer", target("dx.Layout", %__cblayout_CB1, 24, 0, 4, 8, 16))
34-
@llvm.dx.resource.handlefrombinding(i32 0, i32 0, i32 1, i32 0, i1 false, ptr null)
35-
store target("dx.CBuffer", target("dx.Layout", %__cblayout_CB1, 24, 0, 4, 8, 16)) %CB1.cb_h, ptr @CB1.cb, align 4
36-
37+
@llvm.dx.resource.handlefrombinding(i32 0, i32 0, i32 1, i32 0, i1 false, ptr @CB1.str)
3738
; cbuffer CB2 : register(b0) {
3839
; float a;
3940
; double b;
@@ -45,9 +46,7 @@ define void @test() #0 {
4546
;}
4647

4748
%CB2.cb_h = call target("dx.CBuffer", target("dx.Layout", %__cblayout_CB2, 36, 0, 8, 16, 20, 22, 24, 32))
48-
@llvm.dx.resource.handlefrombinding(i32 0, i32 1, i32 1, i32 0, i1 false, ptr null)
49-
store target("dx.CBuffer", target("dx.Layout", %__cblayout_CB2, 36, 0, 8, 16, 20, 22, 24, 32)) %CB2.cb_h, ptr @CB2.cb, align 4
50-
49+
@llvm.dx.resource.handlefrombinding(i32 0, i32 1, i32 1, i32 0, i1 false, ptr @CB2.str)
5150
; cbuffer CB3 : register(b5) {
5251
; double B0;
5352
; float3 B1;
@@ -59,19 +58,22 @@ define void @test() #0 {
5958
; half3 B7;
6059
; half3 B8;
6160
; }
62-
%CB3.cb_h = call target("dx.CBuffer", target("dx.Layout", %__cblayout_CB3, 96, 0, 16, 28, 32, 56, 64, 80, 84, 90))
63-
@llvm.dx.resource.handlefrombinding(i32 15, i32 5, i32 1, i32 0, i1 false, ptr null)
64-
store target("dx.CBuffer", target("dx.Layout", %__cblayout_CB3, 96, 0, 16, 28, 32, 56, 64, 80, 84, 90)) %CB3.cb_h, ptr @CB3.cb, align 4
61+
%CB3.cb_h = call target("dx.CBuffer", target("dx.Layout", %__cblayout_MyConstants, 96, 0, 16, 28, 32, 56, 64, 80, 84, 90))
62+
@llvm.dx.resource.handlefrombinding(i32 15, i32 5, i32 1, i32 0, i1 false, ptr @MyConstants.str)
6563

6664
ret void
6765
}
6866

6967
attributes #0 = { noinline nounwind "hlsl.shader"="compute" }
7068

69+
; CHECK: @CB1 = external constant %cbuffer
70+
; CHECK: @CB2 = external constant %cbuffer.0
71+
; CHECK: @MyConstants = external constant %cbuffer.1
72+
7173
; CHECK: !dx.resources = !{[[ResList:[!][0-9]+]]}
7274

7375
; CHECK: [[ResList]] = !{null, null, [[CBList:[!][0-9]+]], null}
74-
; CHECK: [[CBList]] = !{![[CB1:[0-9]+]], ![[CB2:[0-9]+]], ![[CB3:[0-9]+]]}
75-
; CHECK: ![[CB1]] = !{i32 0, ptr @0, !"", i32 0, i32 0, i32 1, i32 24, null}
76-
; CHECK: ![[CB2]] = !{i32 1, ptr @1, !"", i32 0, i32 1, i32 1, i32 36, null}
77-
; CHECK: ![[CB3]] = !{i32 2, ptr @2, !"", i32 15, i32 5, i32 1, i32 96, null}
76+
; CHECK: [[CBList]] = !{![[CB1:[0-9]+]], ![[CB2:[0-9]+]], ![[MYCONSTANTS:[0-9]+]]}
77+
; CHECK: ![[CB1]] = !{i32 0, ptr @CB1, !"CB1", i32 0, i32 0, i32 1, i32 24, null}
78+
; CHECK: ![[CB2]] = !{i32 1, ptr @CB2, !"CB2", i32 0, i32 1, i32 1, i32 36, null}
79+
; CHECK: ![[MYCONSTANTS]] = !{i32 2, ptr @MyConstants, !"MyConstants", i32 15, i32 5, i32 1, i32 96, null}

llvm/test/CodeGen/DirectX/Metadata/resource-symbols.ll

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
target triple = "dxil-pc-shadermodel6.6-compute"
44

5+
@A.str = private unnamed_addr constant [2 x i8] c"A\00", align 1
6+
@SB.str = private unnamed_addr constant [3 x i8] c"SB\00", align 1
7+
58
%struct.S = type { <4 x float>, <4 x i32> }
69

710
define void @test() {
811
; Buffer<float4>
912
%float4 = call target("dx.TypedBuffer", <4 x float>, 0, 0, 0)
10-
@llvm.dx.resource.handlefrombinding(i32 0, i32 0, i32 1, i32 0, i1 false, ptr null)
13+
@llvm.dx.resource.handlefrombinding(i32 0, i32 0, i32 1, i32 0, i1 false, ptr @A.str)
1114
; CHECK: %TypedBuffer = type { <4 x float> }
1215

1316
; Buffer<int>
@@ -22,7 +25,7 @@ define void @test() {
2225

2326
; StructuredBuffer<S>
2427
%struct0 = call target("dx.RawBuffer", %struct.S, 0, 0)
25-
@llvm.dx.resource.handlefrombinding(i32 0, i32 10, i32 1, i32 0, i1 true, ptr null)
28+
@llvm.dx.resource.handlefrombinding(i32 0, i32 10, i32 1, i32 0, i1 true, ptr @SB.str)
2629
; CHECK: %StructuredBuffer = type { %struct.S }
2730

2831
; ByteAddressBuffer
@@ -39,10 +42,10 @@ define void @test() {
3942
; CHECK-NEXT: @[[S0:.*]] = external constant %StructuredBuffer
4043
; CHECK-NEXT: @[[B0:.*]] = external constant %ByteAddressBuffer
4144

42-
; CHECK: !{i32 0, ptr @[[T0]], !""
45+
; CHECK: !{i32 0, ptr @[[T0]], !"A"
4346
; CHECK: !{i32 1, ptr @[[T1]], !""
4447
; CHECK: !{i32 2, ptr @[[T2]], !""
45-
; CHECK: !{i32 3, ptr @[[S0]], !""
48+
; CHECK: !{i32 3, ptr @[[S0]], !"SB"
4649
; CHECK: !{i32 4, ptr @[[B0]], !""
4750

4851
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }

llvm/test/CodeGen/DirectX/Metadata/srv_metadata.ll

Lines changed: 64 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -5,112 +5,118 @@
55
target datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64"
66
target triple = "dxil-pc-shadermodel6.6-compute"
77

8-
%"class.hlsl::Buffer" = type { target("dx.TypedBuffer", <4 x half>, 0, 0, 0) }
9-
%"class.hlsl::Buffer.1" = type { target("dx.TypedBuffer", <2 x float>, 0, 0, 0) }
10-
%"class.hlsl::Buffer.2" = type { target("dx.TypedBuffer", double, 0, 0, 0) }
11-
%"class.hlsl::Buffer.3" = type { target("dx.TypedBuffer", i32, 0, 0, 1) }
12-
%"class.hlsl::ByteAddressBuffer" = type { target("dx.RawBuffer", i8, 0, 0) }
13-
%"class.hlsl::StructuredBuffer" = type { target("dx.RawBuffer", i16, 0, 0) }
14-
%"class.hlsl::Buffer.4" = type { target("dx.TypedBuffer", i64, 0, 0, 0) }
15-
16-
@Zero = internal global %"class.hlsl::Buffer" poison, align 4
17-
@One = internal global %"class.hlsl::Buffer.1" poison, align 4
18-
@Two = internal global %"class.hlsl::Buffer.2" poison, align 4
19-
@Three = internal global %"class.hlsl::Buffer.3" poison, align 4
20-
@Four = internal global %"class.hlsl::ByteAddressBuffer" poison, align 4
21-
@Five = internal global %"class.hlsl::StructuredBuffer" poison, align 4
22-
@Six = internal global %"class.hlsl::Buffer.4" poison, align 4
8+
@Zero.str = private unnamed_addr constant [5 x i8] c"Zero\00", align 1
9+
@One.str = private unnamed_addr constant [4 x i8] c"One\00", align 1
10+
@Two.str = private unnamed_addr constant [4 x i8] c"Two\00", align 1
11+
@Three.str = private unnamed_addr constant [6 x i8] c"Three\00", align 1
12+
@Four.str = private unnamed_addr constant [5 x i8] c"Four\00", align 1
13+
@Five.str = private unnamed_addr constant [5 x i8] c"Five\00", align 1
14+
@Six.str = private unnamed_addr constant [4 x i8] c"Six\00", align 1
15+
@Seven.str = private unnamed_addr constant [6 x i8] c"Seven\00", align 1
16+
@Array.str = private unnamed_addr constant [6 x i8] c"Array\00", align 1
2317

2418
; PRINT:; Resource Bindings:
2519
; PRINT-NEXT:;
2620
; PRINT-NEXT:; Name Type Format Dim ID HLSL Bind Count
2721
; PRINT-NEXT:; ------------------------------ ---------- ------- ----------- ------- -------------- ------
28-
; PRINT-NEXT:; texture f16 buf T0 t0 1
29-
; PRINT-NEXT:; texture f32 buf T1 t1 1
30-
; PRINT-NEXT:; texture f64 buf T2 t2 1
31-
; PRINT-NEXT:; texture i32 buf T3 t3 1
32-
; PRINT-NEXT:; texture byte r/o T4 t5 1
33-
; PRINT-NEXT:; texture struct r/o T5 t6 1
34-
; PRINT-NEXT:; texture u64 buf T6 t10,space2 1
35-
; PRINT-NEXT:; texture f32 buf T7 t4,space3 100
22+
; PRINT-NEXT:; Zero texture f16 buf T0 t0 1
23+
; PRINT-NEXT:; One texture f32 buf T1 t1 1
24+
; PRINT-NEXT:; Two texture f64 buf T2 t2 1
25+
; PRINT-NEXT:; Three texture i32 buf T3 t3 1
26+
; PRINT-NEXT:; Four texture byte r/o T4 t5 1
27+
; PRINT-NEXT:; Five texture struct r/o T5 t6 1
28+
; PRINT-NEXT:; Six texture u64 buf T6 t10,space2 1
29+
; PRINT-NEXT:; Array texture f32 buf T7 t4,space3 100
30+
; PRINT-NEXT:; Seven texture u64 buf T8 t20,space5 1
31+
;
3632

3733
define void @test() #0 {
38-
; Buffer<half4> Buf : register(t0)
34+
; Buffer<half4> Zero : register(t0)
3935
%Zero_h = call target("dx.TypedBuffer", <4 x half>, 0, 0, 0)
40-
@llvm.dx.resource.handlefrombinding(i32 0, i32 0, i32 1, i32 0, i1 false, ptr null)
41-
store target("dx.TypedBuffer", <4 x half>, 0, 0, 0) %Zero_h, ptr @Zero, align 4
36+
@llvm.dx.resource.handlefrombinding(i32 0, i32 0, i32 1, i32 0, i1 false, ptr @Zero.str)
4237

43-
; Buffer<float4> Buf : register(t1)
38+
; Buffer<float4> One : register(t1)
4439
%One_h = call target("dx.TypedBuffer", <2 x float>, 0, 0, 0)
45-
@llvm.dx.resource.handlefrombinding(i32 0, i32 1, i32 1, i32 0, i1 false, ptr null)
46-
store target("dx.TypedBuffer", <2 x float>, 0, 0, 0) %One_h, ptr @One, align 4
40+
@llvm.dx.resource.handlefrombinding(i32 0, i32 1, i32 1, i32 0, i1 false, ptr @One.str)
4741

4842
; Buffer<double> Two : register(t2);
4943
%Two_h = call target("dx.TypedBuffer", double, 0, 0, 0)
50-
@llvm.dx.resource.handlefrombinding(i32 0, i32 2, i32 1, i32 0, i1 false, ptr null)
51-
store target("dx.TypedBuffer", double, 0, 0, 0) %Two_h, ptr @Two, align 4
44+
@llvm.dx.resource.handlefrombinding(i32 0, i32 2, i32 1, i32 0, i1 false, ptr @Two.str)
5245

5346
; Buffer<int4> Three : register(t3);
5447
%Three_h = call target("dx.TypedBuffer", <4 x i32>, 0, 0, 1)
55-
@llvm.dx.resource.handlefrombinding(i32 0, i32 3, i32 1, i32 0, i1 false, ptr null)
56-
store target("dx.TypedBuffer", <4 x i32>, 0, 0, 1) %Three_h, ptr @Three, align 4
48+
@llvm.dx.resource.handlefrombinding(i32 0, i32 3, i32 1, i32 0, i1 false, ptr @Three.str)
5749

5850
; ByteAddressBuffer Four : register(t4)
5951
%Four_h = call target("dx.RawBuffer", i8, 0, 0)
60-
@llvm.dx.resource.handlefrombinding(i32 0, i32 5, i32 1, i32 0, i1 false, ptr null)
61-
store target("dx.RawBuffer", i8, 0, 0) %Four_h, ptr @Four, align 4
52+
@llvm.dx.resource.handlefrombinding(i32 0, i32 5, i32 1, i32 0, i1 false, ptr @Four.str)
6253

6354
; StructuredBuffer<int16_t> Five : register(t6);
6455
%Five_h = call target("dx.RawBuffer", i16, 0, 0)
65-
@llvm.dx.resource.handlefrombinding(i32 0, i32 6, i32 1, i32 0, i1 false, ptr null)
66-
store target("dx.RawBuffer", i16, 0, 0) %Five_h, ptr @Five, align 4
56+
@llvm.dx.resource.handlefrombinding(i32 0, i32 6, i32 1, i32 0, i1 false, ptr @Five.str)
6757

6858
; Buffer<double> Six : register(t10, space2);
6959
%Six_h = call target("dx.TypedBuffer", i64, 0, 0, 0)
70-
@llvm.dx.resource.handlefrombinding(i32 2, i32 10, i32 1, i32 0, i1 false, ptr null)
71-
store target("dx.TypedBuffer", i64, 0, 0, 0) %Six_h, ptr @Six, align 4
60+
@llvm.dx.resource.handlefrombinding(i32 2, i32 10, i32 1, i32 0, i1 false, ptr @Six.str)
61+
62+
; Same buffer type as Six - should have the same type in metadata
63+
; Buffer<double> Seven : register(t10, space2);
64+
%Seven_h = call target("dx.TypedBuffer", i64, 0, 0, 0)
65+
@llvm.dx.resource.handlefrombinding(i32 5, i32 20, i32 1, i32 0, i1 false, ptr @Seven.str)
7266

7367
; Buffer<float4> Array[100] : register(t4, space3);
7468
; Buffer<float4> B1 = Array[30];
7569
; Buffer<float4> B1 = Array[42];
7670
; resource array accesses should produce one metadata entry
7771
%Array_30_h = call target("dx.TypedBuffer", <4 x float>, 0, 0, 0)
78-
@llvm.dx.resource.handlefrombinding(i32 3, i32 4, i32 100, i32 30, i1 false, ptr null)
72+
@llvm.dx.resource.handlefrombinding(i32 3, i32 4, i32 100, i32 30, i1 false, ptr @Array.str)
7973
%Array_42_h = call target("dx.TypedBuffer", <4 x float>, 0, 0, 0)
80-
@llvm.dx.resource.handlefrombinding(i32 3, i32 4, i32 100, i32 42, i1 false, ptr null)
74+
@llvm.dx.resource.handlefrombinding(i32 3, i32 4, i32 100, i32 42, i1 false, ptr @Array.str)
8175

8276
ret void
8377
}
8478

8579
attributes #0 = { noinline nounwind "hlsl.shader"="compute" }
8680

87-
; CHECK: @0 = external constant %TypedBuffer
88-
; CHECK: @1 = external constant %TypedBuffer.0
89-
; CHECK: @2 = external constant %TypedBuffer.1
90-
; CHECK: @3 = external constant %TypedBuffer.2
91-
; CHECK: @4 = external constant %ByteAddressBuffer
92-
; CHECK: @5 = external constant %StructuredBuffer
93-
; CHECK: @6 = external constant %TypedBuffer.3
94-
; CHECK: @7 = external constant %TypedBuffer.4
81+
; CHECK: %TypedBuffer = type { <4 x half> }
82+
; CHECK: %TypedBuffer.0 = type { <2 x float> }
83+
; CHECK: %TypedBuffer.1 = type { double }
84+
; CHECK: %TypedBuffer.2 = type { <4 x i32> }
85+
; CHECK: %ByteAddressBuffer = type { i32 }
86+
; CHECK: %StructuredBuffer = type { i16 }
87+
; CHECK: %TypedBuffer.3 = type { i64 }
88+
; CHECK: %TypedBuffer.4 = type { <4 x float> }
89+
; CHECK: %TypedBuffer.5 = type { i64 }
90+
91+
; CHECK: @Zero = external constant %TypedBuffer
92+
; CHECK: @One = external constant %TypedBuffer.0
93+
; CHECK: @Two = external constant %TypedBuffer.1
94+
; CHECK: @Three = external constant %TypedBuffer.2
95+
; CHECK: @Four = external constant %ByteAddressBuffer
96+
; CHECK: @Five = external constant %StructuredBuffer
97+
; CHECK: @Six = external constant %TypedBuffer.3
98+
; CHECK: @Array = external constant %TypedBuffer.4
99+
; CHECK: @Seven = external constant %TypedBuffer.5
95100

96101
; CHECK: !dx.resources = !{[[ResList:[!][0-9]+]]}
97102

98103
; CHECK: [[ResList]] = !{[[SRVList:[!][0-9]+]], null, null, null}
99104
; CHECK: [[SRVList]] = !{![[Zero:[0-9]+]], ![[One:[0-9]+]], ![[Two:[0-9]+]],
100105
; CHECK-SAME: ![[Three:[0-9]+]], ![[Four:[0-9]+]], ![[Five:[0-9]+]],
101-
; CHECK-SAME: ![[Six:[0-9]+]], ![[Array:[0-9]+]]}
106+
; CHECK-SAME: ![[Six:[0-9]+]], ![[Array:[0-9]+]], ![[Seven:[0-9]+]]}
102107

103-
; CHECK: ![[Zero]] = !{i32 0, ptr @0, !"", i32 0, i32 0, i32 1, i32 10, i32 0, ![[Half:[0-9]+]]}
108+
; CHECK: ![[Zero]] = !{i32 0, ptr @Zero, !"Zero", i32 0, i32 0, i32 1, i32 10, i32 0, ![[Half:[0-9]+]]}
104109
; CHECK: ![[Half]] = !{i32 0, i32 8}
105-
; CHECK: ![[One]] = !{i32 1, ptr @1, !"", i32 0, i32 1, i32 1, i32 10, i32 0, ![[Float:[0-9]+]]}
110+
; CHECK: ![[One]] = !{i32 1, ptr @One, !"One", i32 0, i32 1, i32 1, i32 10, i32 0, ![[Float:[0-9]+]]}
106111
; CHECK: ![[Float]] = !{i32 0, i32 9}
107-
; CHECK: ![[Two]] = !{i32 2, ptr @2, !"", i32 0, i32 2, i32 1, i32 10, i32 0, ![[Double:[0-9]+]]}
112+
; CHECK: ![[Two]] = !{i32 2, ptr @Two, !"Two", i32 0, i32 2, i32 1, i32 10, i32 0, ![[Double:[0-9]+]]}
108113
; CHECK: ![[Double]] = !{i32 0, i32 10}
109-
; CHECK: ![[Three]] = !{i32 3, ptr @3, !"", i32 0, i32 3, i32 1, i32 10, i32 0, ![[I32:[0-9]+]]}
114+
; CHECK: ![[Three]] = !{i32 3, ptr @Three, !"Three", i32 0, i32 3, i32 1, i32 10, i32 0, ![[I32:[0-9]+]]}
110115
; CHECK: ![[I32]] = !{i32 0, i32 4}
111-
; CHECK: ![[Four]] = !{i32 4, ptr @4, !"", i32 0, i32 5, i32 1, i32 11, i32 0, null}
112-
; CHECK: ![[Five]] = !{i32 5, ptr @5, !"", i32 0, i32 6, i32 1, i32 12, i32 0, ![[FiveStride:[0-9]+]]}
116+
; CHECK: ![[Four]] = !{i32 4, ptr @Four, !"Four", i32 0, i32 5, i32 1, i32 11, i32 0, null}
117+
; CHECK: ![[Five]] = !{i32 5, ptr @Five, !"Five", i32 0, i32 6, i32 1, i32 12, i32 0, ![[FiveStride:[0-9]+]]}
113118
; CHECK: ![[FiveStride]] = !{i32 1, i32 2}
114-
; CHECK: ![[Six]] = !{i32 6, ptr @6, !"", i32 2, i32 10, i32 1, i32 10, i32 0, ![[U64:[0-9]+]]}
119+
; CHECK: ![[Six]] = !{i32 6, ptr @Six, !"Six", i32 2, i32 10, i32 1, i32 10, i32 0, ![[U64:[0-9]+]]}
115120
; CHECK: ![[U64]] = !{i32 0, i32 7}
116-
; CHECK: ![[Array]] = !{i32 7, ptr @7, !"", i32 3, i32 4, i32 100, i32 10, i32 0, ![[Float]]}
121+
; CHECK: ![[Array]] = !{i32 7, ptr @Array, !"Array", i32 3, i32 4, i32 100, i32 10, i32 0, ![[Float]]}
122+
; CHECK: ![[Seven]] = !{i32 8, ptr @Seven, !"Seven", i32 5, i32 20, i32 1, i32 10, i32 0, ![[U64]]}

0 commit comments

Comments
 (0)