[LLVMdev] AtomicRMW Additions

William Moses moses.williamsteven at gmail.com
Thu Jan 2 19:40:33 PST 2014


All,

I was wondering if the following operations could be implemented atomically
in LLVM (a la AtomicRMW): Multiplication, Division, Remainder, Bit
Shifting, or Logical Not (this could be implemented by xor with a value of
all 1's).

Is there a reason implementation-wise that they are not there?

Additionally, would it be possible to create something similar to AtomicRMW
that returned the new value instead of the old one?

If not, I would be interested in learning why.

Thanks,
Billy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140102/0d4a7849/attachment.html>


More information about the llvm-dev mailing list