Commit 13481c7e authored by Christoph Mallon's avatar Christoph Mallon
Browse files

be: Constify array parameters.

parent d2b79f7e
...@@ -306,8 +306,7 @@ ir_node *be_get_Spill_frame(const ir_node *irn) ...@@ -306,8 +306,7 @@ ir_node *be_get_Spill_frame(const ir_node *irn)
return get_irn_n(irn, n_be_Spill_frame); return get_irn_n(irn, n_be_Spill_frame);
} }
ir_node *be_new_Perm(const arch_register_class_t *cls, ir_node *block, ir_node *be_new_Perm(arch_register_class_t const *const cls, ir_node *const block, int const n, ir_node *const *const in)
int n, ir_node *in[])
{ {
int i; int i;
ir_graph *irg = get_Block_irg(block); ir_graph *irg = get_Block_irg(block);
...@@ -366,7 +365,7 @@ void be_Perm_reduce(ir_node *perm, int new_size, int *map) ...@@ -366,7 +365,7 @@ void be_Perm_reduce(ir_node *perm, int new_size, int *map)
set_irn_in(perm, new_size, new_in); set_irn_in(perm, new_size, new_in);
} }
ir_node *be_new_MemPerm(ir_node *block, int n, ir_node *in[]) ir_node *be_new_MemPerm(ir_node *const block, int n, ir_node *const *const in)
{ {
ir_graph *irg = get_Block_irg(block); ir_graph *irg = get_Block_irg(block);
const arch_env_t *arch_env = be_get_irg_arch_env(irg); const arch_env_t *arch_env = be_get_irg_arch_env(irg);
...@@ -425,7 +424,7 @@ ir_node *be_get_Copy_op(const ir_node *cpy) ...@@ -425,7 +424,7 @@ ir_node *be_get_Copy_op(const ir_node *cpy)
return get_irn_n(cpy, n_be_Copy_op); return get_irn_n(cpy, n_be_Copy_op);
} }
ir_node *be_new_Keep(ir_node *block, int n, ir_node *in[]) ir_node *be_new_Keep(ir_node *const block, int const n, ir_node *const *const in)
{ {
int i; int i;
ir_node *res; ir_node *res;
...@@ -456,10 +455,7 @@ void be_Keep_add_node(ir_node *keep, const arch_register_class_t *cls, ir_node * ...@@ -456,10 +455,7 @@ void be_Keep_add_node(ir_node *keep, const arch_register_class_t *cls, ir_node *
add_register_req_in(keep, cls->class_req); add_register_req_in(keep, cls->class_req);
} }
ir_node *be_new_Call(dbg_info *dbg, ir_node *bl, ir_node *mem, ir_node *be_new_Call(dbg_info *const dbg, ir_node *const bl, ir_node *const mem, arch_register_req_t const *const sp_req, ir_node *const sp, arch_register_req_t const *const ptr_req, ir_node *const ptr, int const n_outs, int const n, ir_node *const *const in, ir_type *const call_tp)
const arch_register_req_t *sp_req, ir_node *sp,
const arch_register_req_t *ptr_req, ir_node *ptr,
int n_outs, int n, ir_node *in[], ir_type *call_tp)
{ {
be_call_attr_t *a; be_call_attr_t *a;
int real_n = n_be_Call_first_arg + n; int real_n = n_be_Call_first_arg + n;
...@@ -524,7 +520,7 @@ unsigned be_Call_get_pop(const ir_node *call) ...@@ -524,7 +520,7 @@ unsigned be_Call_get_pop(const ir_node *call)
return a->pop; return a->pop;
} }
ir_node *be_new_Return(dbg_info *const dbg, ir_node *const block, int const n_res, unsigned const pop, int const n, ir_node **const in) ir_node *be_new_Return(dbg_info *const dbg, ir_node *const block, int const n_res, unsigned const pop, int const n, ir_node *const *const in)
{ {
ir_graph *const irg = get_Block_irg(block); ir_graph *const irg = get_Block_irg(block);
ir_node *const res = new_ir_node(dbg, irg, block, op_be_Return, mode_X, n, in); ir_node *const res = new_ir_node(dbg, irg, block, op_be_Return, mode_X, n, in);
......
...@@ -98,8 +98,7 @@ ir_node *be_get_Copy_op(const ir_node *cpy); ...@@ -98,8 +98,7 @@ ir_node *be_get_Copy_op(const ir_node *cpy);
/** /**
* Make a new Perm node. * Make a new Perm node.
*/ */
ir_node *be_new_Perm(const arch_register_class_t *cls, ir_node *block, ir_node *be_new_Perm(arch_register_class_t const *cls, ir_node *block, int n, ir_node *const *in);
int n, ir_node *in[]);
/** /**
* Reduce a Perm. * Reduce a Perm.
...@@ -123,8 +122,9 @@ void be_Perm_reduce(ir_node *perm, int new_size, int *map); ...@@ -123,8 +122,9 @@ void be_Perm_reduce(ir_node *perm, int new_size, int *map);
* used as spillslots). MemPerm nodes perform this operation without modifying * used as spillslots). MemPerm nodes perform this operation without modifying
* any register values. * any register values.
*/ */
ir_node *be_new_MemPerm(ir_node *block, int n, ir_node *in[]); ir_node *be_new_MemPerm(ir_node *block, int n, ir_node *const *in);
ir_node *be_new_Keep(ir_node *block, int arity, ir_node *in[]);
ir_node *be_new_Keep(ir_node *block, int arity, ir_node *const *in);
void be_Keep_add_node(ir_node *keep, const arch_register_class_t *cls, void be_Keep_add_node(ir_node *keep, const arch_register_class_t *cls,
ir_node *node); ir_node *node);
...@@ -290,10 +290,7 @@ typedef enum { ...@@ -290,10 +290,7 @@ typedef enum {
* @param in the (register) inputs of this call * @param in the (register) inputs of this call
* @param call_tp the call type of this call * @param call_tp the call type of this call
*/ */
ir_node *be_new_Call(dbg_info *dbg, ir_node *block, ir_node *mem, ir_node *be_new_Call(dbg_info *dbg, ir_node *block, ir_node *mem, arch_register_req_t const *sp_req, ir_node *sp, arch_register_req_t const *ptr_req, ir_node *ptr, int n_outs, int n, ir_node *const *in, ir_type *call_tp);
const arch_register_req_t *sp_req, ir_node *sp,
const arch_register_req_t *ptr_req, ir_node *ptr,
int n_outs, int n, ir_node *in[], ir_type *call_tp);
/** /**
* Position numbers for the be_Return inputs. * Position numbers for the be_Return inputs.
...@@ -314,7 +311,7 @@ enum { ...@@ -314,7 +311,7 @@ enum {
* @param n number of inputs * @param n number of inputs
* @param in input array * @param in input array
*/ */
ir_node *be_new_Return(dbg_info *dbg, ir_node *block, int n_res, unsigned pop, int n, ir_node *in[]); ir_node *be_new_Return(dbg_info *dbg, ir_node *block, int n_res, unsigned pop, int n, ir_node *const *in);
/** Returns the number of real returns values */ /** Returns the number of real returns values */
int be_Return_get_n_rets(const ir_node *ret); int be_Return_get_n_rets(const ir_node *ret);
......
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