[llvm] [TableGen] Add support for sparse direct-lookup tables (PR #201158)
Igor Wodiany via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 29 03:01:36 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;
----------------
IgWod wrote:
I have added a test for it and also a general test for the new lookup type.
https://github.com/llvm/llvm-project/pull/201158
More information about the llvm-commits
mailing list