18
18
#include " llvm/IR/IntrinsicsDirectX.h"
19
19
#include " llvm/IR/Module.h"
20
20
#include " llvm/InitializePasses.h"
21
- #include " llvm/Support/Casting.h"
22
21
23
22
#define DEBUG_TYPE " dxil-post-optimization-validation"
24
23
@@ -167,14 +166,12 @@ static void reportErrors(Module &M, DXILResourceMap &DRM,
167
166
168
167
for (const ResourceInfo &CBuf : DRM.cbuffers ()) {
169
168
ResourceInfo::ResourceBinding Binding = CBuf.getBinding ();
170
-
171
169
if (!Validation.checkCRegBinding (Binding))
172
170
reportRegNotBound (M, " cbuffer" , Binding);
173
171
}
174
172
175
173
for (const ResourceInfo &SRV : DRM.srvs ()) {
176
174
ResourceInfo::ResourceBinding Binding = SRV.getBinding ();
177
-
178
175
if (!Validation.checkTRegBinding (Binding))
179
176
reportRegNotBound (M, " srv" , Binding);
180
177
else {
@@ -188,7 +185,6 @@ static void reportErrors(Module &M, DXILResourceMap &DRM,
188
185
189
186
for (const ResourceInfo &UAV : DRM.uavs ()) {
190
187
ResourceInfo::ResourceBinding Binding = UAV.getBinding ();
191
-
192
188
if (!Validation.checkURegBinding (Binding))
193
189
reportRegNotBound (M, " uav" , Binding);
194
190
else {
@@ -202,7 +198,6 @@ static void reportErrors(Module &M, DXILResourceMap &DRM,
202
198
203
199
for (const ResourceInfo &Sampler : DRM.samplers ()) {
204
200
ResourceInfo::ResourceBinding Binding = Sampler.getBinding ();
205
-
206
201
if (!Validation.checkSamplerBinding (Binding))
207
202
reportRegNotBound (M, " sampler" , Binding);
208
203
}
0 commit comments