diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-22 02:10:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-22 02:10:13 +0000 |
commit | 5ff62e90d0bc321206023897edc1e2691cb0fbb6 (patch) | |
tree | f9dd91f41ef5858a217a9b871d0e3d8fe089da99 /lib/Target | |
parent | 50e3f88d38d93edcec9047322da8ed43aefc9e3d (diff) | |
download | llvm-5ff62e90d0bc321206023897edc1e2691cb0fbb6.tar.gz llvm-5ff62e90d0bc321206023897edc1e2691cb0fbb6.tar.bz2 llvm-5ff62e90d0bc321206023897edc1e2691cb0fbb6.tar.xz |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/SparcV9/InstrSched/InstrScheduling.cpp | 17 | ||||
-rw-r--r-- | lib/Target/SparcV9/InstrSelection/InstrSelection.cpp | 14 | ||||
-rw-r--r-- | lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp | 16 | ||||
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp | 12 |
4 files changed, 35 insertions, 24 deletions
diff --git a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp index 6ea37247d0..1d4c18058f 100644 --- a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp +++ b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp @@ -21,13 +21,16 @@ using std::vector; SchedDebugLevel_t SchedDebugLevel; -static cl::Enum<enum SchedDebugLevel_t> Opt(SchedDebugLevel,"dsched",cl::Hidden, - "enable instruction scheduling debugging information", - clEnumValN(Sched_NoDebugInfo, "n", "disable debug output"), - clEnumValN(Sched_Disable, "off", "disable instruction scheduling"), - clEnumValN(Sched_PrintMachineCode, "y", "print machine code after scheduling"), - clEnumValN(Sched_PrintSchedTrace, "t", "print trace of scheduling actions"), - clEnumValN(Sched_PrintSchedGraphs, "g", "print scheduling graphs"), 0); +static cl::opt<SchedDebugLevel_t, true> +SDL_opt("dsched", cl::Hidden, cl::location(SchedDebugLevel), + cl::desc("enable instruction scheduling debugging information"), + cl::values( + clEnumValN(Sched_NoDebugInfo, "n", "disable debug output"), + clEnumValN(Sched_Disable, "off", "disable instruction scheduling"), + clEnumValN(Sched_PrintMachineCode, "y", "print machine code after scheduling"), + clEnumValN(Sched_PrintSchedTrace, "t", "print trace of scheduling actions"), + clEnumValN(Sched_PrintSchedGraphs, "g", "print scheduling graphs"), + 0)); //************************* Internal Data Types *****************************/ diff --git a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp index d61feb4797..86e54d0b16 100644 --- a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp +++ b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp @@ -26,7 +26,6 @@ #include "llvm/Function.h" #include "llvm/iPHINode.h" #include "Support/CommandLine.h" -#include <iostream> using std::cerr; using std::vector; @@ -40,13 +39,18 @@ enum SelectDebugLevel_t { Select_DebugBurgTrees, }; + // Enable Debug Options to be specified on the command line -cl::Enum<enum SelectDebugLevel_t> SelectDebugLevel("dselect", cl::Hidden, - "enable instruction selection debugging information", +static cl::opt<SelectDebugLevel_t> +SelectDebugLevel("dselect", cl::Hidden, + cl::desc("enable instruction selection debugging information"), + cl::values( clEnumValN(Select_NoDebugInfo, "n", "disable debug output"), clEnumValN(Select_PrintMachineCode, "y", "print generated machine code"), - clEnumValN(Select_DebugInstTrees, "i", "print debugging info for instruction selection "), - clEnumValN(Select_DebugBurgTrees, "b", "print burg trees"), 0); + clEnumValN(Select_DebugInstTrees, "i", + "print debugging info for instruction selection"), + clEnumValN(Select_DebugBurgTrees, "b", "print burg trees"), + 0)); //******************** Forward Function Declarations ***********************/ diff --git a/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp b/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp index 774bdc7cd7..b080ec2f3e 100644 --- a/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp +++ b/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp @@ -19,12 +19,16 @@ AnalysisID FunctionLiveVarInfo::ID(AnalysisID::create<FunctionLiveVarInfo>()); LiveVarDebugLevel_t DEBUG_LV; -static cl::Enum<LiveVarDebugLevel_t> DEBUG_LV_opt(DEBUG_LV, "dlivevar", cl::Hidden, - "enable live-variable debugging information", - clEnumValN(LV_DEBUG_None , "n", "disable debug output"), - clEnumValN(LV_DEBUG_Normal , "y", "enable debug output"), - clEnumValN(LV_DEBUG_Instr, "i", "print live-var sets before/after every machine instrn"), - clEnumValN(LV_DEBUG_Verbose, "v", "print def, use sets for every instrn also"), 0); +static cl::opt<LiveVarDebugLevel_t, true> +DEBUG_LV_opt("dlivevar", cl::Hidden, cl::location(DEBUG_LV), + cl::desc("enable live-variable debugging information"), + cl::values( +clEnumValN(LV_DEBUG_None , "n", "disable debug output"), +clEnumValN(LV_DEBUG_Normal , "y", "enable debug output"), +clEnumValN(LV_DEBUG_Instr, "i", "print live-var sets before/after " + "every machine instrn"), +clEnumValN(LV_DEBUG_Verbose, "v", "print def, use sets for every instrn also"), + 0)); diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp index ef4156147c..a192310686 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp @@ -19,25 +19,25 @@ #include "llvm/Analysis/LoopInfo.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/MachineFrameInfo.h" -#include "llvm/BasicBlock.h" #include "llvm/Function.h" #include "llvm/Type.h" #include "llvm/iOther.h" #include "llvm/CodeGen/RegAllocCommon.h" #include "Support/CommandLine.h" #include "Support/STLExtras.h" -#include <iostream> #include <math.h> using std::cerr; using std::vector; RegAllocDebugLevel_t DEBUG_RA; -static cl::Enum<RegAllocDebugLevel_t> DEBUG_RA_c(DEBUG_RA, "dregalloc", - cl::Hidden, - "enable register allocation debugging information", +static cl::opt<RegAllocDebugLevel_t, true> +DRA_opt("dregalloc", cl::Hidden, cl::location(DEBUG_RA), + cl::desc("enable register allocation debugging information"), + cl::values( clEnumValN(RA_DEBUG_None , "n", "disable debug output"), clEnumValN(RA_DEBUG_Normal , "y", "enable debug output"), - clEnumValN(RA_DEBUG_Verbose, "v", "enable extra debug output"), 0); + clEnumValN(RA_DEBUG_Verbose, "v", "enable extra debug output"), + 0)); //---------------------------------------------------------------------------- |