[llvm] [TableGen] Extend direct lookup to instruction values in generic tables. (PR #80486)
Jason Eckhardt via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 4 13:50:12 PST 2024
================
@@ -207,12 +213,17 @@ class SearchableTableEmitter {
// For search indices that consists of a single field whose numeric value is
// known, return that numeric value.
-static int64_t getNumericKey(const SearchIndex &Index, Record *Rec) {
+static int64_t getNumericKey(const SearchIndex &Index, Record *Rec,
+ InstrEnumMapT &InstrEnumMap) {
----------------
nvjle wrote:
Done. Although I removed the `InstrEnumMap` parameter, it is still useful to do this since we need to invoke the new query function `Target->getInstrIntValue`.
https://github.com/llvm/llvm-project/pull/80486
More information about the llvm-commits
mailing list