[llvm-dev] RFC: Add atomic versions of the llvm.memcpy, llvm.memmove and llvm.memset intrinsics
Joerg Sonnenberger via llvm-dev
llvm-dev at lists.llvm.org
Fri Nov 11 06:23:57 PST 2016
On Fri, Nov 11, 2016 at 02:13:26PM +0000, Igor Laevsky via llvm-dev wrote:
> LLVM's memory intrinsics are quite useful for performing various optimizations
> with frequently used memory operations. Unfortunately this intrinsics are not applicable for
> languages with guaranteed atomicity for their memory accesses (like Java for example).
At the very least, it is a extremely bad name. The operation is not
atomic at all, it is piecewise at most. I don't see how this is any
better than just using an explicit loop, given that any lowering is
highly unlikely to be able to do anything different.
Joerg
More information about the llvm-dev
mailing list