[clang] [llvm] [AMDGPU] Introduce asyncmark/wait intrinsics (PR #173259)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 22 07:18:01 PST 2025
================
@@ -566,6 +569,35 @@ class SIInsertWaitcnts {
return VmemReadMapping[getVmemType(Inst)];
}
+ bool hasCPolAsyncBit(const MachineInstr &MI) const {
+ const MachineOperand *CPol = TII->getNamedOperand(MI, AMDGPU::OpName::cpol);
+ if (!CPol || !CPol->isImm())
+ return false;
+ return CPol->getImm() & AMDGPU::CPol::ASYNC_pregfx12;
+ }
+
+ // FIXME: For GFX1250, this should also check for usesASYNC_CNT
----------------
jayfoad wrote:
It already does?
https://github.com/llvm/llvm-project/pull/173259
More information about the llvm-commits
mailing list