Lines Matching refs:mem_ctx
58 this->mem_ctx = NULL; in variable_entry2()
75 void *mem_ctx; member in __anona81dfca60111::variable_entry2
83 this->mem_ctx = ralloc_context(NULL); in ir_structure_reference_visitor()
89 ralloc_free(mem_ctx); in ~ir_structure_reference_visitor()
103 void *mem_ctx; member in __anona81dfca60111::ir_structure_reference_visitor
120 variable_entry2 *entry = new(mem_ctx) variable_entry2(var); in get_variable_entry2()
249 *deref = new(entry->mem_ctx) ir_dereference_variable(entry->components[i]); in split_deref()
279 void *mem_ctx = lhs_entry ? lhs_entry->mem_ctx : rhs_entry->mem_ctx; in visit_leave() local
282 new_lhs = new(mem_ctx) ir_dereference_variable(lhs_entry->components[i]); in visit_leave()
284 new_lhs = new(mem_ctx) in visit_leave()
285 ir_dereference_record(ir->lhs->clone(mem_ctx, NULL), in visit_leave()
290 new_rhs = new(mem_ctx) ir_dereference_variable(rhs_entry->components[i]); in visit_leave()
292 new_rhs = new(mem_ctx) in visit_leave()
293 ir_dereference_record(ir->rhs->clone(mem_ctx, NULL), in visit_leave()
297 ir->insert_before(new(mem_ctx) ir_assignment(new_lhs, in visit_leave()
339 void *mem_ctx = ralloc_context(NULL); in do_structure_splitting() local
348 entry->mem_ctx = ralloc_parent(entry->var); in do_structure_splitting()
350 entry->components = ralloc_array(mem_ctx, in do_structure_splitting()
355 const char *name = ralloc_asprintf(mem_ctx, "%s_%s", in do_structure_splitting()
360 new(entry->mem_ctx) ir_variable(type->fields.structure[i].type, in do_structure_splitting()
372 ralloc_free(mem_ctx); in do_structure_splitting()