[llvm-branch-commits] [llvm] [AMDGPU][NewInsertWaitcnt] Event Tracker (2/2) (PR #232344)

Sameer Sahasrabuddhe via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Nov 11 21:57:45 PST 2026


ssahasra wrote:

> The merged timeline has one mission: If you inspect it and find a record that you need, you must be able to emit a waicnt N where N is the age of the record to access it safely.
> 
> I added a paragraph in the docs of EventTrackerRecord to insist on that:
> 
> ```
> /// The primary motivation for this system is that we want the capability to
> /// determine what kind of waitcnt must be emitted for a given event (record) to
> /// complete. For example, let R be a record in the timeline of a counter T,
> /// then a "waitcnt_T N" (a "drain") where N is <= the age of R must be
> /// sufficient to guarantee that R has completed (and its results can be used).
> ```
> 
> I hope these few fixes help clarify the system ?

But this is identical to the waitcnt itself ... what if we call it just that?

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


More information about the llvm-branch-commits mailing list