[llvm-branch-commits] [llvm] [AMDGPU] Implement "non-av" semantics using metadata (PR #199489)

Fabian Ritter via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 26 05:24:32 PDT 2026


================
@@ -733,6 +737,13 @@ getSynchronizeAddrSpaceMD(const MachineInstr &MI) {
   return Result;
 }
 
+static bool hasAVNoneMMRA(const MachineInstr &MI) {
+  auto MMRA = MMRAMetadata(MI.getMMRAMetadata());
+  if (!MMRA)
+    return false;
+  return MMRA.hasTag("amdgcn-av", "none");
----------------
ritter-x2a wrote:

Also: should we diagnose values other than `"none"`? There is no case where we want to make use of the happens-before-breaking semantics of incompatible MMRAs, right?

https://github.com/llvm/llvm-project/pull/199489


More information about the llvm-branch-commits mailing list