3 * File name: ir/ir/irtools.h
4 * Purpose: Some often needed tool-functions
9 * Copyright: (c) 1999-2005 Universität Karlsruhe
10 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
15 #include "firm_config.h"
18 #include <libcore/lc_opts.h>
19 lc_opt_entry_t *firm_opt_get_root(void);
26 * convert an integer into pointer
28 #define INT_TO_PTR(v) ((void *)((char *)0 + (v)))
31 * convert a pointer into an integer
33 #define PTR_TO_INT(v) ((int)((char *)(v) - (char *)0))
36 * The famous clear_link() walker-function.
37 * Do not implement it by yourself, use this one
39 void firm_clear_link(ir_node *n, void *env);
41 #endif /* _IRTOOLS_H_ */