[llvm] [AMDGPU] Add new cache flushing instructions for GFX12 (PR #76944)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 4 05:23:18 PST 2024
================
@@ -2132,6 +2142,62 @@ bool SIGfx11CacheControl::enableVolatileAndOrNonTemporal(
return Changed;
}
+bool SIGfx12CacheControl::insertAcquire(MachineBasicBlock::iterator &MI,
+ SIAtomicScope Scope,
+ SIAtomicAddrSpace AddrSpace,
+ Position Pos) const {
+ if (!InsertCacheInv)
+ return false;
+
+ MachineBasicBlock &MBB = *MI->getParent();
+ DebugLoc DL = MI->getDebugLoc();
----------------
arsenm wrote:
const ref
https://github.com/llvm/llvm-project/pull/76944
More information about the llvm-commits
mailing list