/illumos-gate/usr/src/tools/smatch/src/ |
H A D | flow.h | 13 struct instruction; 22 extern void convert_instruction_target(struct instruction *insn, pseudo_t src); 24 extern int simplify_instruction(struct instruction *); 31 extern int kill_insn(struct instruction *, int force); 32 static inline int kill_instruction(struct instruction *insn) in kill_instruction() 36 static inline int kill_instruction_force(struct instruction *insn) in kill_instruction_force() 41 void check_access(struct instruction *insn); 42 void convert_load_instruction(struct instruction *, pseudo_t); 43 void rewrite_load_instruction(struct instruction *, struct pseudo_list *); 44 int dominates(pseudo_t pseudo, struct instruction *insn, struct instruction *dom, int local);
|
H A D | linearize.h | 12 struct instruction; 15 struct instruction *insn; 41 struct instruction *def; 84 struct instruction { struct 218 struct instruction *insn; in bb_terminated() 304 struct instruction *entry; 308 extern void insert_select(struct basic_block *bb, struct instruction *br, struct instruction *phi, … 311 struct instruction *alloc_phisrc(pseudo_t pseudo, struct symbol *type); 314 void add_phi_node(struct basic_block *bb, struct instruction *phi_node); 317 pseudo_t alloc_pseudo(struct instruction *def); [all …]
|
H A D | flow.c | 93 struct instruction *insn; in bb_depends_on_phi() 130 struct instruction *def = phi->def; in try_to_simplify_bb() 133 struct instruction *br; in try_to_simplify_bb() 165 struct instruction *insn; in bb_has_side_effects() 199 struct instruction *def; in simplify_phi_branch() 215 struct instruction *insn; in simplify_branch_branch() 312 static int overlapping_memop(struct instruction *a, struct instruction *b) in overlapping_memop() 326 static inline int same_memop(struct instruction *a, struct instruction *b) in same_memop() 346 int dominates(pseudo_t pseudo, struct instruction *insn, struct instruction *dom, int local) in dominates() 431 struct instruction *insn; in kill_dead_stores_bb() [all …]
|
H A D | simplify.c | 85 struct instruction *def; in get_phisources() 102 struct instruction *br; in if_convert_phi() 196 struct instruction *def; in trivial_phi() 415 struct instruction *insn; in remove_dead_insns() 739 struct instruction *inner; in simplify_mask_shift() 783 struct instruction *def; in simplify_shift() 957 struct instruction *def; in simplify_seteq_setne() 1043 struct instruction *def; in simplify_constant_mask() 1259 struct instruction *def; in simplify_associative_binop() 1318 struct instruction *def; in simplify_unop() [all …]
|
H A D | cse.c | 27 const struct instruction *def1 = phi1->def; in phi_compare() 28 const struct instruction *def2 = phi2->def; in phi_compare() 38 void cse_collect(struct instruction *insn) in cse_collect() 107 struct instruction *def; in cse_collect() 161 const struct instruction *i1 = _i1; in insn_compare() 162 const struct instruction *i2 = _i2; in insn_compare() 264 static struct instruction * cse_one_instruction(struct instruction *insn, struct instruction *def) in cse_one_instruction() 294 struct instruction *br = delete_last_instruction(&bb->insns); in add_instruction_to_end() 300 static struct instruction * try_to_cse(struct entrypoint *ep, struct instruction *i1, struct instru… in try_to_cse() 316 struct instruction *insn; in try_to_cse() [all …]
|
H A D | ssa.c | 74 static bool insn_before(struct instruction *a, struct instruction *b) in insn_before() 77 struct instruction *insn; in insn_before() 89 static void kill_store(struct instruction *insn) in kill_store() 98 struct instruction *insn; in rewrite_local_var() 130 struct instruction *insn = pu->insn; in rewrite_single_store() 174 struct instruction *store = NULL; in ssa_convert_one_var() 203 struct instruction *insn = pu->insn; in ssa_convert_one_var() 312 struct instruction *insn; in ssa_rename_insns() 323 struct instruction *node; in mark_phi_used() 336 static void ssa_rename_phi(struct instruction *insn) in ssa_rename_phi() [all …]
|
H A D | ir.c | 9 static int nbr_phi_operands(struct instruction *insn) in nbr_phi_operands() 26 static int check_phi_node(struct instruction *insn) in check_phi_node() 45 struct instruction *src; in check_phi_node() 62 static int check_user(struct instruction *insn, pseudo_t pseudo) in check_user() 64 struct instruction *def; in check_user() 88 static int check_branch(struct entrypoint *ep, struct instruction *insn, struct basic_block *bb) in check_branch() 96 static int check_switch(struct entrypoint *ep, struct instruction *insn) in check_switch() 110 static int check_return(struct instruction *insn) in check_return() 121 static int validate_insn(struct entrypoint *ep, struct instruction *insn) in validate_insn() 195 struct instruction *insn; in ir_validate()
|
H A D | sparse.c | 46 struct instruction *insn; in context_increase() 83 struct instruction *insn; in check_children() 118 static void check_cast_instruction(struct instruction *insn) in check_cast_instruction() 147 static void check_range_instruction(struct instruction *insn) in check_range_instruction() 152 static void check_byte_count(struct instruction *insn, pseudo_t count) in check_byte_count() 166 static pseudo_t argument(struct instruction *call, unsigned int argno) in argument() 177 static void check_memset(struct instruction *insn) in check_memset() 188 void (*check)(struct instruction *insn); 191 static void check_call_instruction(struct instruction *insn) in check_call_instruction() 216 static void check_one_instruction(struct instruction *insn) in check_one_instruction() [all …]
|
H A D | unssa.c | 37 static int simplify_phi_node(struct instruction *phi, pseudo_t tmp) in simplify_phi_node() 45 struct instruction *def = src->def; in simplify_phi_node() 63 static void replace_phi_node(struct instruction *phi) in replace_phi_node() 78 struct instruction *def = p->def; in replace_phi_node() 94 struct instruction *insn; in replace_phi_node() 119 struct instruction *insn; in rewrite_phi_bb()
|
H A D | memops.c | 19 static int find_dominating_parents(pseudo_t pseudo, struct instruction *insn, in find_dominating_parents() 26 struct instruction *one; in find_dominating_parents() 27 struct instruction *br; in find_dominating_parents() 69 struct instruction *insn = pu->insn; in address_taken() 87 struct instruction *insn; in simplify_loads() 93 struct instruction *dom; in simplify_loads() 151 struct instruction *insn; in kill_dominated_stores() 157 struct instruction *dom; in kill_dominated_stores()
|
H A D | liveness.c | 16 static void phi_defines(struct instruction * phi_node, pseudo_t target, in phi_defines() 21 struct instruction *def; in phi_defines() 31 static void asm_liveness(struct basic_block *bb, struct instruction *insn, in asm_liveness() 46 static void track_instruction_usage(struct basic_block *bb, struct instruction *insn, in track_instruction_usage() 158 struct instruction *def = pseudo->def; in insn_uses() 208 struct instruction *insn; in track_pseudo_liveness() 250 static void track_phi_uses(struct instruction *insn) in track_phi_uses() 254 struct instruction *def; in track_phi_uses() 265 struct instruction *insn; in track_bb_phi_uses() 291 struct instruction *insn; in track_pseudo_death_bb() [all …]
|
H A D | linearize.c | 404 struct instruction *phi; in show_instruction() 506 struct instruction *insn; in show_bb() 754 struct instruction *br; in add_branch() 860 struct instruction *insn; in alloc_phi() 886 struct instruction *insn; in add_phi_node() 971 struct instruction *insn; in add_load() 1360 struct instruction *insn; in cast_pseudo() 1597 struct instruction *insn; in linearize_select() 1693 struct instruction *node) in insert_phis() 1709 struct instruction *node; in linearize_logical() [all …]
|
H A D | sparse-llvm.c | 221 static LLVMTypeRef insn_symbol_type(struct instruction *insn) in insn_symbol_type() 672 static void output_op_ret(struct function *fn, struct instruction *insn) in output_op_ret() 705 static void output_op_load(struct function *fn, struct instruction *insn) in output_op_load() 739 static void output_op_cbr(struct function *fn, struct instruction *br) in output_op_cbr() 749 static void output_op_br(struct function *fn, struct instruction *br) in output_op_br() 754 static void output_op_sel(struct function *fn, struct instruction *insn) in output_op_sel() 830 struct instruction *phi; in output_op_phisrc() 850 static void output_op_phi(struct function *fn, struct instruction *insn) in output_op_phi() 986 static void output_insn(struct function *fn, struct instruction *insn) in output_insn() 1120 struct instruction *insn; in output_bb() [all …]
|
H A D | lib.h | 74 struct instruction; 82 DECLARE_PTR_LIST(instruction_list, struct instruction); 266 static inline struct instruction * delete_last_instruction(struct instruction_list **head) in delete_last_instruction() 275 static inline struct instruction *last_instruction(struct instruction_list *head) in last_instruction() 280 static inline struct instruction *first_instruction(struct instruction_list *head) in first_instruction()
|
H A D | cse.h | 4 struct instruction; 8 void cse_collect(struct instruction *insn);
|
H A D | example.c | 586 struct instruction *def; in fill_reg() 984 static void generate_load(struct instruction *insn, struct bb_state *state) in generate_load() 1017 static void generate_copy(struct bb_state *state, struct instruction *insn) in generate_copy() 1024 static void generate_cast(struct bb_state *state, struct instruction *insn) in generate_cast() 1069 static void generate_branch(struct bb_state *state, struct instruction *br) in generate_branch() 1102 static void generate_ret(struct bb_state *state, struct instruction *ret) in generate_ret() 1116 static void generate_call(struct bb_state *state, struct instruction *insn) in generate_call() 1326 static void generate_asm(struct bb_state *state, struct instruction *insn) in generate_asm() 1525 struct instruction *def; in fill_output() 1685 struct instruction *insn; in generate() [all …]
|
H A D | graph.c | 47 struct instruction *insn; in graph_ep() 123 struct instruction *insn; in graph_calls()
|
/illumos-gate/usr/src/cmd/sgs/rtld/sparcv9/ |
H A D | boot_elf.S | 216 or %o4, %o2, %o4 ! or value into instruction 222 or %o4, %o2, %o4 ! or value into instruction 229 or %o4, %o2, %o4 ! or value into instruction 245 or %o4, %o2, %o4 ! or value into instruction 413 or %o3, %o2, %o3 ! or value into instruction 419 or %o3, %o2, %o3 ! or value into instruction 421 sethi %hi(M_NOP), %o4 ! Get "nop" instruction 514 or %o3, %o2, %o3 ! is or'ed into instruction 531 or %o3, %o2, %o3 ! or value into instruction 536 or %o3, %o2, %o3 ! or value into instruction [all …]
|
/illumos-gate/usr/src/cmd/sgs/rtld/sparc/ |
H A D | boot_elf.S | 168 sethi %hi(M_SAVESP64), %o0 ! Get save instruction 179 sethi %hi(M_CALL), %o4 ! Get sethi instruction 181 st %o4, [%i0] ! Store instruction in plt 183 sethi %hi(M_NOP), %o0 ! Generate nop instruction 184 st %o0, [%i0 + 4] ! Store instruction in plt[2] 186 st %i1, [%i0 + 8] ! Store instruction in plt[3] 422 sethi %hi(M_JMPL), %o3 ! Get jmpl instruction
|
/illumos-gate/usr/src/common/ficl/ |
H A D | dictionary.c | 205 ficlString name, ficlInstruction instruction, ficlInteger value) in ficlDictionaryAppendConstantInstruction() argument 208 (ficlPrimitive)instruction, FICL_WORD_DEFAULT); in ficlDictionaryAppendConstantInstruction() 217 ficlString name, ficlInstruction instruction, ficl2Integer value) in ficlDictionaryAppend2ConstantInstruction() argument 220 (ficlPrimitive)instruction, FICL_WORD_DEFAULT); in ficlDictionaryAppend2ConstantInstruction() 253 ficlString name, ficlInstruction instruction, ficlInteger value) in ficlDictionarySetConstantInstruction() argument 260 name, instruction, value); in ficlDictionarySetConstantInstruction() 262 word->code = (ficlPrimitive)instruction; in ficlDictionarySetConstantInstruction() 281 ficlInstruction instruction, ficl2Integer value) in ficlDictionarySet2ConstantInstruction() argument 299 word->code = (ficlPrimitive)instruction; in ficlDictionarySet2ConstantInstruction() 304 instruction, value); in ficlDictionarySet2ConstantInstruction()
|
H A D | primitives.c | 2380 ficlInstruction instruction; in ficlLocalParenIm() local 2384 instruction = in ficlLocalParenIm() 2395 instruction = ficlInstructionGetLocal1; in ficlLocalParenIm() 2398 instruction = in ficlLocalParenIm() 2478 ficlInstruction instruction; in ficlLocalParen() local 2567 ficlInstruction instruction = 0; in ficlPrimitiveToValue() local 2618 instruction = in ficlPrimitiveToValue() 2648 instruction = ficlInstructionStore; in ficlPrimitiveToValue() 2653 instruction = ficlInstruction2Store; in ficlPrimitiveToValue() 2659 instruction = ficlInstructionFStore; in ficlPrimitiveToValue() [all …]
|
/illumos-gate/usr/src/lib/libc/sparc/gen/ |
H A D | lsub.S | 50 nop ! delay instruction. 52 nop ! delay instruction.
|
H A D | ladd.S | 51 nop ! delay instruction. 53 nop ! delay instruction.
|
H A D | lshiftl.S | 48 nop ! delay instruction. 50 nop ! delay instruction.
|
/illumos-gate/usr/src/tools/smatch/src/Documentation/ |
H A D | data-structures.txt | 42 Each basic block has a series of instructions, "struct instruction". 44 Fairly high-level instruction set, corresponding directly to bits of C. 46 An entrypoint also has a pointer to the first instruction. 51 Each one also has a pointer to the instruction that defines it.
|