d6490b46975897f13342000e1e7f1ad73a0c02cc
[libfirm] / ir / tr / typegmod.h
1
2 # ifndef _TYPEGMOD_H_
3 # define _TYPEGMOD_H_
4
5 # include "type.h"
6
7 /****h* libfirm/typegmod
8  *
9  * NAME
10  *  file typegmod.h
11  * COPYRIGHT
12  *   (C) 2001 by Universitaet Karlsruhe
13  * AUTHORS
14  *   Goetz Lindenmaier
15  * NOTES
16  *  This module supplies routines that support changing the type graph.
17  *****
18  */
19
20 /****f* tpop/exchange_types
21  *
22  * NAME
23  *   exchange_types -- replaces one type by the other.
24  * SYNOPSIS
25  *   void exchange_types(type *old_type, type *new_type);
26  * INPUTS
27  *   The old type that shall be replaced by the new type.
28  * SIDE EFFECTS
29  *   Old type is replaced by new_type.  All references to old_type
30  *   now point to new_type.  The memory for the old type is destroyed,
31  *   but still used.  Therefore it is not freed.  The memory will
32  *   be lost after a certain while.
33  *   In the future there might be a routine to recover the memory, but
34  *   this will be at considerable runtime cost.
35  ***
36  */
37 inline void exchange_types(type *old_type, type *new_type);
38
39
40 # endif /*_TYPEGMOD_H_ */