[llvm] [AMDGPU][SIInsertWaitcnts][NFC] Common InstCounterType printer (PR #187559)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 09:46:09 PDT 2026
================
@@ -15,16 +16,19 @@ iota_range<InstCounterType> inst_counter_types(InstCounterType MaxCounter) {
return enum_seq(LOAD_CNT, MaxCounter);
}
-StringLiteral getInstCounterName(InstCounterType T) {
+StringLiteral getInstCounterName(InstCounterType T, bool HasExtendedWaitcnts) {
switch (T) {
case LOAD_CNT:
- return "LOAD_CNT";
+ return HasExtendedWaitcnts ? StringLiteral("LOAD_CNT")
----------------
vporpo wrote:
That's what I thought too, but if I drop them I am getting a ` no viable conversion from returned value of type 'const char *' to function return type 'StringLiteral'`.
https://github.com/llvm/llvm-project/pull/187559
More information about the llvm-commits
mailing list