9 /****h* libfirm/typegmod
14 * (C) 2001 by Universitaet Karlsruhe
18 * This module supplies routines that support changing the type graph.
22 /****f* tpop/exchange_types
25 * exchange_types -- replaces one type by the other.
27 * void exchange_types(type *old_type, type *new_type);
29 * The old type that shall be replaced by the new type.
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.
40 inline void exchange_types(type *old_type, type *new_type);
45 * skip_tid -- skip id types until a useful type is reached.
47 * type *skip_tid(type *tp)
49 * A type of arbitrary kind.
51 * tp if it is not an id type.
52 * If tp is an id type retruns the real type it stands for.
55 inline type *skip_tid(type *tp);
57 # endif /*_TYPEGMOD_H_ */