summaryrefslogtreecommitdiffhomepage
path: root/ir/be/benode.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-09-11 18:28:16 +0200
committerMatthias Braun <matze@braunis.de>2014-09-15 11:27:29 +0200
commit73446e0b4b6dda1f9dfc4b5b78da4473074b3348 (patch)
treec9e857da1f23017ab5ea46804e83c0544fe1e621 /ir/be/benode.h
parente269bd7dd831bd7bc678be5d90525db6b3f9aec1 (diff)
benode: cleanup, use C99
Diffstat (limited to 'ir/be/benode.h')
-rw-r--r--ir/be/benode.h44
1 files changed, 23 insertions, 21 deletions
diff --git a/ir/be/benode.h b/ir/be/benode.h
index 2bd24da..6c5c3b3 100644
--- a/ir/be/benode.h
+++ b/ir/be/benode.h
@@ -118,16 +118,16 @@ void be_Keep_add_node(ir_node *keep, const arch_register_class_t *cls,
* Position numbers for the be_AddSP inputs
*/
enum {
- n_be_AddSP_old_sp = 0,
- n_be_AddSP_size = 1,
- n_be_AddSP_last = 2
+ n_be_AddSP_old_sp,
+ n_be_AddSP_size,
+ n_be_AddSP_max = n_be_AddSP_size
};
enum {
- pn_be_AddSP_sp = 0,
- pn_be_AddSP_res = 1,
- pn_be_AddSP_M = 2,
- pn_be_AddSP_last = 3
+ pn_be_AddSP_sp,
+ pn_be_AddSP_res,
+ pn_be_AddSP_M,
+ pn_be_AddSP_max = pn_be_AddSP_M
};
/**
@@ -149,15 +149,15 @@ ir_node *be_new_AddSP(const arch_register_t *sp, ir_node *block,
* Position numbers for the be_SubSP inputs
*/
enum {
- n_be_SubSP_old_sp = 0,
- n_be_SubSP_size = 1,
- n_be_SubSP_last = 2
+ n_be_SubSP_old_sp,
+ n_be_SubSP_size,
+ n_be_SubSP_max = n_be_SubSP_size
};
enum {
- pn_be_SubSP_sp = 0,
- pn_be_SubSP_M = 1,
- pn_be_SubSP_last = 2
+ pn_be_SubSP_sp,
+ pn_be_SubSP_M,
+ pn_be_SubSP_max = pn_be_SubSP_M
};
/**
@@ -228,10 +228,10 @@ unsigned be_Call_get_pop(const ir_node *call);
* Position numbers for the be_Call inputs.
*/
enum {
- n_be_Call_mem = 0, /**< memory input of a be_Call node */
- n_be_Call_sp = 1, /**< stack pointer input of a be_Call node */
- n_be_Call_ptr = 2, /**< call pointer input of a be_Call node */
- n_be_Call_first_arg = 3 /**< first argument input of a be_Call node */
+ n_be_Call_mem, /**< memory input of a be_Call node */
+ n_be_Call_sp, /**< stack pointer input of a be_Call node */
+ n_be_Call_ptr, /**< call pointer input of a be_Call node */
+ n_be_Call_first_arg /**< first argument input of a be_Call node */
};
/**
@@ -265,9 +265,10 @@ ir_node *be_new_Call(dbg_info *dbg, ir_node *block, ir_node *mem, arch_register_
* Position numbers for the be_Return inputs.
*/
enum {
- n_be_Return_mem = 0, /**< memory input of a be_Return node */
- n_be_Return_sp = 1, /**< stack pointer input of a be_Return node */
- n_be_Return_val = 2, /**< first "real" return value if any */
+ n_be_Return_mem, /**< memory input of a be_Return node */
+ n_be_Return_sp, /**< stack pointer input of a be_Return node */
+ n_be_Return_val, /**< first "real" return value if any */
+ n_be_Return_max = n_be_Return_val
};
/**
@@ -310,7 +311,8 @@ void be_Return_set_emit_pop(ir_node *ret, int emit_pop);
ir_node *be_new_Start(dbg_info *dbgi, ir_node *block, int n_out);
enum {
- n_be_CopyKeep_op = 0
+ n_be_CopyKeep_op,
+ n_be_CopyKeep_max = n_be_CopyKeep_op
};
ir_node *be_new_CopyKeep(ir_node *block, ir_node *src,
int n, ir_node *in_keep[]);