[llvm] [AMDGPU] introduce S_WAITCNT_LDS_DIRECT in the memory legalizer (PR #150887)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 28 02:38:50 PDT 2025
================
@@ -1621,6 +1621,13 @@ let OtherPredicates = [HasImageInsts] in {
def S_WAIT_KMCNT_soft : SOPP_Pseudo <"s_soft_wait_kmcnt", (ins s16imm:$simm16), "$simm16">;
}
+// Represents the point at which a wave must wait for all outstanding direct loads to LDS.
+// Typically inserted by the memory legalizer and consumed by SIInsertWaitcnts.
+
+def S_WAITCNT_LDS_DIRECT : SPseudoInstSI<(outs), (ins)> {
----------------
Pierre-vh wrote:
`WAIT_LDS_DIRECT_PSEUDO` (following a similar pattern to `ATOMIC_FENCE` and other SOP pseudos?)
https://github.com/llvm/llvm-project/pull/150887
More information about the llvm-commits
mailing list