aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/flow.h
blob: 76d11ef43dae209c2b30ae830cf1885ce8feaf27 (plain)
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
#ifndef FLOW_H
#define FLOW_H

extern unsigned long bb_generation;

#define REPEAT_CSE		1
#define REPEAT_SYMBOL_CLEANUP	2

extern void simplify_symbol_usage(struct entrypoint *ep);
extern void simplify_flow(struct entrypoint *ep);
extern void simplify_memops(struct entrypoint *ep);
extern void pack_basic_blocks(struct entrypoint *ep);

extern void convert_instruction_target(struct instruction *insn, pseudo_t src);
extern void cleanup_and_cse(struct entrypoint *ep);
extern int simplify_instruction(struct instruction *);

extern void kill_bb(struct basic_block *);
extern void kill_use(pseudo_t *);
extern void kill_instruction(struct instruction *);

void convert_load_instruction(struct instruction *, pseudo_t);
void rewrite_load_instruction(struct instruction *, struct pseudo_list *);
int dominates(pseudo_t pseudo, struct instruction *insn, struct instruction *dom, int local);

extern void track_pseudo_liveness(struct entrypoint *ep);
extern void vrfy_flow(struct entrypoint *ep);

extern struct basic_block *trivial_common_parent(struct basic_block *, pseudo_t,
	struct basic_block *, pseudo_t);

#endif