diff options
author | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-02-26 19:57:59 +0000 |
---|---|---|
committer | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-02-26 19:57:59 +0000 |
commit | d7291473cfc64fb63d03cf3ae9c90fc7ffe755b7 (patch) | |
tree | 0d68fe31199a05d38d2a48803376792d867b03af | |
parent | 570b8e1da81e732a2217b05c1729970bfaee62d9 (diff) | |
download | bcm5719-llvm-d7291473cfc64fb63d03cf3ae9c90fc7ffe755b7.tar.gz bcm5719-llvm-d7291473cfc64fb63d03cf3ae9c90fc7ffe755b7.zip |
Includes -paths option to trace paths in the program
llvm-svn: 1811
-rw-r--r-- | llvm/tools/opt/opt.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp index 2d77306671e..34eff8f2ff4 100644 --- a/llvm/tools/opt/opt.cpp +++ b/llvm/tools/opt/opt.cpp @@ -27,6 +27,7 @@ #include "llvm/Transforms/Scalar/InstructionCombining.h" #include "llvm/Transforms/Scalar/PromoteMemoryToRegister.h" #include "llvm/Transforms/Instrumentation/TraceValues.h" +#include "llvm/Transforms/Instrumentation/ProfilePaths.h" #include "Support/CommandLine.h" #include <fstream> #include <memory> @@ -37,7 +38,7 @@ enum Opts { dce, constprop, inlining, constmerge, strip, mstrip, mergereturn, // Miscellaneous Transformations - trace, tracem, raiseallocs, cleangcc, + raiseallocs, cleangcc, // Printing and verifying... print, verify, @@ -45,6 +46,9 @@ enum Opts { // More powerful optimizations indvars, instcombine, sccp, adce, raise, mem2reg, + // Instrumentation + trace, tracem, paths, + // Interprocedural optimizations... globaldce, swapstructs, sortstructs, }; @@ -96,6 +100,7 @@ struct { { trace , New<InsertTraceCode, bool, true, bool, true> }, { tracem , New<InsertTraceCode, bool, false, bool, true> }, + { paths , New<ProfilePaths> }, { print , NewPrintMethodPass }, { verify , createVerifierPass }, { raiseallocs, New<RaiseAllocations> }, @@ -139,7 +144,7 @@ cl::EnumList<enum Opts> OptimizationList(cl::NoFlags, clEnumVal(raise , "Raise to Higher Level"), clEnumVal(trace , "Insert BB & Method trace code"), clEnumVal(tracem , "Insert Method trace code only"), - + clEnumVal(paths , "Insert path profiling instrumentation"), clEnumVal(print , "Print working method to stderr"), clEnumVal(verify , "Verify module is well formed"), 0); |