[llvm] [TableGen] Extend direct lookup to instruction values in generic tables. (PR #80486)

Wang Pengcheng via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 3 19:45:43 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) {
----------------
wangpc-pp wrote:

A style nit(just mine). What about making `getNumericKey` a class function like `getIntrinsic`, so that we don't need to pass `InstrEnumMap`?

https://github.com/llvm/llvm-project/pull/80486


More information about the llvm-commits mailing list