jyknight accepted this revision. jyknight added a comment. This revision is now accepted and ready to land. Please replace the function libcallAtomicModel in AtomicExpandPass.cpp with your new toCABI. Other than that, LGTM. http://reviews.llvm.org/D18875