diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-10-17 18:25:06 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-10-17 18:25:06 +0000 |
commit | 6b94c2a09be9b526641355f009fa11656890a69c (patch) | |
tree | b8efc4cd65f1e5aa9bcb3f03d49d71cf573e46eb /llvm/lib/Transforms/Vectorize/Vectorize.cpp | |
parent | b02dcec79ee25c965dafe63ee98c9225ec30f6a1 (diff) | |
download | bcm5719-llvm-6b94c2a09be9b526641355f009fa11656890a69c.tar.gz bcm5719-llvm-6b94c2a09be9b526641355f009fa11656890a69c.zip |
Add a loop vectorizer.
llvm-svn: 166112
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/Vectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/Vectorize.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/Vectorize.cpp b/llvm/lib/Transforms/Vectorize/Vectorize.cpp index 1ef60029bcf..d26973a7b38 100644 --- a/llvm/lib/Transforms/Vectorize/Vectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/Vectorize.cpp @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// // -// This file implements common infrastructure for libLLVMVectorizeOpts.a, which +// This file implements common infrastructure for libLLVMVectorizeOpts.a, which // implements several vectorization transformations over the LLVM intermediate // representation, including the C bindings for that library. // @@ -23,10 +23,11 @@ using namespace llvm; -/// initializeVectorizationPasses - Initialize all passes linked into the +/// initializeVectorizationPasses - Initialize all passes linked into the /// Vectorization library. void llvm::initializeVectorization(PassRegistry &Registry) { initializeBBVectorizePass(Registry); + initializeLoopVectorizePass(Registry); } void LLVMInitializeVectorization(LLVMPassRegistryRef R) { @@ -37,3 +38,6 @@ void LLVMAddBBVectorizePass(LLVMPassManagerRef PM) { unwrap(PM)->add(createBBVectorizePass()); } +void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM) { + unwrap(PM)->add(createLoopVectorizePass()); +} |