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.
18 * convert an integer into pointer
20 #define INT_TO_PTR(v) ((void *)((char *)0 + (v)))
23 * convert a pointer into an integer
25 #define PTR_TO_INT(v) ((int)((char *)(v) - (char *)0))
28 * The famous clear_link() walker-function.
29 * Do not implement it by yourself, use this one
31 void firm_clear_link(ir_node *n, void *env);
33 #endif /* _IRTOOLS_H_ */