Home
last modified time | relevance | path

Searched refs:instruction (Results 1 – 25 of 87) sorted by relevance

1234

/illumos-gate/usr/src/tools/smatch/src/
H A Dflow.h13 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 Dlinearize.h12 struct instruction;
15 struct instruction *insn;
41 struct instruction *def;
84 struct instruction { struct
191 static inline void add_instruction(struct instruction_list **list, struct instruction *insn) in add_instruction()
218 struct instruction *insn; in bb_terminated()
272 static inline struct pseudo_user *alloc_pseudo_user(struct instruction *insn, pseudo_t *pp) in alloc_pseudo_user()
280 static inline void use_pseudo(struct instruction *insn, pseudo_t p, pseudo_t *pp) in use_pseudo()
304 struct instruction *entry;
308 extern void insert_select(struct basic_block *bb, struct instruction *br, struct instruction *phi, …
[all …]
H A Dflow.c57 struct instruction *insn = pseudo->def; in pseudo_truth_value()
93 struct instruction *insn; 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()
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()
196 static int simplify_phi_branch(struct basic_block *bb, struct instruction *br) in simplify_phi_branch()
199 struct instruction *def; in simplify_phi_branch()
211 static int simplify_branch_branch(struct basic_block *bb, struct instruction *br, in simplify_branch_branch()
215 struct instruction *insn; in simplify_branch_branch()
[all …]
H A Dsimplify.c60 struct instruction *def = pseudo->def; in phi_parent()
78 static int get_phisources(struct instruction *sources[], int nbr, struct instruction *insn) in get_phisources()
85 struct instruction *def; in get_phisources()
97 static int if_convert_phi(struct instruction *insn) in if_convert_phi()
99 struct instruction *array[2]; in if_convert_phi()
102 struct instruction *br; in if_convert_phi()
188 static pseudo_t trivial_phi(pseudo_t pseudo, struct instruction *insn, struct pseudo_list **list) in trivial_phi()
196 struct instruction *def; in trivial_phi()
227 static int clean_up_phi(struct instruction *insn) in clean_up_phi()
312 int kill_insn(struct instruction *insn, int force) in kill_insn()
[all …]
H A Dcse.c27 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()
287 static inline void remove_instruction(struct instruction_list **list, struct instruction *insn, int… in remove_instruction()
292 static void add_instruction_to_end(struct instruction *insn, struct basic_block *bb) in add_instruction_to_end()
294 struct instruction *br = delete_last_instruction(&bb->insns); in add_instruction_to_end()
[all …]
H A Dssa.c74 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()
124 static bool rewrite_single_store(struct instruction *store) in rewrite_single_store()
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()
246 struct instruction *node = insert_phi_node(bb, var); in ssa_convert_one_var()
270 static void ssa_rename_insn(struct basic_block *bb, struct instruction *insn) in ssa_rename_insn()
[all …]
H A Dir.c9 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 Dsparse.c46 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 Dunssa.c37 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 Dmemops.c19 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 Dliveness.c16 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 Dlinearize.c45 static struct instruction *alloc_instruction(int opcode, int size) in alloc_instruction()
47 struct instruction * insn = __alloc_instruction(0); in alloc_instruction()
59 static struct instruction *alloc_typed_instruction(int opcode, struct symbol *type) in alloc_typed_instruction()
61 struct instruction *insn = alloc_instruction(opcode, type_size(type)); in alloc_typed_instruction()
297 static char *show_asm(char *buf, struct instruction *insn) in show_asm()
308 const char *show_instruction(struct instruction *insn) in show_instruction()
404 struct instruction *phi; in show_instruction()
506 struct instruction *insn; in show_bb()
514 struct instruction *def = needs->def; in show_bb()
637 struct instruction *br = alloc_instruction(OP_BR, 0); in add_goto()
[all …]
H A Dsparse-llvm.c221 static LLVMTypeRef insn_symbol_type(struct instruction *insn) in insn_symbol_type()
534 static void output_op_binary(struct function *fn, struct instruction *insn) in output_op_binary()
619 static void output_op_compare(struct function *fn, struct instruction *insn) in output_op_compare()
672 static void output_op_ret(struct function *fn, struct instruction *insn) in output_op_ret()
683 static LLVMValueRef calc_memop_addr(struct function *fn, struct instruction *insn) in calc_memop_addr()
705 static void output_op_load(struct function *fn, struct instruction *insn) in output_op_load()
719 static void output_op_store(struct function *fn, struct instruction *insn) in output_op_store()
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()
[all …]
H A Dlib.h74 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 Dexample.c586 struct instruction *def; in fill_reg()
825 static struct operand *get_address_operand(struct bb_state *state, struct instruction *memop) in get_address_operand()
846 static const char *address(struct bb_state *state, struct instruction *memop) in address()
886 static void do_binop(struct bb_state *state, struct instruction *insn, pseudo_t val1, pseudo_t val2) in do_binop()
900 static void generate_binop(struct bb_state *state, struct instruction *insn) in generate_binop()
921 static void generate_commutative_binop(struct bb_state *state, struct instruction *insn) in generate_commutative_binop()
979 static void generate_store(struct instruction *insn, struct bb_state *state) in generate_store()
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()
[all …]
H A Dcse.h4 struct instruction;
8 void cse_collect(struct instruction *insn);
H A Dgraph.c47 struct instruction *insn; in graph_ep()
123 struct instruction *insn; in graph_calls()
/illumos-gate/usr/src/cmd/sgs/rtld/sparcv9/
H A Dboot_elf.S210 sethi %hi(M_SAVE_SP176SP), %o0 ! Get save instruction
216 or %o4, %o2, %o4 ! or value into instruction
217 st %o4, [%i0 + 0x4] ! Store instruction in plt[1]
222 or %o4, %o2, %o4 ! or value into instruction
223 st %o4, [%i0 + 0x8] ! Store instruction in plt[2]
229 or %o4, %o2, %o4 ! or value into instruction
230 st %o4, [%i0 + 0xc] ! Store instruction in plt[3]
235 st %o4, [%i0 + 0x10] ! Store instruction in plt[4]
239 st %o4, [%i0 + 0x14] ! Store instruction in plt[5]
245 or %o4, %o2, %o4 ! or value into instruction
[all …]
/illumos-gate/usr/src/cmd/sgs/rtld/sparc/
H A Dboot_elf.S168 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 Ddictionary.c205 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 Dprimitives.c2380 ficlInstruction instruction; in ficlLocalParenIm() local
2384 instruction = in ficlLocalParenIm()
2391 instruction = (isDouble) ? ficlInstructionGet2Local0 : in ficlLocalParenIm()
2395 instruction = ficlInstructionGetLocal1; in ficlLocalParenIm()
2398 instruction = in ficlLocalParenIm()
2404 ficlDictionaryAppendUnsigned(dictionary, instruction); in ficlLocalParenIm()
2478 ficlInstruction instruction; in ficlLocalParen() local
2494 instruction = ficlInstructionToF2LocalParen; in ficlLocalParen()
2497 instruction = ficlInstructionToFLocalParen; in ficlLocalParen()
2503 instruction = ficlInstructionTo2LocalParen; in ficlLocalParen()
[all …]
/illumos-gate/usr/src/lib/libc/sparc/gen/
H A Dladd.S51 nop ! delay instruction.
53 nop ! delay instruction.
H A Dlsub.S50 nop ! delay instruction.
52 nop ! delay instruction.
H A Dlshiftl.S48 nop ! delay instruction.
50 nop ! delay instruction.
/illumos-gate/usr/src/tools/smatch/src/Documentation/
H A Ddata-structures.txt42 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.

1234