[llvm] [AMDGPU][SIInsertWaitcnts][NFC] Introduce Counter class (PR #190271)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 11:20:09 PDT 2026
================
@@ -742,14 +743,65 @@ class WaitcntBrackets {
bool empty(InstCounterType T) const { return getScoreRange(T) == 0; }
private:
+ /// A container that holds all counters.
+ class AllCounters {
----------------
shiltian wrote:
IMHO the class is still better, even though it is just a wrapper at this moment. Based on the code, it seems like in the long run we will not expose those functions that can touch the raw data, which means this class will provide a much better encapsulation.
https://github.com/llvm/llvm-project/pull/190271
More information about the llvm-commits
mailing list