[llvm] [AMDGPU] Handle natively unsupported types in addrspace(7) lowering (PR #110572)
Krzysztof Drewniak via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 1 11:17:08 PDT 2024
================
@@ -3488,6 +3490,16 @@ void llvm::copyMetadataForLoad(LoadInst &Dest, const LoadInst &Source) {
copyRangeMetadata(DL, Source, N, Dest);
break;
}
+ // Extended last-use / nontemporal hint on AMD GPUs
+ if (ID == Ctx.getMDKindID("amdpu.last.use"))
+ Dest.setMetadata(ID, N);
+ // Currently only relevant to atomics
+ else if (ID == Ctx.getMDKindID("amdgpu.no.remote.memory"))
+ Dest.setMetadata(ID, N);
+ else if (ID == Ctx.getMDKindID("amdgpu.no.fine.grained.memory"))
+ Dest.setMetadata(ID, N);
+ else if (ID == Ctx.getMDKindID("amdgpu.ignore.denormal.mode"))
+ Dest.setMetadata(ID, N);
----------------
krzysz00 wrote:
Agreed on the denormal mode one, but the previous two could come up in the context of atomic loads at some future point
https://github.com/llvm/llvm-project/pull/110572
More information about the llvm-commits
mailing list