X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Ftypegmod.h;h=3dcff60f4845aa324fe600bc77a8d9305c7fc257;hb=ff244fb7355c6120cf0f15ba7911b473bb91c64b;hp=38d4683184b57128ea4a1c0df00fcdd94707e5e3;hpb=f1fba3a2d9ee8c73156919fb1f31177c5d7ab8bb;p=libfirm diff --git a/ir/tr/typegmod.h b/ir/tr/typegmod.h index 38d468318..3dcff60f4 100644 --- a/ir/tr/typegmod.h +++ b/ir/tr/typegmod.h @@ -1,16 +1,18 @@ /* - * typegmod.h - * - * (C) 2001 by Universitaet Karlsruhe - * Goetz Lindenmaier - * - * $Id$ + * Project: libFIRM + * File name: ir/tr/typegmod.h + * Purpose: Functionality to modify the type graph. + * Author: Goetz Lindenmaier + * Modified by: + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 2001-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ +#ifndef _TYPEGMOD_H_ +#define _TYPEGMOD_H_ -# ifndef _TYPEGMOD_H_ -# define _TYPEGMOD_H_ - -# include "type.h" +#include "firm_types.h" /** * @@ -18,32 +20,30 @@ * This module supplies routines that support changing the type graph. */ -/** - * replaces one type by the other. +/** Replaces one type by the other. * - * Old type is replaced by new_type. All references to old_type - * now point to new_type. The memory for the old type is destroyed, - * but still used. Therefore it is not freed. - * All referenced to this memory will be lost after a certain while. - * An exception is the list of types in irp (irprog.h). - * In the future there might be a routine to recover the memory, but - * this will be at considerable runtime cost. + * Old type is replaced by new_type. All references to old_type + * now point to new_type. The memory for the old type is destroyed, + * but still used. Therefore it is not freed. + * All referenced to this memory will be lost after a certain while. + * An exception is the list of types in irp (irprog.h). + * In the future there might be a routine to recover the memory, but + * this will be at considerable runtime cost. * * @param old_type - The old type that shall be replaced by the new type. * @param new_type - The new type that will replace old_type. * */ -INLINE void exchange_types(type *old_type, type *new_type); +void exchange_types(ir_type *old_type, ir_type *new_type); -/** - * skip id types until a useful type is reached. +/** Skip id types until a useful type is reached. * - * @param tp - A type of arbitrary kind. + * @param tp - A type of arbitrary kind. * - * @return - * tp if it is not an id type. - * If tp is an id type returns the real type it stands for. + * @return + * tp if it is not an id type. + * If tp is an id type returns the real type it stands for. */ -INLINE type *skip_tid(type *tp); +ir_type *skip_tid(ir_type *tp); -# endif /*_TYPEGMOD_H_ */ +#endif /*_TYPEGMOD_H_ */