summaryrefslogtreecommitdiff
path: root/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-03-24 03:19:54 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-03-24 03:19:54 +0000
commitd32e70a09f04abd2b9e3de864871f3218589b856 (patch)
tree22944a5b4d01d07b3b61ac1ef846d68617a0f75b /tools/opt/opt.cpp
parentc99afb88ab9639a37cba9a7ef591a55b14af95a0 (diff)
downloadllvm-d32e70a09f04abd2b9e3de864871f3218589b856.tar.gz
llvm-d32e70a09f04abd2b9e3de864871f3218589b856.tar.bz2
llvm-d32e70a09f04abd2b9e3de864871f3218589b856.tar.xz
Rename pass to DecomposeMultiDimRefs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r--tools/opt/opt.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index a7ad98ea88..3fad1ec442 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -26,6 +26,7 @@
#include "llvm/Transforms/Scalar/IndVarSimplify.h"
#include "llvm/Transforms/Scalar/InstructionCombining.h"
#include "llvm/Transforms/Scalar/PromoteMemoryToRegister.h"
+#include "llvm/Transforms/Scalar/DecomposeMultiDimRefs.h"
#include "llvm/Transforms/Instrumentation/TraceValues.h"
#include "llvm/Transforms/Instrumentation/ProfilePaths.h"
#include "Support/CommandLine.h"
@@ -38,7 +39,7 @@ enum Opts {
dce, die, constprop, inlining, constmerge, strip, mstrip, mergereturn,
// Miscellaneous Transformations
- raiseallocs, cleangcc,
+ raiseallocs, cleangcc, lowerrefs,
// Printing and verifying...
print, verify,
@@ -91,6 +92,7 @@ struct {
{ globaldce , createGlobalDCEPass },
{ swapstructs, createSwapElementsPass },
{ sortstructs, createSortElementsPass },
+ { lowerrefs, createDecomposeMultiDimRefsPass }
};
// Command line option handling code...
@@ -129,6 +131,7 @@ cl::EnumList<enum Opts> OptimizationList(cl::NoFlags,
clEnumVal(paths , "Insert path profiling instrumentation"),
clEnumVal(print , "Print working method to stderr"),
clEnumVal(verify , "Verify module is well formed"),
+ clEnumVal(lowerrefs , "Decompose multi-dimensional structure/array refs to use one index per instruction"),
0);