Add entries for Expanding atomic intrinsics to libcalls. Just a placeholder
authorJim Grosbach <grosbach@apple.com>
Thu, 17 Jun 2010 17:50:54 +0000 (17:50 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 17 Jun 2010 17:50:54 +0000 (17:50 +0000)
commitb56ce8171ec52f44015d95127faaa7dd4ed92763
tree57bb6ca26e039a730ca27905e2693cfcf828a511
parent218883aa70f5f18b28800a16fd299285a241cff4
Add entries for Expanding atomic intrinsics to libcalls. Just a placeholder
for the moment. The implementation of the libcall will follow.

Currently, the llvm-gcc knows when the intrinsics can be correctly handled by
the back end and only generates them in those cases, issuing libcalls directly
otherwise. That's too much coupling. The intrinsics should always be
generated and the back end decide how to handle them, be it with a libcall,
inline code, or whatever. This patch is a step in that direction.

rdar://8097623

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106227 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp