Skip to content

Commit c7d083a

Browse files
committed
Address Comments
1 parent 8751ed5 commit c7d083a

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

llvm/include/llvm/Analysis/DXILResource.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,6 @@ class ResourceInfo {
350350
Symbol(Symbol) {}
351351

352352
void setBindingID(unsigned ID) { Binding.RecordID = ID; }
353-
void setGloballyCoherent(bool V) { GloballyCoherent = V; }
354-
void setCounterDirection(ResourceCounterDirection V) { CounterDirection = V; }
355353

356354
bool hasCounter() const {
357355
return CounterDirection != ResourceCounterDirection::Unknown;

llvm/lib/Target/DirectX/DXILPrettyPrinter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ static StringRef getTextureDimName(dxil::ResourceKind RK) {
139139
namespace {
140140
struct FormatResourceDimension
141141
: public llvm::FormatAdapter<const dxil::ResourceTypeInfo &> {
142-
explicit FormatResourceDimension(const dxil::ResourceTypeInfo &RI,
143-
bool HasCounter)
142+
FormatResourceDimension(const dxil::ResourceTypeInfo &RI, bool HasCounter)
144143
: llvm::FormatAdapter<const dxil::ResourceTypeInfo &>(RI),
145144
HasCounter(HasCounter) {}
146145

llvm/unittests/Analysis/DXILResourceTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ TEST(DXILResource, AnnotationsAndMetadata) {
281281
ResourceInfo RI(
282282
/*RecordID=*/0, /*Space=*/2, /*LowerBound=*/0, /*Size=*/1,
283283
RTI.getHandleTy());
284-
RI.setGloballyCoherent(true);
284+
RI.GloballyCoherent = true;
285285
GlobalVariable *GV =
286286
RI.createSymbol(M, RTI.createElementStruct(), "OutputTexture");
287287
EXPECT_PROPS_EQ(RI.getAnnotateProps(M, RTI), 0x00005002U, 0x00000204U);
@@ -335,7 +335,7 @@ TEST(DXILResource, AnnotationsAndMetadata) {
335335
ResourceInfo RI(
336336
/*RecordID=*/0, /*Space=*/0, /*LowerBound=*/2, /*Size=*/1,
337337
RTI.getHandleTy());
338-
RI.setCounterDirection(ResourceCounterDirection::Increment);
338+
RI.CounterDirection = ResourceCounterDirection::Increment;
339339
GlobalVariable *GV =
340340
RI.createSymbol(M, RTI.createElementStruct(), "g_OutputBuffer");
341341
EXPECT_PROPS_EQ(RI.getAnnotateProps(M, RTI), 0x0000920cU, 0x00000014U);

0 commit comments

Comments
 (0)