[llvm] [TableGen][SIInsertWaitcnts] use RegIntervals for AMDGPU (PR #174888)

Nicolai Hähnle via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 8 13:46:17 PST 2026


================
@@ -97,10 +97,18 @@ auto inst_counter_types(InstCounterType MaxCounter = NUM_INST_CNTS) {
   return enum_seq(LOAD_CNT, MaxCounter);
 }
 
+// All regunits for a particular MCRegister are contiguous, so we don't need the
+// actual MCRegUnit.
+using RegUnit = unsigned;
----------------
nhaehnle wrote:

Needs a better name, since we're presumably going to use it to number things that are not regunits...

First thought: How about ResourceUnit, since we're tracking general resources? Or StorageUnit, since we're tracking different kinds of storage (private registers, but also lane-shared, the LDSDMA stuff).

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


More information about the llvm-commits mailing list