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

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Mon May 13 09:46:41 PDT 2024


================
@@ -133,6 +133,12 @@ struct Instruction {
   // aliasing Use and Def registers.
   bool hasAliasingRegisters(const BitVector &ForbiddenRegisters) const;
 
+  // Whether this instruction is self aliasing through some registers.
+  // Repeating this instruction may execute sequentially by picking aliasing
+  // Def and Not Memory Use registers. It may also execute in parallel by
+  // picking non aliasing Def and Not Memory Use registers.
+  bool hasAliasingNotMemoryRegisters(const BitVector &ForbiddenRegisters) const;
----------------
mshockwave wrote:

general question: it seems like you made quite some improvements on the infrastructure for memory instructions, which is nice. But could you add tests for these potentially corner cases so that we don't regress in the future.

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


More information about the llvm-commits mailing list