[llvm] [AMDGPU] CodeGen for GFX12 S_WAIT_* instructions (PR #77438)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 12 06:02:40 PST 2024
================
@@ -57,7 +57,18 @@ namespace {
// associated with the operand. Used for determining whether
// s_waitcnt instruction needs to be emitted.
-enum InstCounterType { VM_CNT = 0, LGKM_CNT, EXP_CNT, VS_CNT, NUM_INST_CNTS };
+enum InstCounterType {
+ LOAD_CNT = 0, // VMcnt prior to gfx12.
+ DS_CNT, // LKGMcnt prior to gfx12.
+ EXP_CNT, //
+ STORE_CNT, // VScnt in gfx10/gfx11.
+ NUM_NORMAL_INST_CNTS,
----------------
jayfoad wrote:
I guess I could change this if required, but it doesn't really seem any better or worse to me.
https://github.com/llvm/llvm-project/pull/77438
More information about the llvm-commits
mailing list