Commit 1183e0e3 authored by Matthias Braun's avatar Matthias Braun
Browse files

rename iro_First/iro_Last to iro_first/iro_last

parent ff28cd0b
......@@ -1253,8 +1253,6 @@ static ir_op *new_be_op(unsigned code, const char *name, op_pin_state p,
void be_init_op(void)
{
unsigned opc;
assert(op_be_Spill == NULL);
/* Acquire all needed opcodes. */
......@@ -1291,7 +1289,7 @@ void be_init_op(void)
op_be_FrameAddr->ops.node_cmp_attr = FrameAddr_cmp_attr;
/* attach out dummy_ops to middle end nodes */
for (opc = iro_First; opc <= iro_Last; ++opc) {
for (unsigned opc = iro_first; opc <= iro_last; ++opc) {
ir_op *op = ir_get_opcode(opc);
assert(op->ops.be_ops == NULL);
op->ops.be_ops = &dummy_be_irn_ops;
......
......@@ -30,7 +30,7 @@
static i_record *intrinsics;
/** An array to cache all entities. */
static ir_entity *i_ents[iro_Last + 1];
static ir_entity *i_ents[iro_last + 1];
/*
* Maps all intrinsic calls that the backend support
......
......@@ -26,7 +26,7 @@
static ir_op **opcodes;
/** the available next opcode */
static unsigned next_iro = iro_Last + 1;
static unsigned next_iro = iro_MaxOpcode;
static ir_type *default_get_type_attr(const ir_node *node);
static ir_entity *default_get_entity_attr(const ir_node *node);
......
......@@ -3074,7 +3074,7 @@ void ir_lower_dw_ops(void)
/* create the necessary maps */
if (! intrinsic_fkt)
intrinsic_fkt = new_set(cmp_op_mode, iro_Last + 1);
intrinsic_fkt = new_set(cmp_op_mode, iro_last + 1);
if (! conv_types)
conv_types = new_set(cmp_conv_tp, 16);
if (! lowered_type)
......
......@@ -3523,7 +3523,7 @@ void combo(ir_graph *irg)
#ifdef DEBUG_libfirm
env.dbg_list = NULL;
#endif
env.opcode2id_map = new_set(cmp_opcode, iro_Last * 4);
env.opcode2id_map = new_set(cmp_opcode, iro_last * 4);
env.kept_memory = NEW_ARR_F(ir_node *, 0);
env.end_idx = get_opt_global_cse() ? 0 : -1;
env.lambda_input = 0;
......
......@@ -1180,7 +1180,7 @@ void shape_blocks(ir_graph *irg)
obstack_init(&env.obst);
INIT_LIST_HEAD(&env.partitions);
INIT_LIST_HEAD(&env.ready);
env.opcode2id_map = new_set(cmp_opcode, iro_Last * 4);
env.opcode2id_map = new_set(cmp_opcode, iro_last * 4);
n = get_irg_last_idx(irg);
env.live_outs = NEW_ARR_FZ(ir_node*, n);
......
......@@ -18,8 +18,8 @@ typedef enum {{spec.name}}_opcode {
{%- for node in nodes %}
{{spec.name}}o_{{node.name}},
{%- endfor %}
{{spec.name}}o_First = {{spec.name}}o_{{nodes[0].name}},
{{spec.name}}o_Last = {{spec.name}}o_{{nodes[-1].name}},
{{spec.name}}o_first = {{spec.name}}o_{{nodes[0].name}},
{{spec.name}}o_last = {{spec.name}}o_{{nodes[-1].name}},
{%- if spec.name == "ir" %}
beo_First,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment