Skip to content

Commit 5bf2247

Browse files
committed
fixup! Address review comments.
1 parent f8cc0cb commit 5bf2247

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/include/llvm/CodeGen/RDFRegisters.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ template <typename T, unsigned N = 32> struct IndexedSet {
8787

8888
struct RegisterRef {
8989
private:
90-
static constexpr unsigned MaskFlag = 1u << 30;
91-
static constexpr unsigned UnitFlag = 1u << 31;
90+
static constexpr RegisterId MaskFlag = 1u << 30;
91+
static constexpr RegisterId UnitFlag = 1u << 31;
9292

9393
public:
9494
RegisterId Reg = 0;
@@ -114,7 +114,7 @@ struct RegisterRef {
114114
return Reg & ~UnitFlag;
115115
}
116116

117-
constexpr unsigned getMaskIdx() const {
117+
constexpr unsigned asMaskIdx() const {
118118
assert(isMask());
119119
return toMaskIdx(Reg);
120120
}

llvm/lib/CodeGen/RDFRegisters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ void PhysicalRegisterInfo::print(raw_ostream &OS, RegisterRef A) const {
260260
} else if (A.isUnit()) {
261261
OS << printRegUnit(A.asMCRegUnit(), &TRI);
262262
} else {
263-
unsigned Idx = A.getMaskIdx();
263+
unsigned Idx = A.asMaskIdx();
264264
const char *Fmt = Idx < 0x10000 ? "%04x" : "%08x";
265265
OS << "M#" << format(Fmt, Idx);
266266
}

0 commit comments

Comments
 (0)