@@ -41,7 +41,7 @@ typedef float EmptyArrayTypedef[10][0];
41
41
cbuffer CB {
42
42
// CHECK: VarDecl {{.*}} col:9 used a1 'float'
43
43
float a1;
44
- // CHECK: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .CB definition
44
+ // CHECK: CXXRecordDecl {{.*}} implicit class __layout .CB definition
45
45
// CHECK: FieldDecl {{.*}} a1 'float'
46
46
}
47
47
@@ -60,7 +60,7 @@ cbuffer CB {
60
60
float d2[0 ];
61
61
// CHECK: VarDecl {{.*}} col:9 e2 'float'
62
62
float e2;
63
- // CHECK: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .CB.1 definition
63
+ // CHECK: CXXRecordDecl {{.*}} implicit class __layout .CB.1 definition
64
64
// CHECK: FieldDecl {{.*}} a2 'float'
65
65
// CHECK-NEXT: FieldDecl {{.*}} e2 'float'
66
66
}
@@ -76,11 +76,11 @@ cbuffer CB {
76
76
B s2;
77
77
// CHECK: VarDecl {{.*}} col:12 s3 'CTypedef':'C
78
78
CTypedef s3;
79
- // CHECK: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .B definition
79
+ // CHECK: CXXRecordDecl {{.*}} implicit class __layout .B definition
80
80
// CHECK: FieldDecl {{.*}} a 'float'
81
- // CHECK: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .CB.2 definition
81
+ // CHECK: CXXRecordDecl {{.*}} implicit class __layout .CB.2 definition
82
82
// CHECK: FieldDecl {{.*}} s1 'A'
83
- // CHECK: FieldDecl {{.*}} s2 '__hostlayout.struct .B'
83
+ // CHECK: FieldDecl {{.*}} s2 '__layout .B'
84
84
}
85
85
86
86
// check that layout struct is created for D because of its base struct
@@ -90,15 +90,15 @@ cbuffer CB {
90
90
cbuffer CB {
91
91
// CHECK: VarDecl {{.*}} s4 'D'
92
92
D s4;
93
- // CHECK: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .D definition
93
+ // CHECK: CXXRecordDecl {{.*}} implicit class __layout .D definition
94
94
// CHECK: FieldDecl {{.*}} b 'float'
95
- // CHECK: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .CB.3 definition
96
- // CHECK: FieldDecl {{.*}} s4 '__hostlayout.struct .D'
95
+ // CHECK: CXXRecordDecl {{.*}} implicit class __layout .CB.3 definition
96
+ // CHECK: FieldDecl {{.*}} s4 '__layout .D'
97
97
}
98
98
99
99
// check that layout struct is created for E because because its base struct
100
100
// is empty and should be eliminated, and BTypedef should reuse the previously
101
- // defined '__hostlayout.struct .B'
101
+ // defined '__layout .B'
102
102
// CHECK: HLSLBufferDecl {{.*}} line:105:9 cbuffer CB
103
103
// CHECK: HLSLResourceClassAttr {{.*}} Implicit CBuffer
104
104
// CHECK: HLSLResourceAttr {{.*}} Implicit CBuffer
@@ -107,12 +107,12 @@ cbuffer CB {
107
107
E s5;
108
108
// CHECK: VarDecl {{.*}} s6 'BTypedef':'B'
109
109
BTypedef s6;
110
- // CHECK: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .E definition
110
+ // CHECK: CXXRecordDecl {{.*}} implicit class __layout .E definition
111
111
// CHECK: FieldDecl {{.*}} c 'float'
112
- // CHECK-NOT: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .B definition
113
- // CHECK: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .CB.4 definition
114
- // CHECK: FieldDecl {{.*}} s5 '__hostlayout.struct .E'
115
- // CHECK: FieldDecl {{.*}} s6 '__hostlayout.struct .B'
112
+ // CHECK-NOT: CXXRecordDecl {{.*}} implicit class __layout .B definition
113
+ // CHECK: CXXRecordDecl {{.*}} implicit class __layout .CB.4 definition
114
+ // CHECK: FieldDecl {{.*}} s5 '__layout .E'
115
+ // CHECK: FieldDecl {{.*}} s6 '__layout .B'
116
116
}
117
117
118
118
// check that this produces empty layout struct
@@ -130,7 +130,7 @@ cbuffer CB {
130
130
RWBuffer <float > Buf;
131
131
// CHECK: VarDecl {{.*}} ea 'EmptyArrayTypedef':'float[10][0]'
132
132
EmptyArrayTypedef ea;
133
- // CHECK: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .CB.5 definition
133
+ // CHECK: CXXRecordDecl {{.*}} implicit class __layout .CB.5 definition
134
134
// CHECK-NOT: FieldDecl
135
135
}
136
136
@@ -141,10 +141,10 @@ cbuffer CB {
141
141
cbuffer CB {
142
142
// CHECK: VarDecl {{.*}} s8 'F'
143
143
F s8;
144
- // CHECK: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .F definition
144
+ // CHECK: CXXRecordDecl {{.*}} implicit class __layout .F definition
145
145
// CHECK: public 'A'
146
- // CHECK: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .CB.6 definition
147
- // CHECK: FieldDecl {{.*}} s8 '__hostlayout.struct .F'
146
+ // CHECK: CXXRecordDecl {{.*}} implicit class __layout .CB.6 definition
147
+ // CHECK: FieldDecl {{.*}} s8 '__layout .F'
148
148
}
149
149
150
150
// anonymous structs
@@ -170,13 +170,13 @@ cbuffer CB {
170
170
RWBuffer <float > f;
171
171
} s10;
172
172
// CHECK: VarDecl {{.*}} s10 'struct (unnamed struct at {{.*}}cbuffer.hlsl:166:3
173
- // CHECK: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .anon definition
173
+ // CHECK: CXXRecordDecl {{.*}} implicit class __layout .anon definition
174
174
// CHECK: FieldDecl {{.*}} e 'float'
175
- // CHECK: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .anon.1 definition
175
+ // CHECK: CXXRecordDecl {{.*}} implicit class __layout .anon.1 definition
176
176
// CHECK: FieldDecl {{.*}} g 'int'
177
- // CHECK: CXXRecordDecl {{.*}} implicit class __hostlayout.struct .CB.7 definition
178
- // CHECK: FieldDecl {{.*}} s9 '__hostlayout.struct .anon'
179
- // CHECK: FieldDecl {{.*}} s10 '__hostlayout.struct .anon.1'
177
+ // CHECK: CXXRecordDecl {{.*}} implicit class __layout .CB.7 definition
178
+ // CHECK: FieldDecl {{.*}} s9 '__layout .anon'
179
+ // CHECK: FieldDecl {{.*}} s10 '__layout .anon.1'
180
180
}
181
181
182
182
// Add uses for the constant buffer declarations so they are not optimized away
0 commit comments