00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef _SCHEDULE_H_
00028 #define _SCHEDULE_H_
00029
00030 #include <fstream.h>
00031 #include "TinkerKnobs.H"
00032 #include "lego.H"
00033 #include "legoUtil.H"
00034 #include "machine.h"
00035
00036
00037 typedef struct schedulestats {
00038 int original_op_count,
00039 final_op_count;
00040 int instrs_scheduled,
00041 schedule_length;
00042 double instr_count,
00043 cycle_count;
00044 } schedule_stats;
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 extern clock_t start_live, finish_live, start_rdef, finish_rdef;
00055 extern double clocks_per_sec;
00056 extern double total_live, total_rdef;
00057
00058
00059
00060
00061 void ShowAllParameters( knobs *Knobs );
00062
00063
00064
00065 void ScheduleRegion( legoRegion *Region, schedule_stats *stats, int showstats,
00066 ofstream *StrPtr, knobs *Knobs, int Final_Pass, int Predicated );
00067
00068
00069 void ScheduleProc( legoProc *ProcPtr, schedule_stats *stats, int showstats,
00070 ofstream *StrPtr, knobs *Knobs, int Final_Pass, int Predicated );
00071
00072
00073
00074
00075
00076
00077 #endif