[llvm] [MCA] New option to report scheduling information: -scheduling-info (PR #126703)

Julien Villette via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 13 05:16:54 PST 2025


================
@@ -174,3 +174,40 @@ MCSchedModel::getForwardingDelayCycles(ArrayRef<MCReadAdvanceEntry> Entries,
 
   return std::abs(DelayCycles);
 }
+
+unsigned
+MCSchedModel::getForwardingDelayCycles(const MCSubtargetInfo &STI,
+                                       const MCSchedClassDesc &SCDesc) {
+
+  ArrayRef<MCReadAdvanceEntry> Entries = STI.getReadAdvanceEntries(SCDesc);
+  if (Entries.empty())
+    return 0;
+
+  unsigned Latency = 0;
+  unsigned maxLatency = 0;
----------------
jvillette38 wrote:

Done

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


More information about the llvm-commits mailing list