# ifndef _COMMON_H_
# define _COMMON_H_
+#define INLINE inline
+
/* a list of firm kinds */
typedef enum {
k_entity,
# include "firm.h"
# include "mangle.h"
# include "xp_help.h"
-# include "irnode_t.h"
# include "tv_t.h"
+/* init functions are not public */
# include "tpop_t.h"
+# include "irnode_t.h"
+# include "irmode_t.h"
void
init_firm (void)
init_mangle ();
/* initalize all op codes an irnode can consist of */
init_op ();
- /* called once for each run of this library, empty at this moment!!! */
- init_cons ();
+ /* called once for each run of this library, empty right now... @@@!!!
+ init_cons (); */
/* Builds a construct allowing to access all information to be constructed
later. */
init_irprog ();
Since `new' may be bigger than `old' replace `old'
by an op_Id which is smaller than everything */
inline void
-exchange (ir_node *old, ir_node *new)
+exchange (ir_node *old, ir_node *nw)
{
ir_node *block = old->in[0];
old->op = op_Id;
old->in = NEW_ARR_D (ir_node *, current_ir_graph->obst, 2);
old->in[0] = block;
- old->in[1] = new;
+ old->in[1] = nw;
}
/**********************************************************************/
/* Exchanges two nodes by conserving edges leaving old (i.e., pointers
pointing to old). Turns the old node into an Id. Requires that
current_ir_graph is set properly. */
-inline void exchange (ir_node *old, ir_node *new);
+inline void exchange (ir_node *old, ir_node *nw);
/* Turns a node into a "useless" Tuple. The Tuple node just forms a tuple
from several inputs. The predecessors of the tuple have to be
@@@ Eventually overlay with graph_arr as only valid
in different phases. Eventually inline the whole
datastructure. */
- exc_t exc; /* role of this block for exception handling */
- ir_node *handler_entry; /* handler entry block iff this block is part of a region */
+ exc_t exc; /* role of this block for exception handling */
+ ir_node *handler_entry; /* handler entry block iff this block is part of a region */
ir_node ** in_cg; /* array with predecessors in
* interprocedural_view, if they differ
* from intraprocedural predecessors */
/* $Id$ */
-# ifndef _IROP_T_H_
-# define _IROP_T_H_
+# ifndef _TPOP_T_H_
+# define _TPOP_T_H_
# include <stddef.h>
# include "tpop.h"
*/
int get_tpop_attr_size (tp_op *op);
-#endif /* _IROP_T_H_ */
+#endif /* _TPOP_T_H_ */