Hi, is there currently a way to create a cmpxchg instruction using the C bindings? I only found LLVMBuildAtomicRMW and LLVMBuildFence in the documentation. Regards, Christoph Grenz
On 3 April 2017 at 12:16, Christoph Grenz via llvm-dev <llvm-dev at lists.llvm.org> wrote:> I only found LLVMBuildAtomicRMW and LLVMBuildFence in the documentation.I see an LLVMBuildAtomicCmpXchg in the header (it's been there for about a year). The documentation does seem out of date though, for reasons that are beyond me. Cheers. Tim.
Thanks! It seems that my local headers are quite a bit out of date :-) Regards Christoph Am Montag, 3. April 2017, 12:33:05 schrieb Tim Northover:> On 3 April 2017 at 12:16, Christoph Grenz via llvm-dev > > <llvm-dev at lists.llvm.org> wrote: > > I only found LLVMBuildAtomicRMW and LLVMBuildFence in the documentation. > > I see an LLVMBuildAtomicCmpXchg in the header (it's been there for > about a year). The documentation does seem out of date though, for > reasons that are beyond me. > > Cheers. > > Tim.