Searched refs:instr_set (Results 1 – 3 of 3) sorted by relevance
/external/mesa3d/src/compiler/nir/ |
D | nir_opt_cse.c | 42 cse_block(nir_block *block, struct set *instr_set) in cse_block() argument 47 if (nir_instr_set_add_or_rewrite(instr_set, instr)) { in cse_block() 55 progress |= cse_block(child, instr_set); in cse_block() 59 nir_instr_set_remove(instr_set, instr); in cse_block() 67 struct set *instr_set = nir_instr_set_create(NULL); in nir_opt_cse_impl() local 71 bool progress = cse_block(nir_start_block(impl), instr_set); in nir_opt_cse_impl() 77 nir_instr_set_destroy(instr_set); in nir_opt_cse_impl()
|
D | nir_instr_set.h | 46 void nir_instr_set_destroy(struct set *instr_set); 54 bool nir_instr_set_add_or_rewrite(struct set *instr_set, nir_instr *instr); 60 void nir_instr_set_remove(struct set *instr_set, nir_instr *instr);
|
D | nir_instr_set.c | 500 nir_instr_set_destroy(struct set *instr_set) in nir_instr_set_destroy() argument 502 _mesa_set_destroy(instr_set, NULL); in nir_instr_set_destroy() 506 nir_instr_set_add_or_rewrite(struct set *instr_set, nir_instr *instr) in nir_instr_set_add_or_rewrite() argument 511 struct set_entry *entry = _mesa_set_search(instr_set, instr); in nir_instr_set_add_or_rewrite() 529 _mesa_set_add(instr_set, instr); in nir_instr_set_add_or_rewrite() 534 nir_instr_set_remove(struct set *instr_set, nir_instr *instr) in nir_instr_set_remove() argument 539 struct set_entry *entry = _mesa_set_search(instr_set, instr); in nir_instr_set_remove() 541 _mesa_set_remove(instr_set, entry); in nir_instr_set_remove()
|