make all Emit*() functions consult the TargetLibraryInfo information before creating...
authorNuno Lopes <nunoplopes@sapo.pt>
Wed, 25 Jul 2012 16:46:31 +0000 (16:46 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Wed, 25 Jul 2012 16:46:31 +0000 (16:46 +0000)
commit51004dff923259c90591621e7151408ad94e0eb8
treee459db95fd8e0f721e3e9a7b947215bc58cee518
parentc338fe082860989d89b51520042a5f447339eb8c
make all Emit*() functions consult the TargetLibraryInfo information before creating a call to a library function.
Update all clients to pass the TLI information around.
Previous draft reviewed by Eli.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160733 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLibraryInfo.h
include/llvm/Transforms/Utils/BuildLibCalls.h
lib/Target/TargetLibraryInfo.cpp
lib/Transforms/InstCombine/InstCombineCalls.cpp
lib/Transforms/Scalar/CodeGenPrepare.cpp
lib/Transforms/Scalar/SimplifyLibCalls.cpp
lib/Transforms/Utils/BuildLibCalls.cpp