[llvm] [TableGen] Add support for sparse direct-lookup tables (PR #201158)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 26 09:55:11 PDT 2026


================
@@ -860,6 +937,9 @@ void SearchableTableEmitter::run(raw_ostream &OS) {
         Table, IndexRec->getValue("Key"), IndexRec->getName(),
         IndexRec->getValueAsListOfStrings("Key"),
         IndexRec->getValueAsBit("EarlyOut"), /*ReturnRange*/ false));
+
+    // Sparse tables with secondary search indices are not supported.
+    Table.AllowSparseTable = false;
----------------
jurahul wrote:

not realted to this line, but can you also add a lit test for this?

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


More information about the llvm-commits mailing list