Lines Matching refs:mem_ctx
55 this->mem_ctx = NULL; in variable_entry()
77 void *mem_ctx; member in opt_array_splitting::variable_entry
92 this->mem_ctx = ralloc_context(NULL); in ir_array_reference_visitor()
98 ralloc_free(mem_ctx); in ~ir_array_reference_visitor()
113 void *mem_ctx; member in ir_array_reference_visitor
140 variable_entry *entry = new(mem_ctx) variable_entry(var); in get_variable_entry()
299 *deref = new(entry->mem_ctx) in split_deref()
308 ir_variable *temp = new(entry->mem_ctx) ir_variable(deref_array->type, in split_deref()
312 *deref = new(entry->mem_ctx) ir_dereference_variable(temp); in split_deref()
362 void *mem_ctx = ralloc_context(NULL); in optimize_split_arrays() local
377 entry->mem_ctx = ralloc_parent(entry->var); in optimize_split_arrays()
379 entry->components = ralloc_array(mem_ctx, in optimize_split_arrays()
384 const char *name = ralloc_asprintf(mem_ctx, "%s_%d", in optimize_split_arrays()
388 new(entry->mem_ctx) ir_variable(subtype, name, ir_var_temporary); in optimize_split_arrays()
401 ralloc_free(mem_ctx); in optimize_split_arrays()