Skip to content

Commit c031071

Browse files
committed
[AArch64] Simplify ExactFPImm GenericTable. NFC
lookupExactFPImmByRepr is never called. The Name field in the table is unneeded. The Name is only used by the GenericEnum.
1 parent 97ea0ab commit c031071

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

llvm/lib/Target/AArch64/AArch64SystemOperands.td

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -630,19 +630,14 @@ def ExactFPImmValues : GenericEnum {
630630

631631
def ExactFPImmsList : GenericTable {
632632
let FilterClass = "ExactFPImm";
633-
let Fields = ["Name", "Enum", "Repr"];
633+
let Fields = ["Enum", "Repr"];
634634
}
635635

636636
def lookupExactFPImmByEnum : SearchIndex {
637637
let Table = ExactFPImmsList;
638638
let Key = ["Enum"];
639639
}
640640

641-
def lookupExactFPImmByRepr : SearchIndex {
642-
let Table = ExactFPImmsList;
643-
let Key = ["Repr"];
644-
}
645-
646641
def : ExactFPImm<"zero", "0.0", 0x0>;
647642
def : ExactFPImm<"half", "0.5", 0x1>;
648643
def : ExactFPImm<"one", "1.0", 0x2>;

llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ LLVM_DECLARE_ENUM_AS_BITMASK(TailFoldingOpts,
565565

566566
namespace AArch64ExactFPImm {
567567
struct ExactFPImm {
568-
const char *Name;
569568
int Enum;
570569
const char *Repr;
571570
};

0 commit comments

Comments
 (0)