[llvm] [Offload] Add support for measuring elapsed time between events (PR #186856)

Leandro Lacerda via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 28 12:06:49 PDT 2026


================
@@ -1144,6 +1169,18 @@ struct AMDGPUStreamTy {
     return {Curr, InputSignal};
   }
 
+  /// Roll back the last consumed slot after a submission failure so the stream
+  /// does not retain a slot for an operation that was never enqueued.
+  void rollbackConsumedSlot(uint32_t Slot) {
+    assert(NextSlot > 0 && "cannot roll back an empty stream");
----------------
leandrolcampos wrote:

Done, thanks.

Again, thanks a lot for the careful review.

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


More information about the llvm-commits mailing list