(is always current_ir_graph but that doesn't matter)
[r4974]
/*
* language dependant initialization variable
*/
/*
* language dependant initialization variable
*/
-static default_initialize_local_variable_func_t *default_initialize_local_variable = NULL;
+static uninitialized_local_variable_func_t *default_initialize_local_variable = NULL;
/* -------------------------------------------- */
/* privat interfaces, for professional use only */
/* -------------------------------------------- */
/* privat interfaces, for professional use only */
before recuring.
*/
if (default_initialize_local_variable)
before recuring.
*/
if (default_initialize_local_variable)
- block->attr.block.graph_arr[pos] = default_initialize_local_variable(mode, pos - 1);
+ block->attr.block.graph_arr[pos] = default_initialize_local_variable(current_ir_graph, mode, pos - 1);
else
block->attr.block.graph_arr[pos] = new_Const(mode, tarval_bad);
/* We don't need to care about exception ops in the start block.
else
block->attr.block.graph_arr[pos] = new_Const(mode, tarval_bad);
/* We don't need to care about exception ops in the start block.
ir_node *
(new_d_Bad)(void)
{
ir_node *
(new_d_Bad)(void)
{
ir_node *
(new_d_NoMem)(void)
{
ir_node *
(new_d_NoMem)(void)
{
- return __new_d_NoMem();
/* call once for each run of the library */
void
/* call once for each run of the library */
void
-init_cons (default_initialize_local_variable_func_t *func)
+init_cons(uninitialized_local_variable_func_t *func)
{
default_initialize_local_variable = func;
}
{
default_initialize_local_variable = func;
}
/**
* This function is called, whenever a local variable is used before definition
*
/**
* This function is called, whenever a local variable is used before definition
*
- * @parameter mode the mode of the local var
- * @pos position chosen be the frontend for this var
+ * @param irg the IR graph on which this happens
+ * @param mode the mode of the local var
+ * @param pos position chosen be the frontend for this variable (n_loc)
*
* @return a firm node of mode @p mode that initializes the var at position pos
*
* @note
* Do not return NULL
*
* @return a firm node of mode @p mode that initializes the var at position pos
*
* @note
* Do not return NULL
- * If this function is not set, FIRM will create a const node with tarval BAD
+ * If this function is not set, FIRM will create a const node with tarval BAD.
+ * Use set_irg_loc_description()/get_irg_loc_description() to assign additional
+ * informations to local variables.
-typedef ir_node *default_initialize_local_variable_func_t(ir_mode *mode, int pos);
-
+typedef ir_node *uninitialized_local_variable_func_t(ir_graph *irg, ir_mode *mode, int pos);
/**
* Initializes the graph construction.
*
/**
* Initializes the graph construction.
*
- * @param func @see default_initialize_local_variable_func_t
+ * @param func @see uninitialized_local_variable_func_t
-void init_cons (default_initialize_local_variable_func_t *func);
+void init_cons(uninitialized_local_variable_func_t *func);
/* inline functions */
static INLINE ir_node *
/* inline functions */
static INLINE ir_node *
return current_ir_graph->bad;
}
static INLINE ir_node *
return current_ir_graph->bad;
}
static INLINE ir_node *
return current_ir_graph->no_mem;
}
return current_ir_graph->no_mem;
}
-#define new_d_Bad() __new_d_Bad()
-#define new_d_NoMem() __new_d_NoMem()
+#define new_d_Bad() _new_d_Bad()
+#define new_d_NoMem() _new_d_NoMem()
#endif /* _IRCONS_T_H_ */
#endif /* _IRCONS_T_H_ */