summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-04 02:44:20 +0000
committerChris Lattner <sabre@nondot.org>2002-02-04 02:44:20 +0000
commit720bc02f18d411d03adf0056d7d8b4e15dd6fa7a (patch)
treeab1365f7930fd313e0ec3a9183a9d725d551db2c
parente769482fd3738caccbbc9edf5aa9304ab81e805c (diff)
downloadbcm5719-llvm-720bc02f18d411d03adf0056d7d8b4e15dd6fa7a.tar.gz
bcm5719-llvm-720bc02f18d411d03adf0056d7d8b4e15dd6fa7a.zip
* Move command line parsing debug stuff to InstrScheduling internal header file
SchedPriorities.h llvm-svn: 1669
-rw-r--r--llvm/include/llvm/CodeGen/InstrScheduling.h15
-rw-r--r--llvm/lib/CodeGen/InstrSched/SchedPriorities.h11
2 files changed, 11 insertions, 15 deletions
diff --git a/llvm/include/llvm/CodeGen/InstrScheduling.h b/llvm/include/llvm/CodeGen/InstrScheduling.h
index 69390fae966..ea15418514d 100644
--- a/llvm/include/llvm/CodeGen/InstrScheduling.h
+++ b/llvm/include/llvm/CodeGen/InstrScheduling.h
@@ -13,25 +13,12 @@
#define LLVM_CODEGEN_INSTR_SCHEDULING_H
#include "llvm/CodeGen/MachineInstr.h"
-#include "Support/CommandLine.h"
class Method;
class SchedulingManager;
class TargetMachine;
class MachineSchedInfo;
-// Debug option levels for instruction scheduling
-enum SchedDebugLevel_t {
- Sched_NoDebugInfo,
- Sched_PrintMachineCode,
- Sched_PrintSchedTrace,
- Sched_PrintSchedGraphs,
-};
-
-extern cl::Enum<SchedDebugLevel_t> SchedDebugLevel;
-
-
-
//---------------------------------------------------------------------------
// Function: ScheduleInstructionsWithSSA
//
@@ -42,7 +29,7 @@ extern cl::Enum<SchedDebugLevel_t> SchedDebugLevel;
// are still in SSA form.
//---------------------------------------------------------------------------
-bool ScheduleInstructionsWithSSA(Method* method, const TargetMachine &Target);
+bool ScheduleInstructionsWithSSA(Method *M, const TargetMachine &Target);
//---------------------------------------------------------------------------
diff --git a/llvm/lib/CodeGen/InstrSched/SchedPriorities.h b/llvm/lib/CodeGen/InstrSched/SchedPriorities.h
index b236e0ab64d..7cbd0d12596 100644
--- a/llvm/lib/CodeGen/InstrSched/SchedPriorities.h
+++ b/llvm/lib/CodeGen/InstrSched/SchedPriorities.h
@@ -25,13 +25,22 @@
#include "llvm/CodeGen/InstrScheduling.h"
#include "llvm/Analysis/LiveVar/MethodLiveVarInfo.h"
#include "llvm/Target/MachineSchedInfo.h"
+#include "Support/CommandLine.h"
#include <list>
-//#include <ostream>
class Method;
class MachineInstr;
class SchedulingManager;
+// Debug option levels for instruction scheduling
+enum SchedDebugLevel_t {
+ Sched_NoDebugInfo,
+ Sched_PrintMachineCode,
+ Sched_PrintSchedTrace,
+ Sched_PrintSchedGraphs,
+};
+
+extern cl::Enum<SchedDebugLevel_t> SchedDebugLevel;
struct NodeDelayPair {
const SchedGraphNode* node;
OpenPOWER on IntegriCloud