-
Notifications
You must be signed in to change notification settings - Fork 1
/
df_base_type.h
45 lines (24 loc) · 836 Bytes
/
df_base_type.h
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
45
#ifndef _H_DF_BASE_TYPE
#define _H_DF_BASE_TYPE
#include <list>
#include "cfg_type.h"
enum DF_STATUS_TYPE {
DF_NOT_INITIALIZED,
DF_NOT_IN_TODO,
DF_IN_TODO
};
class df_base_type : public cfg_type {
public:
df_base_type(std::list<Instruction*>* code);
std::list<Instruction*>& get_all_nodes();
virtual bool compute_gen_set(Instruction* node) = 0;
virtual bool compute_kill_set(Instruction* node) = 0;
virtual void init_in_set(Instruction* node) = 0;
virtual void init_out_set(Instruction* node) = 0;
virtual bool apply_meet_operator(Instruction* node) = 0;
virtual bool apply_transfer_function(Instruction* node) = 0;
virtual void status(Instruction* node, DF_STATUS_TYPE status) = 0;
virtual DF_STATUS_TYPE status(Instruction* node) = 0;
virtual void apply_df_info() = 0;
};
#endif