[llvm] [RISCV]Add support for resolving encoding conflicts among vendor specific CSRs (PR #96174)
Garvit Gupta via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 02:56:51 PDT 2024
================
@@ -540,10 +569,12 @@ void SearchableTableEmitter::emitGenericTable(const GenericTable &Table,
// Indexes are sorted "{ Thing, PrimaryIdx }" arrays, so that a binary
// search can be performed by "Thing".
- if (Table.PrimaryKey)
- emitLookupFunction(Table, *Table.PrimaryKey, true, OS);
+ if (Table.PrimaryKey) {
+ auto &Index = Table.PrimaryKey;
----------------
quic-garvgupt wrote:
This was needed before when an additional argument `ShouldReturnRange` was being passed to emitLookupFunction. But since, it was not needed anymore, we can remove this extra assignment statement as well. I have pushed a new patchset fixing the same
https://github.com/llvm/llvm-project/pull/96174
More information about the llvm-commits
mailing list