[llvm] a418eb1 - [ARM] Use GenericTable PrimaryKey to remove one of the SearchIndexes for BankedRegsList. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 10 22:09:32 PST 2025
Author: Craig Topper
Date: 2025-01-10T22:04:42-08:00
New Revision: a418eb1c0ddeb119d9cfbf6d6e80c0f118503d13
URL: https://github.com/llvm/llvm-project/commit/a418eb1c0ddeb119d9cfbf6d6e80c0f118503d13
DIFF: https://github.com/llvm/llvm-project/commit/a418eb1c0ddeb119d9cfbf6d6e80c0f118503d13.diff
LOG: [ARM] Use GenericTable PrimaryKey to remove one of the SearchIndexes for BankedRegsList. NFC
Added:
Modified:
llvm/lib/Target/ARM/ARMSystemRegister.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMSystemRegister.td b/llvm/lib/Target/ARM/ARMSystemRegister.td
index 3afc410e045685..d68cab1d0ebb60 100644
--- a/llvm/lib/Target/ARM/ARMSystemRegister.td
+++ b/llvm/lib/Target/ARM/ARMSystemRegister.td
@@ -154,6 +154,9 @@ class BankedReg<string name, bits<8> enc> {
def BankedRegsList : GenericTable {
let FilterClass = "BankedReg";
let Fields = ["Name", "Encoding"];
+
+ let PrimaryKey = ["Encoding"];
+ let PrimaryKeyName = "lookupBankedRegByEncoding";
}
def lookupBankedRegByName : SearchIndex {
@@ -161,11 +164,6 @@ def lookupBankedRegByName : SearchIndex {
let Key = ["Name"];
}
-def lookupBankedRegByEncoding : SearchIndex {
- let Table = BankedRegsList;
- let Key = ["Encoding"];
-}
-
// The values here come from B9.2.3 of the ARM ARM, where bits 4-0 are SysM
// and bit 5 is R.
More information about the llvm-commits
mailing list