diff options
| author | Brian Gaeke <gaeke@uiuc.edu> | 2004-03-10 22:21:03 +0000 |
|---|---|---|
| committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-03-10 22:21:03 +0000 |
| commit | 0e09916d602b480a90ff6fba46792e5aee27fb63 (patch) | |
| tree | 620a43be105fd81771ab386e157ab5ecc5435c99 /llvm | |
| parent | f819263cc1f9ad7c6251a18dcdc32f3314fdb255 (diff) | |
| download | bcm5719-llvm-0e09916d602b480a90ff6fba46792e5aee27fb63.tar.gz bcm5719-llvm-0e09916d602b480a90ff6fba46792e5aee27fb63.zip | |
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.
llvm-svn: 12278
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp index 9682c81ddc1..410c1203f86 100644 --- a/llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp +++ b/llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp @@ -51,12 +51,6 @@ namespace llvm { 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 @@ DRA_opt("dregalloc", cl::Hidden, cl::location(DEBUG_RA), 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) { |

