Fall back to selection DAG isel for calls to builtin functions.
authorBob Wilson <bob.wilson@apple.com>
Fri, 3 Aug 2012 04:06:28 +0000 (04:06 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 3 Aug 2012 04:06:28 +0000 (04:06 +0000)
commitd49edb7ab098fa0c82f59efbcf1b4eb2958f8dc3
tree4b5501fbb4854f887d64f9f1f828402f0fcc6600
parentd1e672e0234b99dbff78baed0e47d033cf963abe
Fall back to selection DAG isel for calls to builtin functions.

Fast isel doesn't currently have support for translating builtin function
calls to target instructions.  For embedded environments where the library
functions are not available, this is a matter of correctness and not
just optimization.  Most of this patch is just arranging to make the
TargetLibraryInfo available in fast isel.  <rdar://problem/12008746>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161232 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/FastISel.h
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/Target/ARM/ARMFastISel.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMISelLowering.h
lib/Target/X86/X86FastISel.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
test/CodeGen/X86/fabs.ll