Commit f6671138 authored by Michael Beck's avatar Michael Beck
Browse files

renamed type opcode to ir_opcode

[r8534]
parent 933ae1ee
......@@ -88,7 +88,7 @@ static INLINE int legal_backarray (ir_node *n) {
void fix_backedges(struct obstack *obst, ir_node *n) {
int *arr = mere_get_backarray(n);
opcode opc;
ir_opcode opc;
if (! arr)
return;
......
......@@ -173,7 +173,7 @@ static int add_implementing_graphs (ir_entity *method)
static void rta_act (ir_node *node, void *env)
{
int *change = (int*) env;
opcode op = get_irn_opcode (node);
ir_opcode op = get_irn_opcode (node);
if (iro_Call == op) { /* CALL */
ir_entity *ent = NULL;
......@@ -562,6 +562,9 @@ void rta_report (void)
/*
* $Log$
* Revision 1.40 2007/01/16 15:45:15 beck
* renamed type opcode to ir_opcode
*
* Revision 1.39 2006/12/13 13:15:12 beck
* renamed entity -> ir_entity
*
......
......@@ -66,7 +66,7 @@ static walk_mem_env_t *walk_envs = NULL;
static void irg_walk_mem_node (ir_node *node,
walk_mem_env_t *walk_env)
{
const opcode op = get_irn_opcode (node);
const ir_opcode op = get_irn_opcode (node);
ir_node *in = NULL;
if (get_irn_visited (node) >= walk_env->visited) {
......@@ -264,6 +264,9 @@ void irg_walk_mem (ir_graph *graph,
/*
$Log$
Revision 1.12 2007/01/16 15:45:42 beck
renamed type opcode to ir_opcode
Revision 1.11 2005/01/26 12:20:20 beck
gnu_ext.h included
......
......@@ -188,7 +188,7 @@ static pto_t *get_pto_proj (ir_node *proj, pto_env_t *env)
{
ir_node *proj_in = get_Proj_pred (proj);
const long proj_proj = get_Proj_proj (proj);
const opcode in_op = get_irn_opcode (proj_in);
const ir_opcode in_op = get_irn_opcode (proj_in);
pto_t *in_pto = NULL;
pto_t *proj_pto = NULL; /* get_node_pto (proj); */
......@@ -200,7 +200,7 @@ static pto_t *get_pto_proj (ir_node *proj, pto_env_t *env)
return (NULL);
case (iro_Proj): { /* ProjT (Start), ProjT (Call) */
opcode in_in_op;
ir_opcode in_in_op;
long proj_in_proj;
proj_in_in = get_Proj_pred (proj_in);
......@@ -321,7 +321,7 @@ static pto_t *get_pto_ret (ir_node *ret, pto_env_t *env)
/* Dispatch to propagate PTO values */
static pto_t *get_pto (ir_node *node, pto_env_t *env)
{
const opcode op = get_irn_opcode (node);
const ir_opcode op = get_irn_opcode (node);
DBGPRINT (2, (stdout, "%s (%s[%li])\n",
__FUNCTION__,
......@@ -454,7 +454,7 @@ static void pto_method (ir_node *call, pto_env_t *pto_env)
/* Perform the appropriate action on the given node */
static void pto_node_node(ir_node *node, pto_env_t *pto_env)
{
opcode op = get_irn_opcode (node);
ir_opcode op = get_irn_opcode (node);
DBGPRINT (1, (stdout, "%s (%s[%li])\n",
__FUNCTION__, OPNAME (node), OPNUM (node)));
......@@ -756,6 +756,9 @@ pto_t *get_alloc_pto (ir_node *alloc)
/*
$Log$
Revision 1.20 2007/01/16 15:45:42 beck
renamed type opcode to ir_opcode
Revision 1.19 2006/12/13 19:46:47 beck
rename type entity into ir_entity
......
......@@ -181,7 +181,7 @@ static void reset_node_pto (ir_node *node, void *env)
{
reset_env_t *reset_env = (reset_env_t*) env;
int ctx_idx = reset_env->ctx_idx;
opcode op = get_irn_opcode (node);
ir_opcode op = get_irn_opcode (node);
/* HERE ("start"); */
......@@ -232,7 +232,7 @@ static void init_pto (ir_node *node, void *env)
init_env_t *init_env = (init_env_t*) env;
int n_ctxs = init_env->n_ctxs;
opcode op = get_irn_opcode (node);
ir_opcode op = get_irn_opcode (node);
switch (op) {
case (iro_SymConst): {
......@@ -436,6 +436,9 @@ void pto_reset_graph_pto (ir_graph *graph, int ctx_idx)
/*
$Log$
Revision 1.23 2007/01/16 15:45:42 beck
renamed type opcode to ir_opcode
Revision 1.22 2006/12/13 19:46:47 beck
rename type entity into ir_entity
......
......@@ -106,7 +106,7 @@ ir_node **find_irg_args (ir_graph *graph)
ir_entity *get_ptr_ent (ir_node *ptr)
{
ir_entity *ent = NULL;
const opcode ptr_op = get_irn_opcode (ptr);
const ir_opcode ptr_op = get_irn_opcode (ptr);
switch (ptr_op) {
case (iro_Cast): {
ent = get_ptr_ent (get_Cast_op (ptr));
......@@ -134,7 +134,7 @@ ir_entity *get_ptr_ent (ir_node *ptr)
/* Check whether the load of the given ptr is a dummy */
int is_dummy_load_ptr (ir_node *ptr)
{
const opcode ptr_op = get_irn_opcode (ptr);
const ir_opcode ptr_op = get_irn_opcode (ptr);
switch (ptr_op) {
case (iro_Cast): {
......@@ -154,6 +154,9 @@ int is_dummy_load_ptr (ir_node *ptr)
/*
$Log$
Revision 1.19 2007/01/16 15:45:42 beck
renamed type opcode to ir_opcode
Revision 1.18 2006/12/13 19:46:47 beck
rename type entity into ir_entity
......
......@@ -630,7 +630,7 @@ static typalise_t *typalise_proj (ir_node *proj)
cough_and_die (proj_in);
}
} else {
opcode op = get_irn_opcode (proj_in);
ir_opcode op = get_irn_opcode (proj_in);
if ((iro_Load != op) && (iro_Alloc != op) && (iro_Call != op)) {
fprintf (stdout, "\n Proj (%s) not handled\n",
get_op_name (get_irn_op (proj_in)));
......@@ -677,7 +677,7 @@ lset_t *filter_for_ta (lset_t *set, typalise_t *ta)
*/
typalise_t *typalise (ir_node *node)
{
opcode op = get_irn_opcode (node);
ir_opcode op = get_irn_opcode (node);
typalise_t *res = NULL;
switch (op) {
......@@ -874,6 +874,9 @@ void typalise_init (void)
/*
$Log$
Revision 1.14 2007/01/16 15:45:42 beck
renamed type opcode to ir_opcode
Revision 1.13 2006/12/13 19:46:47 beck
rename type entity into ir_entity
......
......@@ -68,7 +68,7 @@ static ir_node *fix_irn_output(ir_node *node, ir_mode *mode)
/**
* Add a Conv node where needed on input
*/
static ir_node *fix_irn_input(opcode code, ir_node *block, ir_node *pred, ir_mode *mode)
static ir_node *fix_irn_input(ir_opcode code, ir_node *block, ir_node *pred, ir_mode *mode)
{
switch (code) {
case iro_DivMod:
......@@ -95,7 +95,7 @@ static ir_node *fix_irn_input(opcode code, ir_node *block, ir_node *pred, ir_mod
*/
static void fix_mode(ir_node *n, ir_mode *mode)
{
opcode code = get_irn_opcode(n);
ir_opcode code = get_irn_opcode(n);
if (code == iro_Proj) {
code = get_irn_opcode(get_Proj_pred(n));
......@@ -121,7 +121,7 @@ static void do_mode_conv(ir_node *n, void *env)
walker_t *wenv = env;
ir_mode *mode = get_irn_mode(n);
ir_node *block;
opcode code;
ir_opcode code;
/* save the old mode, we need this info later */
set_irn_link(n, mode);
......
......@@ -176,7 +176,7 @@ static void firm_ycomp_debug_init_realizer(firm_ycomp_dbg_t *dbg) {
*/
static INLINE unsigned get_node_realizer(ir_node *node) {
unsigned realizer;
opcode opc = get_irn_opcode(node);
ir_opcode opc = get_irn_opcode(node);
switch (opc) {
case iro_Block:
......
......@@ -374,7 +374,7 @@ void dump_graph_as_text(ir_graph *irg, const char *suffix) {
int addr_is_alloc(ir_node *acc) {
ir_node *addr = NULL;
opcode addr_op;
ir_opcode addr_op;
if (is_memop(acc)) {
addr = get_memop_ptr(acc);
} else {
......
......@@ -417,7 +417,7 @@ void
_set_irn_op(node, op);
}
opcode
ir_opcode
(get_irn_opcode)(const ir_node *node)
{
return _get_irn_opcode(node);
......@@ -2816,7 +2816,7 @@ static ir_type *get_Default_type(ir_node *n) {
}
/* Sets the get_type operation for an ir_op_ops. */
ir_op_ops *firm_set_default_get_type(opcode code, ir_op_ops *ops)
ir_op_ops *firm_set_default_get_type(ir_opcode code, ir_op_ops *ops)
{
switch (code) {
case iro_Const: ops->get_type = get_Const_type; break;
......@@ -2854,7 +2854,7 @@ static ir_type *get_Null_type(ir_node *n) {
}
/* Sets the get_type operation for an ir_op_ops. */
ir_op_ops *firm_set_default_get_type_attr(opcode code, ir_op_ops *ops)
ir_op_ops *firm_set_default_get_type_attr(ir_opcode code, ir_op_ops *ops)
{
switch (code) {
case iro_SymConst: ops->get_type_attr = get_SymConst_attr_type; break;
......@@ -2877,7 +2877,7 @@ static ir_entity *get_Null_ent(ir_node *n) {
}
/* Sets the get_type operation for an ir_op_ops. */
ir_op_ops *firm_set_default_get_entity_attr(opcode code, ir_op_ops *ops)
ir_op_ops *firm_set_default_get_entity_attr(ir_opcode code, ir_op_ops *ops)
{
switch (code) {
case iro_SymConst: ops->get_entity_attr = get_SymConst_attr_entity; break;
......
......@@ -174,7 +174,7 @@ ir_op *get_irn_op(const ir_node *node);
/** Sets the opcode struct of the node. */
void set_irn_op(ir_node *node, ir_op *op);
/** Gets the opcode-enum of the node. */
opcode get_irn_opcode(const ir_node *node);
ir_opcode get_irn_opcode(const ir_node *node);
/** Get the string representation of the opcode. */
const char *get_irn_opname(const ir_node *node);
/** Get the ident for a string representation of the opcode. */
......
......@@ -309,7 +309,7 @@ extern unsigned firm_add_node_size;
* @return
* The operations.
*/
ir_op_ops *firm_set_default_get_type(opcode code, ir_op_ops *ops);
ir_op_ops *firm_set_default_get_type(ir_opcode code, ir_op_ops *ops);
/**
* Sets the get_type_attr operation for an ir_op_ops.
......@@ -320,7 +320,7 @@ ir_op_ops *firm_set_default_get_type(opcode code, ir_op_ops *ops);
* @return
* The operations.
*/
ir_op_ops *firm_set_default_get_type_attr(opcode code, ir_op_ops *ops);
ir_op_ops *firm_set_default_get_type_attr(ir_opcode code, ir_op_ops *ops);
/**
* Sets the get_entity_attr operation for an ir_op_ops.
......@@ -331,7 +331,7 @@ ir_op_ops *firm_set_default_get_type_attr(opcode code, ir_op_ops *ops);
* @return
* The operations.
*/
ir_op_ops *firm_set_default_get_entity_attr(opcode code, ir_op_ops *ops);
ir_op_ops *firm_set_default_get_entity_attr(ir_opcode code, ir_op_ops *ops);
/*-------------------------------------------------------------------*/
/* These function are most used in libfirm. Give them as static */
......@@ -377,7 +377,7 @@ copy_node_attr(const ir_node *old_node, ir_node *new_node) {
* Gets the opcode of a node.
* Intern version for libFirm.
*/
static INLINE opcode
static INLINE ir_opcode
_get_irn_opcode(const ir_node *node) {
assert(k_ir_node == get_kind(node));
assert(node->op);
......
......@@ -144,7 +144,7 @@ block_copy_attr(const ir_node *old_node, ir_node *new_node) {
* @return
* The operations.
*/
static ir_op_ops *firm_set_default_copy_attr(opcode code, ir_op_ops *ops) {
static ir_op_ops *firm_set_default_copy_attr(ir_opcode code, ir_op_ops *ops) {
if (code == iro_Call)
ops->copy_attr = call_copy_attr;
else if (code == iro_Block)
......@@ -159,7 +159,7 @@ static ir_op_ops *firm_set_default_copy_attr(opcode code, ir_op_ops *ops) {
/* Creates a new ir operation. */
ir_op *
new_ir_op(opcode code, const char *name, op_pin_state p,
new_ir_op(ir_opcode code, const char *name, op_pin_state p,
unsigned flags, op_arity opar, int op_index, size_t attr_size,
const ir_op_ops *ops)
{
......@@ -374,7 +374,7 @@ const char *get_op_name (const ir_op *op) {
return get_id_str(op->name);
} /* get_op_name */
opcode (get_op_code)(const ir_op *op){
ir_opcode (get_op_code)(const ir_op *op){
return _get_op_code(op);
} /* get_op_code */
......
......@@ -85,7 +85,7 @@ typedef enum {
iro_InstOf, iro_Raise, iro_Bound,
iro_Pin,
iro_MaxOpcode
} opcode;
} ir_opcode;
#ifndef _IR_OP_TYPEDEF_
#define _IR_OP_TYPEDEF_
......@@ -169,7 +169,7 @@ ident *get_op_ident(const ir_op *op);
const char *get_op_name(const ir_op *op);
/** Returns the enum for the opcode */
opcode get_op_code(const ir_op *op);
ir_opcode get_op_code(const ir_op *op);
/** op_pin_state_pinned states */
typedef enum {
......@@ -355,8 +355,8 @@ typedef struct {
* This function can create all standard Firm opcode as well as new ones.
* The behavior of new opcode depends on the operations \c ops and the \c flags.
*/
ir_op * new_ir_op(opcode code, const char *name, op_pin_state p,
unsigned flags, op_arity opar, int op_index, size_t attr_size,
ir_op *new_ir_op(ir_opcode code, const char *name, op_pin_state p,
unsigned flags, op_arity opar, int op_index, size_t attr_size,
const ir_op_ops *ops);
/** Returns the ir_op_ops of an ir_op. */
......
......@@ -20,7 +20,7 @@
/** The type of an ir_op. */
struct ir_op {
opcode code; /**< The unique opcode of the op. */
ir_opcode code; /**< The unique opcode of the op. */
ident *name; /**< The name of the op. */
size_t attr_size; /**< Space needed in memory for private attributes. */
op_pin_state op_pin_state_pinned; /**< How to deal with the node in CSE, PRE. */
......@@ -131,7 +131,7 @@ static INLINE int is_op_machine_user(const ir_op *op, unsigned n) {
return op->flags & (irop_flag_user << n);
}
static INLINE opcode _get_op_code(const ir_op *op) {
static INLINE ir_opcode _get_op_code(const ir_op *op) {
return op->code;
}
......
......@@ -661,7 +661,7 @@ tarval *computed_value(ir_node *n) {
* @return
* The operations.
*/
static ir_op_ops *firm_set_default_computed_value(opcode code, ir_op_ops *ops)
static ir_op_ops *firm_set_default_computed_value(ir_opcode code, ir_op_ops *ops)
{
#define CASE(a) \
case iro_##a: \
......@@ -1609,7 +1609,7 @@ ir_node *equivalent_node(ir_node *n) {
* @return
* The operations.
*/
static ir_op_ops *firm_set_default_equivalent_node(opcode code, ir_op_ops *ops)
static ir_op_ops *firm_set_default_equivalent_node(ir_opcode code, ir_op_ops *ops)
{
#define CASE(a) \
case iro_##a: \
......@@ -3425,7 +3425,7 @@ static ir_node *transform_node(ir_node *n)
* @return
* The operations.
*/
static ir_op_ops *firm_set_default_transform_node(opcode code, ir_op_ops *ops)
static ir_op_ops *firm_set_default_transform_node(ir_opcode code, ir_op_ops *ops)
{
#define CASE(a) \
case iro_##a: \
......@@ -3566,7 +3566,7 @@ static int node_cmp_attr_Confirm(ir_node *a, ir_node *b) {
* @return
* The operations.
*/
static ir_op_ops *firm_set_default_node_cmp_attr(opcode code, ir_op_ops *ops)
static ir_op_ops *firm_set_default_node_cmp_attr(ir_opcode code, ir_op_ops *ops)
{
#define CASE(a) \
case iro_##a: \
......@@ -3872,7 +3872,7 @@ ir_node *optimize_node(ir_node *n)
{
tarval *tv;
ir_node *oldn = n;
opcode iro = get_irn_opcode(n);
ir_opcode iro = get_irn_opcode(n);
/* Always optimize Phi nodes: part of the construction. */
if ((!get_opt_optimize()) && (iro != iro_Phi)) return n;
......@@ -3981,7 +3981,7 @@ ir_node *optimize_in_place_2(ir_node *n)
{
tarval *tv;
ir_node *oldn = n;
opcode iro = get_irn_opcode(n);
ir_opcode iro = get_irn_opcode(n);
if (!get_opt_optimize() && (get_irn_op(n) != op_Phi)) return n;
......@@ -4076,7 +4076,7 @@ ir_node *optimize_in_place(ir_node *n) {
/*
* Sets the default operation for an ir_ops.
*/
ir_op_ops *firm_set_default_operations(opcode code, ir_op_ops *ops) {
ir_op_ops *firm_set_default_operations(ir_opcode code, ir_op_ops *ops) {
ops = firm_set_default_computed_value(code, ops);
ops = firm_set_default_equivalent_node(code, ops);
ops = firm_set_default_transform_node(code, ops);
......
......@@ -96,6 +96,6 @@ value_of(ir_node *n) {
* @return
* The operations.
*/
ir_op_ops *firm_set_default_operations(opcode code, ir_op_ops *ops);
ir_op_ops *firm_set_default_operations(ir_opcode code, ir_op_ops *ops);
#endif /* _IROPT_T_H_ */
......@@ -61,7 +61,7 @@ typedef struct {
} rflct_args_t;
typedef struct {
opcode opc;
ir_opcode opc;
const char *name;
int commutative;
int sig_count;
......@@ -124,12 +124,12 @@ rflct_mode_class_t rflct_get_mode_class(const ir_mode *mode) {
return RFLCT_MC(None);
}
static INLINE const rflct_opcode_t *get_opcode(opcode opc) {
static INLINE const rflct_opcode_t *get_opcode(ir_opcode opc) {
assert(opc >= 0 && opc < OPCODES_COUNT && "Invalid opcode");
return opcodes[opc];
}
static INLINE const rflct_arg_t *get_args(opcode opc, int sig) {
static INLINE const rflct_arg_t *get_args(ir_opcode opc, int sig) {
const rflct_opcode_t *opcode = get_opcode(opc);
assert(sig >= 0 && sig < opcode->sig_count
&& "Invalid signature");
......@@ -139,12 +139,12 @@ static INLINE const rflct_arg_t *get_args(opcode opc, int sig) {
#define GET_OPCODE(opc) get_opcode(opc)
#define GET_ARGS(opc,args) get_args(opc, args)
int rflct_get_signature_count(opcode opc) {
int rflct_get_signature_count(ir_opcode opc) {
const rflct_opcode_t *opcode = GET_OPCODE(opc);
return opcode->sig_count;
}
int rflct_get_in_args_count(opcode opc, int sig) {
int rflct_get_in_args_count(ir_opcode opc, int sig) {
const rflct_arg_t *args = GET_ARGS(opc, sig);
int res = 0, i = 0;
......@@ -153,7 +153,7 @@ int rflct_get_in_args_count(opcode opc, int sig) {
return res;
}
int rflct_get_out_args_count(opcode opc, int sig) {
int rflct_get_out_args_count(ir_opcode opc, int sig) {
const rflct_arg_t *args = GET_ARGS(opc, sig);
int i = 0;
for(i = 0; args[i].name != NULL; i++);
......@@ -161,7 +161,7 @@ int rflct_get_out_args_count(opcode opc, int sig) {
}
const rflct_arg_t *rflct_get_in_args(opcode opc, int sig) {
const rflct_arg_t *rflct_get_in_args(ir_opcode opc, int sig) {
const rflct_arg_t *args = GET_ARGS(opc, sig);
int i;
......@@ -169,12 +169,12 @@ const rflct_arg_t *rflct_get_in_args(opcode opc, int sig) {
return &args[i + 1];
}
const rflct_arg_t *rflct_get_out_args(opcode opc, int sig) {
const rflct_arg_t *rflct_get_out_args(ir_opcode opc, int sig) {
return GET_ARGS(opc, sig);
}
int rflct_signature_match(const ir_node *irn, int sig) {
opcode op = get_irn_opcode(irn);
ir_opcode op = get_irn_opcode(irn);
const rflct_arg_t *args = rflct_get_in_args(op, sig);
int dst = 0;
int i, j;
......@@ -300,7 +300,7 @@ static void rflct_obstack_grow_args(struct obstack *obst,
}
char *rflct_to_string(char *buf, int n, opcode opc, int sig) {
char *rflct_to_string(char *buf, int n, ir_opcode opc, int sig) {
struct obstack obst;
char *s;
const rflct_opcode_t *opcode = GET_OPCODE(opc);
......@@ -403,7 +403,7 @@ arg->name = _name; \
arg->is_variadic = _var; \
arg->mode_equals = _me;
void rflct_new_opcode(opcode opc, const char *name, int commutative)
void rflct_new_opcode(ir_opcode opc, const char *name, int commutative)
{
rflct_opcode_t *ropc = obstack_alloc(&obst, sizeof(*ropc));
......@@ -416,7 +416,7 @@ void rflct_new_opcode(opcode opc, const char *name, int commutative)
opcodes[opc] = ropc;
}
int rflct_opcode_add_signature(opcode opc, rflct_sig_t *sig)
int rflct_opcode_add_signature(ir_opcode opc, rflct_sig_t *sig)
{
rflct_arg_t *args = sig->args;
rflct_opcode_t *op = opcodes[opc];
......
......@@ -83,7 +83,7 @@ rflct_mode_class_t rflct_get_mode_class(const ir_mode *mode);
* @param opc The opcode.
* @return The number of signatures for this opcode.
*/
int rflct_get_signature_count(opcode opc);
int rflct_get_signature_count(ir_opcode opc);
/**
* Try to get the signature, that matches to a given instance
......@@ -100,7 +100,7 @@ int rflct_get_signature(const ir_node *irn);
* @param sig The signature you are refering to.
* @return The number of arguments.
*/
int rflct_get_in_args_count(opcode opc, int sig);
int rflct_get_in_args_count(ir_opcode opc, int sig);
/**
* Get the number of out arguments.
......@@ -109,7 +109,7 @@ int rflct_get_in_args_count(opcode opc, int sig);
* @param sig The signature you are refering to.
* @return The number of arguments.
*/
int rflct_get_out_args_count(opcode opc, int sig);
int rflct_get_out_args_count(ir_opcode opc, int sig);
#define rflct_get_args_count(opc, sig, use) \
((use) ? rflct_get_in_args_count(opc, sig) : rflct_get_out_args_count(opc, sig))
......@@ -123,7 +123,7 @@ int rflct_get_out_args_count(opcode opc, int sig);
* 0 and the signature count).
* @return The array.
*/
const rflct_arg_t *rflct_get_in_args(opcode opc, int sig);
const rflct_arg_t *rflct_get_in_args(ir_opcode opc, int sig);
/**
* Get the array of def args.
......@@ -134,7 +134,7 @@ const rflct_arg_t *rflct_get_in_args(opcode opc, int sig);
* 0 and the signature count).
* @return The array.
*/
const rflct_arg_t *rflct_get_out_args(opcode opc, int sig);
const rflct_arg_t *rflct_get_out_args(ir_opcode opc, int sig);
#define rflct_get_args(opc, sig, use) \
((use) ? rflct_get_in_args(opc, sig) : rflct_get_out_args(opc, sig))
......@@ -147,7 +147,7 @@ const rflct_arg_t *rflct_get_out_args(opcode opc, int sig);
* @param sig The signature.
* @return buf.
*/
char *rflct_to_string(char *buf, int n, opcode opc, int sig);
char *rflct_to_string(char *buf, int n, ir_opcode opc, int sig);
/**
* Get a string representation of a mode class.
......@@ -164,7 +164,7 @@ char *rflct_mode_class_name(char *str, int n, rflct_mode_class_t mc);
* @param name A name.
* @param commutative non-zero, if the opcode is commutative.
*/
void rflct_new_opcode(opcode opc, const char *name, int commutative);
void rflct_new_opcode(ir_opcode opc, const char *name, int commutative);
/**
* Add a signature to the opcode.
......@@ -173,7 +173,7 @@ void rflct_new_opcode(opcode opc, const char *name, int commutative);
* @return non-zero, if the signature was added successfully, false if no
* more signatures can be added to the opcode.
*/
int rflct_opcode_add_signature(opcode opc, rflct_sig_t *sig);
int rflct_opcode_add_signature(ir_opcode opc, rflct_sig_t *sig);
/**
* Allocate a new signature.
......
Supports Markdown
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