mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 18:24:38 +00:00
Fixed compilation errors, command-line argument declarations, cleaned up code to
look nicer and removed useless stuff. Also renamed a few variables, moved them into namespaces, converted outputting to a file into a print to std::cerr with a DEBUG() guard, as all passes should do anyway. No functional changes have been made. However, this code now compiles. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5769 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -60,19 +60,32 @@ public:
|
||||
|
||||
~ModuloScheduling() {};
|
||||
|
||||
///the method to compute schedule and instert epilogue and prologue
|
||||
// for debug information selecton
|
||||
enum DebugLevel_t {
|
||||
DebugLevel_NoDebugInfo,
|
||||
DebugLevel_PrintSchedule,
|
||||
DebugLevel_PrintScheduleProcess,
|
||||
};
|
||||
|
||||
static DebugLevel_t DebugLevel;
|
||||
|
||||
static bool printSchedule() { return DebugLevel >= DebugLevel_PrintSchedule; }
|
||||
static bool printScheduleProcess() {
|
||||
return DebugLevel >= DebugLevel_PrintScheduleProcess;
|
||||
}
|
||||
|
||||
// The method to compute schedule and instert epilogue and prologue
|
||||
void instrScheduling();
|
||||
|
||||
///debug functions:
|
||||
///dump the schedule and core schedule
|
||||
void
|
||||
dumpScheduling();
|
||||
// Debug functions:
|
||||
// Dump the schedule and core schedule
|
||||
void dumpScheduling();
|
||||
|
||||
///dump the input vector of nodes
|
||||
//sch: the input vector of nodes
|
||||
void dumpSchedule(std::vector<std::vector<ModuloSchedGraphNode*>> sch);
|
||||
// Dump the input vector of nodes
|
||||
// sch: the input vector of nodes
|
||||
void dumpSchedule(std::vector<std::vector<ModuloSchedGraphNode*> > sch);
|
||||
|
||||
///dump the resource usage table
|
||||
// Dump the resource usage table
|
||||
void dumpResourceUsageTable();
|
||||
|
||||
//*******************internal functions*******************************
|
||||
@ -94,13 +107,13 @@ private:
|
||||
// update the resource table at the startCycle
|
||||
// vec: the resouce usage
|
||||
// startCycle: the start cycle the resouce usage is
|
||||
void updateResourceTable(std::vector<std::vector<unsigned int>> vec,
|
||||
void updateResourceTable(std::vector<std::vector<unsigned> > vec,
|
||||
int startCycle);
|
||||
|
||||
// un-do the update in the resource table in the startCycle
|
||||
// vec: the resouce usage
|
||||
// startCycle: the start cycle the resouce usage is
|
||||
void undoUpdateResourceTable(std::vector<vector<unsigned int>> vec,
|
||||
void undoUpdateResourceTable(std::vector<std::vector<unsigned> > vec,
|
||||
int startCycle);
|
||||
|
||||
// return whether the resourcetable has negative element
|
||||
|
Reference in New Issue
Block a user