diff options
author | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-07-12 20:14:27 +0000 |
---|---|---|
committer | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-07-12 20:14:27 +0000 |
commit | 45db2c77b5ca63c75d88a203f8fc7a15e2c8e271 (patch) | |
tree | 3c9cef4aae4824515b2a5b2a596af7e87b0e6278 | |
parent | 0ec220ca37776b5fa65d5dcc6f77473b62bd06f7 (diff) |
added emitfuncs pass, and disabled reassociate pass (needs fixing)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2885 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/opt/opt.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 70f82be639..609fd2c1e0 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -25,6 +25,7 @@ #include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h" #include "llvm/Transforms/Instrumentation/TraceValues.h" #include "llvm/Transforms/Instrumentation/ProfilePaths.h" +#include "llvm/Transforms/Instrumentation/EmitFunctions.h" #include "llvm/Target/TargetData.h" #include "Support/CommandLine.h" #include "Support/Signals.h" @@ -53,7 +54,7 @@ enum Opts { indvars, instcombine, sccp, adce, raise, reassociate, mem2reg, pinodes, // Instrumentation - trace, tracem, paths, + trace, tracem, paths, emitfuncs, // Interprocedural optimizations... internalize, globaldce, swapstructs, sortstructs, poolalloc, @@ -94,7 +95,7 @@ struct { { sccp , createSCCPPass }, { adce , createAggressiveDCEPass }, { raise , createRaisePointerReferencesPass }, - { reassociate, createReassociatePass }, + /* { reassociate, createReassociatePass },*/ { mem2reg , createPromoteMemoryToRegister }, { pinodes , createPiNodeInsertionPass }, { lowerrefs , createDecomposeMultiDimRefsPass }, @@ -102,6 +103,7 @@ struct { { trace , createTraceValuesPassForBasicBlocks }, { tracem , createTraceValuesPassForFunction }, { paths , createProfilePathsPass }, + { emitfuncs , createEmitFunctionTablePass }, { print , createPrintFunctionPass }, { printm , createPrintModulePass }, { verify , createVerifierPass }, @@ -162,6 +164,7 @@ cl::EnumList<enum Opts> OptimizationList(cl::NoFlags, clEnumVal(trace , "Insert BB and Function trace code"), clEnumVal(tracem , "Insert Function trace code only"), clEnumVal(paths , "Insert path profiling instrumentation"), + clEnumVal(emitfuncs , "Insert function pointer table"), clEnumVal(print , "Print working function to stderr"), clEnumVal(printm , "Print working module to stderr"), clEnumVal(verify , "Verify module is well formed"), |