constants: define a bunch of constant svals
[smatch.git] / flow.h
blob46d76a780484fbad144453ac5f822a385b9a4a34
1 #ifndef FLOW_H
2 #define FLOW_H
4 #include "lib.h"
6 extern unsigned long bb_generation;
8 #define REPEAT_CSE (1 << 0)
9 #define REPEAT_CFG_CLEANUP (1 << 2)
11 struct entrypoint;
12 struct instruction;
14 extern int simplify_flow(struct entrypoint *ep);
16 extern void kill_dead_stores(struct entrypoint *ep, pseudo_t addr, int local);
17 extern void simplify_symbol_usage(struct entrypoint *ep);
18 extern void simplify_memops(struct entrypoint *ep);
19 extern void pack_basic_blocks(struct entrypoint *ep);
20 extern int simplify_cfg_early(struct entrypoint *ep);
22 extern void convert_instruction_target(struct instruction *insn, pseudo_t src);
23 extern void remove_dead_insns(struct entrypoint *);
25 extern void kill_bb(struct basic_block *);
26 extern void kill_use(pseudo_t *);
27 extern void remove_use(pseudo_t *);
28 extern void kill_unreachable_bbs(struct entrypoint *ep);
30 extern int kill_insn(struct instruction *, int force);
31 static inline int kill_instruction(struct instruction *insn)
33 return kill_insn(insn, 0);
35 static inline int kill_instruction_force(struct instruction *insn)
37 return kill_insn(insn, 1);
40 void check_access(struct instruction *insn);
41 int dominates(pseudo_t pseudo, struct instruction *insn, struct instruction *dom, int local);
43 extern void vrfy_flow(struct entrypoint *ep);
44 extern int pseudo_in_list(struct pseudo_list *list, pseudo_t pseudo);
46 #endif