Changes to avoid compiler warnings.
[libfirm] / ir / tr / typegmod.h
1
2 /* $Id$ */
3
4 # ifndef _TYPEGMOD_H_
5 # define _TYPEGMOD_H_
6
7 # include "type.h"
8
9 /****h* libfirm/typegmod
10  *
11  * NAME
12  *  file typegmod.h
13  * COPYRIGHT
14  *   (C) 2001 by Universitaet Karlsruhe
15  * AUTHORS
16  *   Goetz Lindenmaier
17  * NOTES
18  *  This module supplies routines that support changing the type graph.
19  *****
20  */
21
22 /****f* tpop/exchange_types
23  *
24  * NAME
25  *   exchange_types -- replaces one type by the other.
26  * SYNOPSIS
27  *   void exchange_types(type *old_type, type *new_type);
28  * INPUTS
29  *   The old type that shall be replaced by the new type.
30  * SIDE EFFECTS
31  *   Old type is replaced by new_type.  All references to old_type
32  *   now point to new_type.  The memory for the old type is destroyed,
33  *   but still used.  Therefore it is not freed.
34  *   All referenced to this memory will be lost after a certain while.
35  *   An exception is the list of types in irp (irprog.h).
36  *   In the future there might be a routine to recover the memory, but
37  *   this will be at considerable runtime cost.
38  ***
39  */
40 inline void exchange_types(type *old_type, type *new_type);
41
42 /****f* tpop/skip_tid
43  *
44  * NAME
45  *   skip_tid -- skip id types until a useful type is reached.
46  * SYNOPSIS
47  *   type *skip_tid(type *tp)
48  * INPUTS
49  *   A type of arbitrary kind.
50  * RETURNS
51  *   tp if it is not an id type.
52  *   If tp is an id type retruns the real type it stands for.
53  ***
54  */
55 inline type *skip_tid(type *tp);
56
57 # endif /*_TYPEGMOD_H_ */