summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Target.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-18 21:50:34 +0000
committerChris Lattner <sabre@nondot.org>2011-02-18 21:50:34 +0000
commit0e125bb4d0f153ac18fc86adc1bedc33c6176f34 (patch)
tree2fac1a7b2fc21c78ad0ec6c0fd343f128589197f /llvm/lib/Target/Target.cpp
parentd2f7431fa80367fb7b7cc773561e38c11a9777a2 (diff)
downloadbcm5719-llvm-0e125bb4d0f153ac18fc86adc1bedc33c6176f34.tar.gz
bcm5719-llvm-0e125bb4d0f153ac18fc86adc1bedc33c6176f34.zip
introduce a new TargetLibraryInfo pass, which transformations can use to
query about available library functions. For now this just has memset_pattern16, which exists on darwin, but it can be extended for a bunch of other things in the future. llvm-svn: 125965
Diffstat (limited to 'llvm/lib/Target/Target.cpp')
-rw-r--r--llvm/lib/Target/Target.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Target.cpp b/llvm/lib/Target/Target.cpp
index 9609099e914..0919fe42dc0 100644
--- a/llvm/lib/Target/Target.cpp
+++ b/llvm/lib/Target/Target.cpp
@@ -24,6 +24,7 @@ using namespace llvm;
void llvm::initializeTarget(PassRegistry &Registry) {
initializeTargetDataPass(Registry);
+ initializeTargetLibraryInfoPass(Registry);
}
void LLVMInitializeTarget(LLVMPassRegistryRef R) {
OpenPOWER on IntegriCloud