[llvm] [Exegesis][RISCV] Add RISCV support for llvm-exegesis (PR #89047)

Clement Courbet via llvm-commits llvm-commits at lists.llvm.org
Tue May 14 05:08:10 PDT 2024


================
@@ -86,6 +86,14 @@ class ExegesisTarget {
                 ArrayRef<const char *> ValidationCounters,
                 const pid_t ProcessID = 0) const;
 
+  virtual bool checkOpcodeSupported(int Opcode,
+                                    const MCSubtargetInfo &SI) const {
+    return true;
+  }
+
+  // Find register by name, NoRegister if not found.
+  virtual unsigned findRegisterByName(const StringRef RegName) const = 0;
----------------
legrosbuffle wrote:

Why can't this be non-virtual and use `RegNameToRegNoMapping` ?

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


More information about the llvm-commits mailing list