[llvm] [AMDGPU] Introduce custom MIR formatting for s_wait_alu (PR #176316)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 27 02:13:24 PST 2026
================
@@ -2074,8 +2074,24 @@ int encodeDepCtr(const StringRef Name, int64_t Val, unsigned &UsedOprMask,
unsigned getVaVdstBitMask() { return (1 << getVaVdstBitWidth()) - 1; }
+unsigned getVaSdstBitMask() { return (1 << getVaSdstBitWidth()) - 1; }
+
+unsigned getVaSsrcBitMask() { return (1 << getVaSsrcBitWidth()) - 1; }
+
+unsigned getHoldCntBitMask(const MCSubtargetInfo &STI) {
----------------
jayfoad wrote:
Instead of putting the logic in here, please make getHoldCntWidth return 0 on subtargets that don't have that field. That's how we handle Xcnt and some other fields for s_waitcnt.
https://github.com/llvm/llvm-project/pull/176316
More information about the llvm-commits
mailing list