{
ir_node *bl = node;
const ir_edge_t *edge;
- foreach_block_succ(bl, edge)
+
+ (void) self;
+ foreach_block_succ(bl, edge) {
obstack_ptr_grow(obst, get_edge_src_irn(edge));
+ }
}
const absgraph_t absgraph_irg_cfg_succ = {
static void irg_cfg_pred_grow_succs(void *self, void *node, struct obstack *obst)
{
int i, n;
- for (i = 0, n = get_irn_arity(node); i < n; ++i)
+
+ (void) self;
+ for (i = 0, n = get_irn_arity(node); i < n; ++i) {
obstack_ptr_grow(obst, get_irn_n(node, i));
+ }
}
const absgraph_t absgraph_irg_cfg_pred = {
* callees for that call.
*/
static void callee_walker(ir_node * call, void * env) {
+ (void) env;
if (is_Call(call)) {
eset * methods = eset_create();
ir_entity * ent;
* Walker: Removes all tuple.
*/
static void remove_Tuples(ir_node *proj, void *env) {
+ (void) env;
ir_node *nn;
if (! is_Proj(proj)) return;
/*--------------------------------------------------------------------------*/
static void destruct_walker(ir_node * node, void * env) {
+ (void) env;
if (is_Call(node)) {
remove_Call_callee_arr(node);
}
tarval *loop_end;
induct_var_info info;
int is_endlessloop = 0 , is_nonentered_loop = 0;
+ (void) env;
/* The IR node must be a induction variable. */
if (get_irn_op(n) != op_Phi)
{
const dfs_edge_t *p = a;
const dfs_edge_t *q = b;
+ (void) sz;
return !(p->src == q->src && p->tgt == q->tgt);
}
{
const dfs_node_t *p = a;
const dfs_node_t *q = b;
+ (void) sz;
+
return p->node != q->node;
}
{
const freq_t *p = a;
const freq_t *q = b;
+ (void) size;
return !(p->irn == q->irn);
}
execfreq->hook.context = execfreq;
execfreq->hook.hook._hook_node_info = exec_freq_node_info;
register_hook(hook_node_info, &execfreq->hook);
+ (void) irg;
return execfreq;
}
/* The entities that can be accessed by this Sel node. */
int get_Sel_n_accessed_entities(ir_node *sel) {
+ (void) sel;
return 1;
}
ir_entity *get_Sel_accessed_entity(ir_node *sel, int pos) {
+ (void) pos;
return get_Sel_entity(sel);
}
}
double get_type_estimated_mem_consumption_bytes(ir_type *tp) {
+ (void) tp;
assert(0);
return 0.0;
}
* Post-walker: Remove Confirm nodes
*/
static void rem_Confirm(ir_node *n, void *env) {
+ (void) env;
if (get_irn_op(n) == op_Confirm) {
ir_node *value = get_Confirm_value(n);
if (value != n)
ir_node *p;
unsigned max = 0;
unsigned children = 0;
+ (void) data;
for(p = bi->first; p; p = get_dom_info(p)->next) {
unsigned max_p = get_dom_info(p)->max_subtree_pre_num;
ir_node *p;
unsigned max = 0;
unsigned children = 0;
+ (void) data;
for(p = bi->first; p; p = get_pdom_info(p)->next) {
unsigned max_p = get_pdom_info(p)->max_subtree_pre_num;
void free_dom(ir_graph *irg) {
/* Update graph state */
- assert(get_irg_phase_state(current_ir_graph) != phase_building);
- current_ir_graph->dom_state = dom_none;
+ assert(get_irg_phase_state(irg) != phase_building);
+ irg->dom_state = dom_none;
/* With the implementation right now there is nothing to free,
but better call it anyways... */
void free_postdom(ir_graph *irg) {
/* Update graph state */
- assert(get_irg_phase_state(current_ir_graph) != phase_building);
- current_ir_graph->pdom_state = dom_none;
+ assert(get_irg_phase_state(irg) != phase_building);
+ irg->pdom_state = dom_none;
/* With the implementation right now there is nothing to free,
but better call it anyways... */
}
/** A special extended block used as sentinel */
-static ir_extblk _sentinel = { k_ir_extblk, 0xFEA1DEAD };
+static ir_extblk _sentinel = { k_ir_extblk, 0xFEA1DEAD, NULL, NULL };
/**
* Post block-walker. Calculates the extended block info.
bi->red_reachable = bitset_obstack_alloc(phase_obst(ph), lv->n_blocks);
bi->be_tgt_reach = bitset_obstack_alloc(phase_obst(ph), lv->n_blocks);
bi->be_tgt_dom = bitset_obstack_alloc(phase_obst(ph), lv->n_blocks);
+ (void) old;
return bi;
}
#ifdef DEBUG_libfirm
/** Clear the outs of a node */
static void reset_outs(ir_node *node, void *unused) {
+ (void) unused;
node->out = NULL;
node->out_valid = 0;
}
* before counting.
*/
static void init_count(ir_node * node, void *env) {
+ (void) env;
node->out = (ir_node **) 1; /* 1 for the array size */
}
* Adds an outedge from the predecessor to the
* current node.
*/
-static void set_out_pointer(ir_node * node, void * env) {
+static void set_out_pointer(ir_node * node, void *env) {
int i, arity = get_irn_arity(node);
ir_node *succ;
int start = (!is_Block(node)) ? -1 : 0;
+ (void) env;
for (i = start; i < arity; ++i) {
succ = get_irn_n(node, i);
static INLINE void
init_node (ir_node *n, void *env) {
+ (void) env;
set_irn_link (n, new_scc_info());
clear_backedges(n);
}
*/
static void loop_reset_node(ir_node *n, void *env) {
+ (void) env;
set_irn_loop(n, NULL);
reset_backedges(n);
}
static void compute_type(ir_node *n, void *env) {
ir_type *tp = get_irn_typeinfo_type(n);
+ (void) env;
if (tp == phi_cycle_type) {
/* printf(" recomputing for phi_cycle_type "); DDMN(n); */
set_irn_typeinfo_type(n, initial_type);
/* initialize data structure for given irn in given phase */
static void *irn_phi_class_init(ir_phase *ph, ir_node *irn, void *data) {
irn_phi_class_t *ipc = data ? data : phase_alloc(ph, sizeof(ipc[0]));
+ (void) irn;
memset(ipc, 0, sizeof(ipc[0]));
return ipc;
}
* dead graphs to peculiarity_description.
*/
static void make_entity_to_description(type_or_ent *tore, void *env) {
+ (void) env;
if (get_kind(tore) == k_entity) {
ir_entity *ent = (ir_entity *)tore;
/** The number of entities that can be accessed by this Sel node. */
static int get_Sel_n_accessed_entities(ir_node *sel) {
- return 1;
+ (void) sel;
+ return 1;
}
/** The entity that cat be accessed by this Sel node. */
int i, n_ents;
ir_node *addr;
+ (void) env;
if (get_irn_op(n) == op_Alloc) {
add_type_alloc(get_Alloc_type(n), n);
return;