[LLVMdev] RFC: add "cmpxchg weak" to LLVM IR

Chandler Carruth
2014-06-12T16:50:12Z

On Thu, Jun 12, 2014 at 5:22 PM, Tim Northover <t.p.northover at
gmail.com>
wrote:

> 1. All cmpxchg instructions now return { iN, i1 } where the first
> value is what we got before (the loaded result), the second == 1 if an
> exchange took place.
>

Having to do extractvalue to get stuff out of these kinds of aggregates
is... somewhat horrible... have you thought of any alternatives?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20140612/f9d96965/attachment.html>