summaryrefslogtreecommitdiff
path: root/tools/opt
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2012-02-01 03:51:43 +0000
committerHal Finkel <hfinkel@anl.gov>2012-02-01 03:51:43 +0000
commitde5e5ec3045a73a06b1054417f9ac6c02929e9ce (patch)
tree02f43070729c0328db2d86e33acd94df3ab52d53 /tools/opt
parentd0e277d272d517ca1cda368267d199f0da7cad95 (diff)
downloadllvm-de5e5ec3045a73a06b1054417f9ac6c02929e9ce.tar.gz
llvm-de5e5ec3045a73a06b1054417f9ac6c02929e9ce.tar.bz2
llvm-de5e5ec3045a73a06b1054417f9ac6c02929e9ce.tar.xz
Add a basic-block autovectorization pass.
This is the initial checkin of the basic-block autovectorization pass along with some supporting vectorization infrastructure. Special thanks to everyone who helped review this code over the last several months (especially Tobias Grosser). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt')
-rw-r--r--tools/opt/CMakeLists.txt2
-rw-r--r--tools/opt/Makefile2
-rw-r--r--tools/opt/opt.cpp1
3 files changed, 3 insertions, 2 deletions
diff --git a/tools/opt/CMakeLists.txt b/tools/opt/CMakeLists.txt
index 0570d0e04a..7daf22aa9e 100644
--- a/tools/opt/CMakeLists.txt
+++ b/tools/opt/CMakeLists.txt
@@ -1,4 +1,4 @@
-set(LLVM_LINK_COMPONENTS bitreader asmparser bitwriter instrumentation scalaropts ipo)
+set(LLVM_LINK_COMPONENTS bitreader asmparser bitwriter instrumentation scalaropts ipo vectorize)
add_llvm_tool(opt
AnalysisWrappers.cpp
diff --git a/tools/opt/Makefile b/tools/opt/Makefile
index e8cd7e2857..16d116da5d 100644
--- a/tools/opt/Makefile
+++ b/tools/opt/Makefile
@@ -9,6 +9,6 @@
LEVEL := ../..
TOOLNAME := opt
-LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo
+LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo vectorize
include $(LEVEL)/Makefile.common
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 51613649b5..30da863b41 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -480,6 +480,7 @@ int main(int argc, char **argv) {
PassRegistry &Registry = *PassRegistry::getPassRegistry();
initializeCore(Registry);
initializeScalarOpts(Registry);
+ initializeVectorization(Registry);
initializeIPO(Registry);
initializeAnalysis(Registry);
initializeIPA(Registry);