<div dir="ltr"><div><br></div><div>I'm working on getting the LLVM/projects/Test-Suite/UnitTest to compile for a target that I am developing.<br></div><div style><br></div><div style>There is an example: AtomicOps, that uses calls to:</div>
<div style><br></div><div style>__sync_fetch_and_add</div><div style>__sync_val_compare_and_swap</div><div style>__sync_lock_test_and_set</div><div style><br></div><div style>These get converted into llvm IR operations like:</div>
<div style><br></div><div style>atomicrmw</div><div style>cmpxchg</div><div style><br></div><div style>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</div>
</div>