Lines Matching refs:function_def
397 if (!types_equal(lhs->function_def.ret_type,
398 rhs->function_def.ret_type))
400 retval = type_list_equal(&lhs->function_def.args, &rhs->function_def.args);
898 type->function_def.args.types = ralloc_array(type,
901 if (!type->function_def.args.types)
904 memcpy(type->function_def.args.types, arg_types,
906 type->function_def.args.num_types = num_arg_types;
907 type->function_def.ret_type = ret_type;
1444 assert(type->function_def.args.num_types < ARRAY_SIZE(temp) - 3);
1445 assert(type->function_def.ret_type->id >= 0);
1449 temp[2] = type->function_def.ret_type->id;
1450 for (int i = 0; i < type->function_def.args.num_types; ++i) {
1451 assert(type->function_def.args.types[i]->id >= 0);
1452 temp[3 + i] = type->function_def.args.types[i]->id;
1456 temp, 3 + type->function_def.args.num_types);
1866 func->value.type = type->function_def.ret_type;
2778 assert(num_args == func->type->function_def.args.num_types);
2780 assert(types_equal(func->type->function_def.args.types[i], args[i]->type));
2783 func->type->function_def.ret_type);
2800 assert(func->type->function_def.ret_type->type != TYPE_VOID);
2815 assert(func->type->function_def.ret_type->type == TYPE_VOID);