[llvm] [AMDGPU] Implement "non-av" semantics using metadata (PR #199489)
Sameer Sahasrabuddhe via llvm-commits
llvm-commits at lists.llvm.org
Wed May 27 18:58:13 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");
----------------
ssahasra wrote:
Yeah, I was struggling with that when validating "!amdgcn-av !none". For now I just copied what is done for "!amdgpu-synchronize-as", which is to validate it at the time of consumption. It would be nice to separately work on an AMDGPU metadata verifier plugged into the IR verifier.
https://github.com/llvm/llvm-project/pull/199489
More information about the llvm-commits
mailing list