forked from OSchip/llvm-project
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
This commit is contained in:
parent
f819263cc1
commit
0e09916d60
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue