This is an archive of the discontinued LLVM Phabricator instance.

[CUDA] Implement atomicInc and atomicDec builtins
ClosedPublic

Authored by jhen on Mar 21 2016, 11:07 AM.

Details

Summary

These functions cannot be implemented as atomicrmw or cmpxchg
instructions, so they are implemented as a call to the NVVM intrinsics
@llvm.nvvm.atomic.load.inc.32.p0i32 and
@llvm.nvvm.atomic.load.dec.32.p0i32.

Diff Detail

Repository
rL LLVM

Event Timeline

jhen updated this revision to Diff 51191.Mar 21 2016, 11:07 AM
jhen retitled this revision from to [CUDA] Implement atomicInc and atomicDec builtins.
jhen updated this object.
jhen added a reviewer: tra.
jhen added a subscriber: jlebar.
jhen removed a subscriber: jlebar.
jlebar accepted this revision.Mar 21 2016, 11:22 AM
jlebar edited edge metadata.
This revision is now accepted and ready to land.Mar 21 2016, 11:22 AM
This revision was automatically updated to reflect the committed changes.