[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
Thu Jul 4 23:19:55 PDT 2024


================
@@ -426,16 +428,25 @@ void SearchableTableEmitter::emitLookupFunction(const GenericTable &Table,
     OS << "    return nullptr;\n\n";
   }
 
-  OS << "  struct KeyType {\n";
-  for (const auto &Field : Index.Fields) {
-    OS << "    " << searchableFieldType(Table, Index, Field, TypeInTempStruct)
-       << " " << Field.Name << ";\n";
+  bool ShouldReturnRange = Index.ReturnRange;
+  if (ShouldReturnRange)
----------------
quic-garvgupt wrote:

Thanks! Should I include those changes in my next patchset or will it be merged separately?

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


More information about the llvm-commits mailing list