Lines Matching refs:ctype

116 	struct symbol *ctype;  member
195 struct symbol *ctype, const char *comment);
331 return get_regclass_bits(expr->ctype->bit_size); in get_regclass()
379 emit_move(value, reg, value->ctype, "reload register"); in get_reg_value()
807 struct symbol *base_type = sym->ctype.base_type; in emit_func_pre()
859 if ((sym->ctype.modifiers & MOD_STATIC) == 0) in emit_func_post()
969 struct symbol *base_type = sym->ctype.base_type; in emit_initializer()
1052 struct symbol *base_type = sym->ctype.base_type; in emit_array()
1062 emit_object_pre(show_ident(sym->ident), sym->ctype.modifiers, in emit_array()
1063 sym->ctype.alignment, in emit_array()
1088 struct symbol *ctype) in emit_copy() argument
1102 emit_move(src, reg, ctype, "begin copy .."); in emit_copy()
1110 emit_move(reg, dest, ctype, ".... end copy"); in emit_copy()
1124 sym->ctype.modifiers, sym->ctype.alignment, in emit_scalar_noinit()
1132 sym->ctype.modifiers, sym->ctype.alignment, in emit_array_noinit()
1156 struct symbol *ctype, const char *comment) in emit_move() argument
1163 if (ctype) { in emit_move()
1164 bits = ctype->bit_size; in emit_move()
1165 is_signed = is_signed_type(ctype); in emit_move()
1237 unsigned int right_bits = expr->right->ctype->bit_size; in emit_compare()
1321 new = stack_alloc(expr->ctype->bit_size / 8); in emit_divide()
1357 is_signed = is_signed_type(expr->ctype); in emit_binop()
1405 switch (expr->ctype->bit_size) { in emit_binop()
1430 new = stack_alloc(expr->ctype->bit_size / 8); in emit_binop()
1514 expr->ctype->bit_size)); in emit_inc_dec()
1519 emit_copy(new, addr, expr->unop->ctype); in emit_inc_dec()
1541 if (expr && expr->ctype) { in emit_return_stmt()
1544 emit_move(val, REG_EAX, expr->ctype, "return"); in emit_return_stmt()
1558 struct storage *new = stack_alloc(expr->ctype->bit_size / 8); in emit_conditional_expr()
1568 emit_copy(new, stot, expr->ctype); in emit_conditional_expr()
1575 emit_copy(new, stof, expr->ctype); in emit_conditional_expr()
1604 emit_move(reg_true, new, expr->ctype, NULL); in emit_select_expr()
1656 old_type = expr->cast_expression->ctype; in emit_cast_expr()
1683 emit_move(target, REG_EAX, expr->unop->ctype, NULL); in emit_regular_preop()
1686 emit_move(REG_EDX, new, expr->unop->ctype, NULL); in emit_regular_preop()
1694 emit_move(target, REG_EAX, expr->unop->ctype, NULL); in emit_regular_preop()
1696 emit_move(REG_EAX, new, expr->unop->ctype, NULL); in emit_regular_preop()
1719 emit_move(val, REG_EAX, stmt->switch_expression->ctype, "begin case"); in emit_switch_statement()
1796 …printf("\t%s:%d:%ld at offset %ld.%d", show_ident(sym->ident), sym->bit_size, sym->ctype.alignment… in x86_struct_member()
1807 type = sym->ctype.base_type; in x86_symbol()
1826 sym->ctype.modifiers, in x86_symbol()
1827 sym->ctype.alignment, in x86_symbol()
2074 if (!expr->ctype) { in x86_call_expression()
2082 int size = arg->ctype->bit_size; in x86_call_expression()
2106 if (sym->ctype.base_type->type == SYM_FN) in x86_call_expression()
2117 emit_move(fncall, REG_EAX, fn->ctype, NULL); in x86_call_expression()
2165 if (!expr->ctype) in x86_assignment()
2175 emit_copy(addr, val, expr->ctype); in x86_assignment()
2183 emit_move(val, addr, expr->left->ctype, NULL); in x86_assignment()
2198 if (!expr->ctype) in x86_initialization()
2201 bits = expr->ctype->bit_size; in x86_initialization()
2233 if (sym->ctype.modifiers & (MOD_TOPLEVEL | MOD_EXTERN | MOD_STATIC)) { in x86_symbol_expr()
2237 if (sym->ctype.modifiers & MOD_ADDRESSABLE) { in x86_symbol_expr()
2281 struct symbol *ctype = expr->init_expr->ctype; in x86_position_expr() local
2284 expr->init_offset, ctype->bit_offset, in x86_position_expr()
2289 static void x86_initializer_expr(struct expression *expr, struct symbol *ctype) in x86_initializer_expr() argument
2297 x86_initializer_expr(entry, ctype); in x86_initializer_expr()
2306 x86_position_expr(entry, ctype); in x86_initializer_expr()
2309 x86_initialization(ctype, entry); in x86_initializer_expr()
2322 if (!expr->ctype) { in x86_expression()
2365 x86_initializer_expr(expr, expr->ctype); in x86_expression()