renamed old IrgVrfy() into new IrgVerify()
[libfirm] / ir / common / irtools.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/ir/irtools.h
4  * Purpose:     Some often needed tool-functions
5  * Author:      Michael Beck
6  * Modified by:
7  * Created:
8  * CVS-ID:      $Id$
9  * Copyright:   (c) 1999-2005 Universität Karlsruhe
10  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
11  */
12 #ifndef _IRTOOLS_H_
13 #define _IRTOOLS_H_
14
15 #include "irnode.h"
16
17 /**
18  * convert an integer into pointer
19  */
20 #define INT_TO_PTR(v)   ((void *)((char *)0 + (v)))
21
22 /**
23  * convert a pointer into an integer
24  */
25 #define PTR_TO_INT(v)   ((int)((char *)(v) - (char *)0))
26
27 /**
28  * The famous clear_link() walker-function.
29  * Do not implement it by yourself, use this one
30  */
31 void firm_clear_link(ir_node *n, void *env);
32
33 #endif /* _IRTOOLS_H_ */