#include "ircons.h"
#include "irgmod.h"
#include "xprintf.h"
-
+#include "irnode.h"
/* Eindeutige Adresse zur Markierung von besuchten Knoten und zur
* Darstellung der unbekannten Methode. */
/* $Id$ */
+#include <string.h>
+
#include "irloop_t.h"
#include "irnode.h"
#include "irgraph_t.h"
#include "array.h"
+#include "xprintf.h"
+#include "irgwalk.h"
+
ir_graph *outermost_ir_graph; /* The outermost graph the scc is computed
for */
case k_type_primitive: { return "k_type_primitive"; } break;
#endif
case k_ir_node: { return "k_ir_node"; } break;
+ default: break;
}
return "";
}
}
}
-static INLINE new_backedge_info(ir_node *n) {
+static INLINE void new_backedge_info(ir_node *n) {
switch(get_irn_opcode(n)) {
case iro_Block:
n->attr.block.cg_backedge = NULL;
# include <config.h>
#endif
+# include <stdlib.h>
+
# include "irnode.h"
# include "irgraph.h" /* visited flag */
# include "irprog.h"
res->tos = 0;
res->s = NEW_ARR_F (ir_node *, MIN_STACK_SIZE);
set_irg_callsite_stack(g, res);
+ return(res);
}
static INLINE void
if ((mode_is_float(sm) && mode_is_float(lm)) &&
get_mode_modecode(sm) <= get_mode_modecode(lm))
return true;
+ return(false);
}
#include "typegmod_t.h"
#include "array.h"
#include "irbackedge_t.h"
+#include "irdump.h"
#ifdef DEBUG_libfirm
#include "irprog_t.h"
INLINE void set_Call_param (ir_node *node, int pos, ir_node *param);
INLINE type *get_Call_type (ir_node *node);
INLINE void set_Call_type (ir_node *node, type *type);
+INLINE int get_Call_arity (ir_node *node);
+
/* Set, get and remove the callee-analysis. */
int get_Call_n_callees(ir_node * node);
entity * get_Call_callee(ir_node * node, int pos);
new_ir_prog ();
}
+INLINE void remove_irp_type_from_list (type *typ) {
+ int i;
+ assert(typ);
+ for (i = 1; i < (ARR_LEN (irp->types)); i++) {
+ if (irp->types[i] == typ) {
+ for(; i < (ARR_LEN (irp->types)) - 1; i++) {
+ irp->types[i] = irp->types[i+1];
+ }
+ ARR_SETLEN(type*, irp->types, (ARR_LEN(irp->types)) - 1);
+ break;
+ }
+ }
+}
+
/* Create a new ir prog. Automatically called by init_firm through
init_irprog. */
ir_prog *new_ir_prog (void) {
ARR_APP1 (type *, irp->types, typ);
}
-INLINE void remove_irp_type_from_list (type *typ) {
- int i;
- assert(typ);
- for (i = 1; i < (ARR_LEN (irp->types)); i++) {
- if (irp->types[i] == typ) {
- for(; i < (ARR_LEN (irp->types)) - 1; i++) {
- irp->types[i] = irp->types[i+1];
- }
- ARR_SETLEN(type*, irp->types, (ARR_LEN(irp->types)) - 1);
- break;
- }
- }
-}
-
void remove_irp_type(type *typ) {
remove_irp_type_from_list (typ);
}
# include <stdlib.h>
# include <stddef.h>
+# include <string.h>
# include "type_t.h"
# include "tpop_t.h"
# include "typegmod_t.h"