From dc9a1f5ce813d7d397726106bb796520c47d20e6 Mon Sep 17 00:00:00 2001 From: Anand Shukla Date: Tue, 26 Feb 2002 19:57:59 +0000 Subject: Includes -paths option to trace paths in the program git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1811 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/opt/opt.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 2d77306671..34eff8f2ff 100644 --- a/tools/opt/opt.cpp +++ b/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 #include @@ -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 }, { tracem , New }, + { paths , New }, { print , NewPrintMethodPass }, { verify , createVerifierPass }, { raiseallocs, New }, @@ -139,7 +144,7 @@ cl::EnumList 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); -- cgit v1.2.3