projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
715c956
)
hook_node_info added
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 20 Apr 2006 08:50:38 +0000
(08:50 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 20 Apr 2006 08:50:38 +0000
(08:50 +0000)
[r7645]
ir/ir/irhooks.h
patch
|
blob
|
history
diff --git
a/ir/ir/irhooks.h
b/ir/ir/irhooks.h
index
d0a1c17
..
580abbc
100644
(file)
--- a/
ir/ir/irhooks.h
+++ b/
ir/ir/irhooks.h
@@
-159,6
+159,9
@@
typedef struct hook_entry {
/** This hook is called after a new type was created. */
void (*_hook_new_type)(void *context, ir_type *tp);
/** This hook is called after a new type was created. */
void (*_hook_new_type)(void *context, ir_type *tp);
+
+ /** This hook is called at the end of the node info dumper to dump additional node info. */
+ void (*_hook_node_info)(void *context, FILE *f, const ir_node *n);
} hook;
/** the context for every hook */
} hook;
/** the context for every hook */
@@
-198,6
+201,7
@@
typedef enum {
hook_new_mode,
hook_new_entity,
hook_new_type,
hook_new_mode,
hook_new_entity,
hook_new_type,
+ hook_node_info,
hook_last
} hook_type_t;
hook_last
} hook_type_t;
@@
-275,6
+279,7
@@
extern hook_entry_t *hooks[hook_last];
#define hook_new_mode(tmpl, mode) hook_exec(hook_new_mode, (ctx, tmpl, mode))
#define hook_new_entity(ent) hook_exec(hook_new_entity, (ctx, ent))
#define hook_new_type(tp) hook_exec(hook_new_type, (ctx, tp))
#define hook_new_mode(tmpl, mode) hook_exec(hook_new_mode, (ctx, tmpl, mode))
#define hook_new_entity(ent) hook_exec(hook_new_entity, (ctx, ent))
#define hook_new_type(tp) hook_exec(hook_new_type, (ctx, tp))
+#define hook_node_info(F, node) hook_exec(hook_node_info, (ctx, F, node))
/* the initializer, move to hooks_t.h some day */
int firm_init_hooks(void);
/* the initializer, move to hooks_t.h some day */
int firm_init_hooks(void);