[llvm-branch-commits] [llvm] [AMDGPU][InsertWaitCnts] Move HWEvent analysis code (PR #202887)

Pierre van Houtryve via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jun 10 04:05:34 PDT 2026


================
@@ -25,5 +27,164 @@ void HWEventSet::dump() const {
   print(dbgs());
   dbgs() << "\n";
 }
+
+static HWEventSet getExpertSchedulingEventType(const MachineInstr &Inst,
+                                               const SIInstrInfo &TII) {
+  if (TII.isVALU(Inst)) {
+    // Core/Side-, DP-, XDL- and TRANS-MACC VALU instructions complete
+    // out-of-order with respect to each other, so each of these classes
+    // has its own event.
+
+    if (TII.isXDL(Inst))
+      return {HWEvent::VGPR_XDL_WRITE};
----------------
Pierre-vh wrote:

There is, but it is marked explicit so braces are still needed

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


More information about the llvm-branch-commits mailing list