[llvm] [RFC][AMDGPU][InsertWaitCnt] Move WaitEventType into separate HWEvent header (PR #202886)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 10 01:57:04 PDT 2026


================
@@ -0,0 +1,34 @@
+//===- AMDGPUHWEvents.cpp ---------------------------------------*- 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "AMDGPUHWEvents.h"
+#include "llvm/ADT/StringExtras.h"
+#include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
+
+namespace llvm {
+namespace AMDGPU {
+// NOLINTNEXTLINE
+iota_range<HWEvent> hw_events(HWEvent MaxEvent) {
+  return enum_seq(HWEvent::FIRST_WAIT_EVENT, MaxEvent);
+}
----------------
arsenm wrote:

Should be inline in header?

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


More information about the llvm-commits mailing list