[clang] [llvm] [AMDGPU] Introduce asyncmark/wait intrinsics (PR #173259)
Krzysztof Drewniak via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 5 10:09:00 PST 2026
================
@@ -368,12 +368,15 @@ enum CPol {
GLC = 1,
SLC = 2,
DLC = 4,
+ SWZ_pregfx12 = 8,
SCC = 16,
+ ASYNC_pregfx12 = 32,
----------------
krzysz00 wrote:
I figure this should be an MMO flag at the isel level. At the IR level, smuggling this state into the high bits of CPol is a backwards-compatible way to have state that, unlike metadata, can't be dropped.
I'd be willing to clear the existing volatile out of CPol if we went and upgraded all the intrinsics to take an `immarg i1 %volatile` instead
https://github.com/llvm/llvm-project/pull/173259
More information about the cfe-commits
mailing list