[llvm] [AMDGPU][NewInsertWaitcnt] Add Event Tracker (PR #226970)
Sameer Sahasrabuddhe via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 11 00:29:34 PDT 2026
================
@@ -0,0 +1,277 @@
+//===- AMDGPUEventTracking.h ------------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+/// \file Tracks a per-InstCounterType event timeline which preserves
+/// information about previously encountered MachineInstr and HWEvents.
+///
+/// The goal of this file is to implement a minimal API to preserve information
+/// about events that increment an instruction counter. Such events are
+/// contained in records called \ref EventTrackerRecord, which include:
+/// - The event kind, as a `HWEvent`
+/// - The instruction that triggered the event
+/// - The height of the record in the overall timeline of the counter, see
----------------
ssahasra wrote:
What is this height relative to? Is height a total order over all records, or a partial order governed by event kind?
https://github.com/llvm/llvm-project/pull/226970
More information about the llvm-commits
mailing list