Skip to content

Commit a418eb1

Browse files
committed
[ARM] Use GenericTable PrimaryKey to remove one of the SearchIndexes for BankedRegsList. NFC
1 parent 2d5f07c commit a418eb1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

llvm/lib/Target/ARM/ARMSystemRegister.td

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,18 +154,16 @@ class BankedReg<string name, bits<8> enc> {
154154
def BankedRegsList : GenericTable {
155155
let FilterClass = "BankedReg";
156156
let Fields = ["Name", "Encoding"];
157+
158+
let PrimaryKey = ["Encoding"];
159+
let PrimaryKeyName = "lookupBankedRegByEncoding";
157160
}
158161

159162
def lookupBankedRegByName : SearchIndex {
160163
let Table = BankedRegsList;
161164
let Key = ["Name"];
162165
}
163166

164-
def lookupBankedRegByEncoding : SearchIndex {
165-
let Table = BankedRegsList;
166-
let Key = ["Encoding"];
167-
}
168-
169167

170168
// The values here come from B9.2.3 of the ARM ARM, where bits 4-0 are SysM
171169
// and bit 5 is R.

0 commit comments

Comments
 (0)