[llvm-commits] CVS: llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Mar 10 16:22:01 PST 2004
Changes in directory llvm/lib/Target/SparcV9/RegAlloc:
PhyRegAlloc.cpp updated: 1.141 -> 1.142
---
Log message:
Move all the SaveState options and stuff inton one spot at the top of the file.
De-constify SaveStateToModule; we have to set both it and SaveRegAllocState
explicitly in the reoptimizer.
Make SaveRegAllocState an 'external location' option.
---
Diffs of the changes: (+10 -8)
Index: llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.141 llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.142
--- llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.141 Wed Mar 10 16:01:59 2004
+++ llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp Wed Mar 10 16:21:03 2004
@@ -51,12 +51,6 @@
RegAllocDebugLevel_t DEBUG_RA;
-/// The reoptimizer wants to be able to grovel through the register
-/// allocator's state after it has done its job. This is a hack.
-///
-PhyRegAlloc::SavedStateMapTy ExportedFnAllocState;
-const bool SaveStateToModule = true;
-
static cl::opt<RegAllocDebugLevel_t, true>
DRA_opt("dregalloc", cl::Hidden, cl::location(DEBUG_RA),
cl::desc("enable register allocation debugging information"),
@@ -69,8 +63,16 @@
clEnumValN(RA_DEBUG_Verbose, "v", "extra debug output"),
0));
-static cl::opt<bool>
-SaveRegAllocState("save-ra-state", cl::Hidden,
+/// The reoptimizer wants to be able to grovel through the register
+/// allocator's state after it has done its job. This is a hack.
+///
+PhyRegAlloc::SavedStateMapTy ExportedFnAllocState;
+bool SaveRegAllocState = false;
+bool SaveStateToModule = true;
+static cl::opt<bool, true>
+SaveRegAllocStateOpt("save-ra-state", cl::Hidden,
+ cl::location (SaveRegAllocState),
+ cl::init(false),
cl::desc("write reg. allocator state into module"));
FunctionPass *getRegisterAllocator(TargetMachine &T) {
More information about the llvm-commits
mailing list