Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
a0a58582
Commit
a0a58582
authored
Apr 26, 2002
by
Florian Liekweg
Browse files
Added exception markings to graph and cfg dumps --flo
[r386]
parent
4b57a396
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ir/irdump.c
View file @
a0a58582
...
...
@@ -957,7 +957,8 @@ dump_ir_block (ir_node *block, void *env) {
#else
xfprintf
(
F
,
"%I"
,
block
->
op
->
name
);
#endif
fprintf
(
F
,
" (%s)"
,
exc_to_string
(
get_Block_exc
(
block
)));
if
(
exc_normal
!=
get_Block_exc
(
block
))
fprintf
(
F
,
" (%s)"
,
exc_to_string
(
get_Block_exc
(
block
)));
xfprintf
(
F
,
"
\"
status:clustered color:%s
\n
"
,
get_Block_matured
(
block
)
?
"yellow"
:
"red"
);
...
...
@@ -1033,6 +1034,10 @@ dump_block_to_cfg (ir_node *block, void *env) {
/* This is a block. Dump a node for the block. */
xfprintf
(
F
,
"node: {title:
\"
"
);
PRINT_NODEID
(
block
);
xfprintf
(
F
,
"
\"
label:
\"
%I "
,
block
->
op
->
name
);
PRINT_NODEID
(
block
);
if
(
exc_normal
!=
get_Block_exc
(
block
))
xfprintf
(
F
,
" (%s)"
,
exc_to_string
(
get_Block_exc
(
block
)));
xfprintf
(
F
,
"
\"
"
);
if
(
dump_dominator_information_flag
)
xfprintf
(
F
,
"info1:
\"
dom depth %d
\"
"
,
get_Block_dom_depth
(
block
));
...
...
ir/ir/irnode.h
View file @
a0a58582
...
...
@@ -19,6 +19,7 @@
# include "tv.h"
# include "type.h"
# include "dbginfo.h"
# include "exc.h"
/* The typedefiniton of ir_node is also in irgraph.h to resolve
recursion between irnode.h and irgraph.h */
...
...
@@ -156,6 +157,9 @@ inline int Block_not_block_visited(ir_node *node);
inline
ir_node
*
get_Block_graph_arr
(
ir_node
*
node
,
int
pos
);
inline
void
set_Block_graph_arr
(
ir_node
*
node
,
int
pos
,
ir_node
*
value
);
void
set_Block_exc
(
ir_node
*
,
exc_t
);
exc_t
get_Block_exc
(
ir_node
*
);
inline
int
get_End_n_keepalives
(
ir_node
*
end
);
inline
ir_node
*
get_End_keepalive
(
ir_node
*
end
,
int
pos
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment