/illumos-gate/usr/src/tools/smatch/src/ |
H A D | flow.c | 28 static int rewrite_branch(struct basic_block *bb, in rewrite_branch() 29 struct basic_block **ptr, in rewrite_branch() 30 struct basic_block *old, in rewrite_branch() 31 struct basic_block *new) in rewrite_branch() 72 static int bb_depends_on(struct basic_block *target, struct basic_block *src) in bb_depends_on() 91 static int bb_depends_on_phi(struct basic_block *target, struct basic_block *src) in bb_depends_on_phi() 116 static int try_to_simplify_bb(struct basic_block *bb, struct instruction *first, struct instruction… in try_to_simplify_bb() 131 struct basic_block *source, *target; in try_to_simplify_bb() 163 static int bb_has_side_effects(struct basic_block *bb) in bb_has_side_effects() 196 static int simplify_phi_branch(struct basic_block *bb, struct instruction *br) in simplify_phi_branch() [all …]
|
H A D | flowgraph.c | 23 static void label_postorder(struct basic_block *bb, struct cfg_info *info) in label_postorder() 25 struct basic_block *child; in label_postorder() 41 struct basic_block *bb; in reverse_bbs() 49 struct basic_block *bb; in debug_postorder() 88 static struct basic_block *intersect_dom(struct basic_block *doms[], in intersect_dom() 89 struct basic_block *b1, struct basic_block *b2) in intersect_dom() 107 struct basic_block *bb = ep->entry->bb; in debug_domtree() 119 struct basic_block *entry = ep->entry->bb; in domtree_build() 120 struct basic_block **doms; in domtree_build() 121 struct basic_block *bb; in domtree_build() [all …]
|
H A D | linearize.h | 63 struct basic_block *target; 88 struct basic_block *bb; 98 struct basic_block *bb_true, *bb_false; 155 struct basic_block { struct 167 struct basic_block *idom; /* link to the immediate dominator */ argument 186 static inline void add_bb(struct basic_block_list **list, struct basic_block *bb) in add_bb() argument 216 static inline int bb_terminated(struct basic_block *bb) in bb_terminated() 226 static inline int bb_reachable(struct basic_block *bb) in bb_reachable() 231 static inline int lookup_bb(struct basic_block_list *list, struct basic_block *bb) in lookup_bb() 287 static inline void remove_bb_from_list(struct basic_block_list **list, struct basic_block *entry, i… in remove_bb_from_list() [all …]
|
H A D | liveness.c | 17 void (*defines)(struct basic_block *, pseudo_t)) in phi_defines() argument 31 static void asm_liveness(struct basic_block *bb, struct instruction *insn, in asm_liveness() 32 void (*def)(struct basic_block *, pseudo_t), in asm_liveness() argument 33 void (*use)(struct basic_block *, pseudo_t)) in asm_liveness() argument 46 static void track_instruction_usage(struct basic_block *bb, struct instruction *insn, in track_instruction_usage() 47 void (*def)(struct basic_block *, pseudo_t), in track_instruction_usage() argument 48 void (*use)(struct basic_block *, pseudo_t)) in track_instruction_usage() argument 155 static void insn_uses(struct basic_block *bb, pseudo_t pseudo) in insn_uses() 164 static void insn_defines(struct basic_block *bb, pseudo_t pseudo) in insn_defines() 170 static void track_bb_liveness(struct basic_block *bb) in track_bb_liveness() [all …]
|
H A D | dominate.c | 41 static void bank_put(struct piggy *bank, struct basic_block *bb) in bank_put() 48 static inline struct basic_block *pop_bb(struct basic_block_list **list) in pop_bb() 53 static struct basic_block *bank_get(struct piggy *bank) in bank_get() 57 struct basic_block *bb = pop_bb(&bank->lists[level]); in bank_get() 72 static void visit(struct piggy *bank, struct basic_block_list **idf, struct basic_block *x, int cur… in visit() 74 struct basic_block *y; in visit() 103 struct basic_block *bb; in idf_compute() 131 struct basic_block *bb; in idf_dump() 139 struct basic_block *df; in idf_dump()
|
H A D | ssa.c | 76 struct basic_block *bb = a->bb; in insn_before() 96 static void rewrite_local_var(struct basic_block *bb, pseudo_t addr, int nbr_stores, int nbr_uses) in rewrite_local_var() 173 struct basic_block *samebb = NULL; in ssa_convert_one_var() 175 struct basic_block *bb; in ssa_convert_one_var() 204 struct basic_block *bb = insn->bb; in ssa_convert_one_var() 257 static pseudo_t lookup_var(struct basic_block *bb, struct symbol *var) in lookup_var() 270 static void ssa_rename_insn(struct basic_block *bb, struct instruction *insn) in ssa_rename_insn() 309 struct basic_block *bb; in ssa_rename_insns() 338 struct basic_block *par; in ssa_rename_phi() 378 struct basic_block *bb; in ssa_convert()
|
H A D | linearize.c | 71 static struct basic_block *alloc_basic_block(struct entrypoint *ep, struct position pos) in alloc_basic_block() 74 struct basic_block *bb = __alloc_basic_block(0); in alloc_basic_block() 81 static struct multijmp *alloc_multijmp(struct basic_block *target, long long begin, long long end) in alloc_multijmp() 90 const char *show_label(struct basic_block *bb) in show_label() 504 void show_bb(struct basic_block *bb) in show_bb() 536 struct basic_block *from; in show_bb() 544 struct basic_block *to; in show_bb() 575 struct basic_block *bb; in show_entry() 608 static void bind_label(struct symbol *label, struct basic_block *bb, struct position pos) in bind_label() 615 static struct basic_block * get_bound_block(struct entrypoint *ep, struct symbol *label) in get_bound_block() [all …]
|
H A D | storage.h | 45 struct basic_block *bb; 54 extern struct storage_hash_list *gather_storage(struct basic_block *, enum inout_enum); 58 struct storage *lookup_storage(struct basic_block *, pseudo_t, enum inout_enum); 59 void add_storage(struct storage *, struct basic_block *, pseudo_t, enum inout_enum);
|
H A D | storage.c | 24 static inline unsigned int storage_hash(struct basic_block *bb, pseudo_t pseudo, enum inout_enum in… in storage_hash() 45 struct storage_hash_list *gather_storage(struct basic_block *bb, enum inout_enum inout) in gather_storage() 88 struct storage *lookup_storage(struct basic_block *bb, pseudo_t pseudo, enum inout_enum inout) in lookup_storage() 100 void add_storage(struct storage *storage, struct basic_block *bb, pseudo_t pseudo, enum inout_enum … in add_storage() 215 static void set_up_bb_storage(struct basic_block *bb) in set_up_bb_storage() 217 struct basic_block *child; in set_up_bb_storage() 248 static void set_up_argument_storage(struct entrypoint *ep, struct basic_block *bb) in set_up_argument_storage() 269 static void combine_phi_storage(struct basic_block *bb) in combine_phi_storage() 295 struct basic_block *bb; in set_up_storage()
|
H A D | sparse.c | 43 static int context_increase(struct basic_block *bb, int entry) in context_increase() 70 static int imbalance(struct entrypoint *ep, struct basic_block *bb, int entry, int exit, const char… in imbalance() 79 static int check_bb_context(struct entrypoint *ep, struct basic_block *bb, int entry, int exit); 81 static int check_children(struct entrypoint *ep, struct basic_block *bb, int entry, int exit) in check_children() 84 struct basic_block *child; in check_children() 99 static int check_bb_context(struct entrypoint *ep, struct basic_block *bb, int entry, int exit) in check_bb_context() 235 static void check_bb_instructions(struct basic_block *bb) in check_bb_instructions() 247 struct basic_block *bb; in check_instructions()
|
H A D | flowgraph.h | 7 struct basic_block; 11 bool domtree_dominates(struct basic_block *a, struct basic_block *b);
|
H A D | memops.c | 20 struct basic_block *bb, unsigned long generation, struct pseudo_list **dominators, in find_dominating_parents() 23 struct basic_block *parent; in find_dominating_parents() 85 static void simplify_loads(struct basic_block *bb) in simplify_loads() 149 static void kill_dominated_stores(struct basic_block *bb) in kill_dominated_stores() 192 struct basic_block *bb; in simplify_memops()
|
H A D | cse.c | 273 static struct basic_block *trivial_common_parent(struct basic_block *bb1, struct basic_block *bb2) in trivial_common_parent() 275 struct basic_block *parent; in trivial_common_parent() 292 static void add_instruction_to_end(struct instruction *insn, struct basic_block *bb) in add_instruction_to_end() 302 struct basic_block *b1, *b2, *common; in try_to_cse()
|
H A D | graph.c | 46 struct basic_block *bb; in graph_ep() 66 struct basic_block *child; in graph_ep() 122 struct basic_block *bb; in graph_calls()
|
H A D | test-unssa.c | 10 static void output_bb(struct basic_block *bb, unsigned long generation) in output_bb() 29 struct basic_block *bb; in output_fn()
|
H A D | ir.c | 28 struct basic_block *par; in check_phi_node() 88 static int check_branch(struct entrypoint *ep, struct instruction *insn, struct basic_block *bb) in check_branch() 188 struct basic_block *bb; in ir_validate()
|
H A D | unssa.c | 117 static void rewrite_phi_bb(struct basic_block *bb) in rewrite_phi_bb() 135 struct basic_block *bb; in unssa()
|
H A D | lib.h | 72 struct basic_block; 81 DECLARE_PTR_LIST(basic_block_list, struct basic_block); 271 static inline struct basic_block *first_basic_block(struct basic_block_list *head) in first_basic_block()
|
H A D | simplify.c | 56 static struct basic_block *phi_parent(struct basic_block *source, pseudo_t pseudo) in phi_parent() 100 struct basic_block *parents[3]; in if_convert_phi() 101 struct basic_block *bb, *bb1, *bb2, *source; in if_convert_phi() 412 struct basic_block *bb; in remove_dead_insns() 1626 struct basic_block *tmp = br->bb_true; in simplify_cond_branch() 1645 struct basic_block *bb = insn->bb; in simplify_branch() 1646 struct basic_block *target = insn->bb_false; in simplify_branch() 1679 struct basic_block *tmp = insn->bb_true; in simplify_branch()
|
H A D | example.c | 112 static void output_bb(struct basic_block *bb, unsigned long generation); 1072 struct basic_block *target; in generate_branch() 1681 static void generate(struct basic_block *bb, struct bb_state *state) in generate() 1731 struct basic_block *bb; in generate_list() 1746 static void mark_used_registers(struct basic_block *bb, struct bb_state *state) in mark_used_registers() 1748 struct basic_block *parent; in mark_used_registers() 1764 static void output_bb(struct basic_block *bb, unsigned long generation) in output_bb() 1851 static void set_up_arch_exit(struct basic_block *bb, struct instruction *ret) in set_up_arch_exit() 1872 static void set_up_arch_switch(struct basic_block *bb, struct instruction *insn) in set_up_arch_switch() 1886 struct basic_block *bb; in arch_set_up_storage()
|
H A D | flow.h | 26 extern void kill_bb(struct basic_block *);
|
H A D | optimize.c | 32 struct basic_block *bb; in clean_up_insns()
|
H A D | allocate.h | 89 DECLARE_ALLOCATOR(basic_block);
|
H A D | allocate.c | 149 ALLOCATOR(basic_block, "basic_block");
|
H A D | sparse-llvm.c | 772 struct basic_block *def = NULL; in output_op_switch() 1118 static void output_bb(struct function *fn, struct basic_block *bb) in output_bb() 1138 struct basic_block *bb; in output_fn()
|