[llvm] [NVPTX] Add Volta Atomic SequentiallyConsistent Load and Store Operations (PR #98551)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 11:57:07 PDT 2024
================
@@ -820,68 +845,76 @@ static unsigned int getCodeMemorySemantic(MemSDNode *N,
(CodeAddrSpace == NVPTX::PTXLdStInstCode::GENERIC ||
CodeAddrSpace == NVPTX::PTXLdStInstCode::GLOBAL ||
CodeAddrSpace == NVPTX::PTXLdStInstCode::SHARED);
+ if (!AddrGenericOrGlobalOrShared)
+ return NVPTX::Ordering::NotAtomic;
----------------
Artem-B wrote:
Are there any cases we may want to use volatile here?
We probably do not need it for 'local'. But I'm not quite sure about `.const`. Technically it could be updated by the host and we may need to have a way to force a read from it.
https://github.com/llvm/llvm-project/pull/98551
More information about the llvm-commits
mailing list