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

dump keep-alive edges in purple

[r15055]
parent 443730f3
......@@ -1433,8 +1433,8 @@ print_mem_edge_vcgattr(FILE *F, ir_node *from, int to) {
fprintf(F, INTER_MEM_EDGE_ATTR);
}
static void
print_edge_vcgattr(FILE *F, ir_node *from, int to) {
/** Print the vcg attributes for the edge from node from to it's to's input */
static void print_edge_vcgattr(FILE *F, ir_node *from, int to) {
assert(from);
if (dump_edge_vcgattr_hook)
......@@ -1452,9 +1452,9 @@ print_edge_vcgattr(FILE *F, ir_node *from, int to) {
case iro_End:
if (to >= 0) {
if (get_irn_mode(get_End_keepalive(from, to)) == mode_BB)
fprintf(F, CF_EDGE_ATTR);
if (get_irn_mode(get_End_keepalive(from, to)) == mode_X)
fprintf(F, INTER_MEM_EDGE_ATTR);
fprintf(F, KEEP_ALIVE_CF_EDGE_ATTR);
else
fprintf(F, KEEP_ALIVE_DF_EDGE_ATTR);
}
break;
default:
......@@ -1475,9 +1475,8 @@ print_edge_vcgattr(FILE *F, ir_node *from, int to) {
}
}
/* dump edges to our inputs */
static void
dump_ir_data_edges(FILE *F, ir_node *n) {
/** dump edges to our inputs */
static void dump_ir_data_edges(FILE *F, ir_node *n) {
int i;
unsigned long visited = get_irn_visited(n);
......@@ -2205,6 +2204,7 @@ void dump_vcg_header(FILE *F, const char *name, const char *orientation) {
"classname 17: \"interblock Memory\"\n"
"classname 18: \"Exception Control Flow for Interval Analysis\"\n"
"classname 19: \"Postdominators\"\n"
"classname 20: \"Keep Alive\"\n"
"infoname 1: \"Attribute\"\n"
"infoname 2: \"Verification errors\"\n"
"infoname 3: \"Debug info\"\n",
......
......@@ -43,6 +43,9 @@
#define INTER_MEM_EDGE_ATTR "class:17 priority:10 color:blue"
#define DOMINATOR_EDGE_ATTR "class:15 color:red"
#define POSTDOMINATOR_EDGE_ATTR "class:19 color:red linestyle:dotted"
#define KEEP_ALIVE_EDGE_ATTR "class:20 priority:10 color:purple"
#define KEEP_ALIVE_CF_EDGE_ATTR "class:20 priority:60 color:purple"
#define KEEP_ALIVE_DF_EDGE_ATTR "class:20 priority:10 color:purple"
#define BACK_EDGE_ATTR "linestyle:dashed "
......@@ -54,6 +57,7 @@
#define TYPE_CLASS_NODE_ATTR "color: green"
#define TYPE_DESCRIPTION_NODE_ATTR "color: lightgreen"
#define ENTITY_NODE_ATTR "color: yellow"
#define ENUM_ITEM_NODE_ATTR "color: green"
#define ENT_TYPE_EDGE_ATTR "class: 3 label: \"type\" color: red"
#define ENT_OWN_EDGE_ATTR "class: 4 label: \"owner\" color: black"
#define METH_PAR_EDGE_ATTR "class: 5 label: \"param %d\" color: green"
......@@ -67,7 +71,6 @@
#define ENT_VALUE_EDGE_ATTR "label: \"value %d\""
#define ENT_CORR_EDGE_ATTR "label: \"value %d corresponds to \" "
#define TYPE_MEMBER_EDGE_ATTR "class: 12 label: \"member\" color:blue"
#define ENUM_ITEM_NODE_ATTR "color: green"
/* #define CALLGRAPH_EDGE_ATTR "calls" */
#define PRINT_NODEID(X) fprintf(F, "n%ld", get_irn_node_nr(X))
......
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