[llvm] [TableGen] Add support for emitting new function definition to return a range of results for Primary Key (PR #96174)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 21:39:15 PDT 2024


================
@@ -793,7 +828,8 @@ void SearchableTableEmitter::run(raw_ostream &OS) {
     Table.Indices.push_back(
         parseSearchIndex(Table, IndexRec->getValue("Key"), IndexRec->getName(),
                          IndexRec->getValueAsListOfStrings("Key"),
-                         IndexRec->getValueAsBit("EarlyOut")));
+                         IndexRec->getValueAsBit("EarlyOut"),
+                         IndexRec->getValueAsBit("ReturnRange")));
----------------
topperc wrote:

Can we just pass `false` here instead of calling `IndexRec->getValueAsBit("ReturnRange")`? Would that remove the need for having `ReturnRange` in the `SearchIndex` class in tablegen?

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


More information about the llvm-commits mailing list