[LLVMdev] Keeping Clang from changing function calls to IR operations: cmpxchg
Dan
westdac at gmail.com
Tue May 14 15:46:24 PDT 2013
I'm working on getting the LLVM/projects/Test-Suite/UnitTest to compile for
a target that I am developing.
There is an example: AtomicOps, that uses calls to:
__sync_fetch_and_add
__sync_val_compare_and_swap
__sync_lock_test_and_set
These get converted into llvm IR operations like:
atomicrmw
cmpxchg
Is there any way to keep these as function calls, as they are easier to map
to the target's eventual functional then having to deal with atomicrmw and
cmpxchg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130514/b6871e5a/attachment.html>
More information about the llvm-dev
mailing list