[llvm] [TableGen] Add support for emitting new function definition to return a range of results for Primary Key (PR #96174)
Garvit Gupta via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 23:10:16 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")));
----------------
quic-garvgupt wrote:
This would still require to have `ReturnRange` field in `struct SearchIndex` defined in the SearchableTableEmitter file. I have made the changes. Do let me know if this will be fine
https://github.com/llvm/llvm-project/pull/96174
More information about the llvm-commits
mailing list