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 | d1b36792143c8d96fcb2ad0e32a7d06ed557d301 (patch) | |
tree | 27dbf059f50aadaa7f2d30dd28dfc4751ea631e5 /lib/Target/SparcV9/RegAlloc | |
parent | 14068d9f9750705ade5890e34211d0ebb4051802 (diff) | |
download | external_llvm-d1b36792143c8d96fcb2ad0e32a7d06ed557d301.zip external_llvm-d1b36792143c8d96fcb2ad0e32a7d06ed557d301.tar.gz external_llvm-d1b36792143c8d96fcb2ad0e32a7d06ed557d301.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12278 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/RegAlloc')
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp index 9682c81..410c120 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp +++ b/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) { |