-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDFG.h
More file actions
44 lines (36 loc) · 974 Bytes
/
DFG.h
File metadata and controls
44 lines (36 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef DFG_H
#define DFG_H
#include <vector>
using namespace std;
class DFGnode{
public:
DFGnode();
int nodeorder;//DFG算子的序列号,从0开始,为唯一ID
int nodelabel;//DFG算子的编号,就是它的名字
int oldlevel;//DFG原始时间步
int nodelevel;//DFG折叠后的时间步
int kind;//DFG算子的种类
};
class DFGedge{
public:
DFGedge();//DFGedge���캯��
int edgeorder;//
int prenode;//
int posnode;//
};
class DFG{
public:
int numDFGnodes;
int numDFGedges;
vector<DFGnode*> DFGnodesList;//
vector<DFGedge*> DFGedgesList;//DFG边集合
DFG();
DFG* CreatDFG();//通过文件创建一个DFG
~DFG();
bool DFGgraphHasEdge(size_t begin, size_t end);
bool DFGHasNode(size_t node);
int getNodeTime( int nodeLabel);
void CreatMDFG(int II);
int Constraint_Level(int PENum,int II);
};
#endif // DFG_H