}
}
-ir_mode *get_atomic_mode(atomic_type_kind_t kind)
-{
- assert(kind <= ATOMIC_TYPE_LAST);
- return atomic_modes[kind];
-}
-
static ir_node *get_vla_size(array_type_t *const type)
{
ir_node *size_node = type->size_node;
return type;
}
+static ir_type *get_ir_type(type_t *type);
+
static ir_type *create_method_type(const function_type_t *function_type, bool for_closure)
{
type_t *return_type = skip_typeref(function_type->return_type);
}
}
-ir_type *get_ir_type(type_t *type)
+static ir_type *get_ir_type(type_t *type)
{
type = skip_typeref(type);
static ir_node *create_cast(unary_expression_t const *const expr)
{
- type_t *const type = skip_typeref(expr->base.type);
- if (is_type_void(type))
- return NULL;
-
type_t *const from_type = skip_typeref(expr->value->base.type);
ir_node *value = is_type_complex(from_type)
? expression_to_complex(expr->value).real
: expression_to_value(expr->value);
+ type_t *const type = skip_typeref(expr->base.type);
+ if (is_type_void(type))
+ return NULL;
+
dbg_info *const dbgi = get_dbg_info(&expr->base.pos);
ir_mode *const mode = get_ir_mode_storage(type);
/* check for conversion from / to __based types */