projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added add_saturated
[libfirm]
/
ir
/
common
/
firm_common.c
diff --git
a/ir/common/firm_common.c
b/ir/common/firm_common.c
index
6922cef
..
054dc46
100644
(file)
--- a/
ir/common/firm_common.c
+++ b/
ir/common/firm_common.c
@@
-12,12
+12,13
@@
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
-# include
<config.h>
+# include
"config.h"
#endif
#include "firm_common_t.h"
#include "irgraph.h"
#include "irloop.h"
#endif
#include "firm_common_t.h"
#include "irgraph.h"
#include "irloop.h"
+#include "tv.h"
/**
* Ideally, this macro would check if size bytes could be read at
/**
* Ideally, this macro would check if size bytes could be read at
@@
-46,6
+47,8
@@
const char* print_firm_kind(void *firm_thing) {
case k_tarval : return "k_tarval";
case k_ir_loop : return "k_ir_loop";
case k_ir_compound_graph_path : return "k_ir_compound_graph_path";
case k_tarval : return "k_tarval";
case k_ir_loop : return "k_ir_loop";
case k_ir_compound_graph_path : return "k_ir_compound_graph_path";
+ case k_ir_extblk : return "k_ir_extblk";
+ case k_ir_prog : return "k_ir_prog";
default: return "";
}
}
default: return "";
}
}
@@
-73,13
+76,16
@@
void firm_identify_thing(void *X)
printf("type: %s %s: %ld (%p)\n", get_type_tpop_name(X), get_type_name(X), get_type_nr(X), X);
break;
case k_ir_graph:
printf("type: %s %s: %ld (%p)\n", get_type_tpop_name(X), get_type_name(X), get_type_nr(X), X);
break;
case k_ir_graph:
- printf("graph: %s: %ld (%p)\n", get_entity_name(get_irg_ent(X)), get_irg_graph_nr(X), X);
+ printf("graph: %s: %ld (%p)\n", get_entity_name(get_irg_ent
ity
(X)), get_irg_graph_nr(X), X);
break;
case k_ir_node:
printf("irnode: %s%s %ld (%p)\n", get_irn_opname(X), get_mode_name(get_irn_mode(X)), get_irn_node_nr(X), X);
break;
case k_ir_mode:
break;
case k_ir_node:
printf("irnode: %s%s %ld (%p)\n", get_irn_opname(X), get_mode_name(get_irn_mode(X)), get_irn_node_nr(X), X);
break;
case k_ir_mode:
- printf("mode %s: (%p)\n", get_mode_name(X),X);
+ printf("mode %s: (%p)\n", get_mode_name(X), X);
+ break;
+ case k_ir_op:
+ printf("op %s: (%p)\n", get_op_name(X), X);
break;
case k_tarval:
printf("tarval : "); tarval_printf(X); printf(" (%p)\n", X);
break;
case k_tarval:
printf("tarval : "); tarval_printf(X); printf(" (%p)\n", X);
@@
-87,8
+93,15
@@
void firm_identify_thing(void *X)
case k_ir_loop:
printf("loop: with depth %d: (%p)\n", get_loop_depth(X), X);
break;
case k_ir_loop:
printf("loop: with depth %d: (%p)\n", get_loop_depth(X), X);
break;
- case k_ir_op:
case k_ir_compound_graph_path:
case k_ir_compound_graph_path:
+ printf("compound_graph_path: (%p)\n", X);
+ break;
+ case k_ir_extblk:
+ printf("extended block: (%p)\n", X);
+ break;
+ case k_ir_prog:
+ printf("irp: (%p)\n", X);
+ break;
default:
printf("Cannot identify thing at (%p).\n", X);
}
default:
printf("Cannot identify thing at (%p).\n", X);
}