X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeuses.h;h=17b838ac0217a3417e8a0bedaf7d0dc1f4be48d4;hb=4d808298b72e72bd06c7466e837dd9dda4eb1070;hp=5a63f95d47d83c0cf33f63cbbf90b5c4197bdc67;hpb=205396c4f4f5abe7abd6dc2350c8c398a7623afc;p=libfirm diff --git a/ir/be/beuses.h b/ir/be/beuses.h index 5a63f95d4..17b838ac0 100644 --- a/ir/be/beuses.h +++ b/ir/be/beuses.h @@ -1,26 +1,43 @@ -/** - * @file beuse.h - * @date 27.06.2005 - * @author Sebastian Hack, Matthias Braun +/* + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. * - * Determine future usages of values. + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. * - * Copyright (C) 2005 Universitaet Karlsruhe - * Released under the GPL + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. + */ + +/** + * @file + * @brief Methods to compute when a value will be used again. + * @author Sebastian Hack, Matthias Braun + * @date 27.06.2005 + * @version $Id$ */ -#ifndef _BEUSES_H -#define _BEUSES_H +#ifndef FIRM_BE_BEUSES_H +#define FIRM_BE_BEUSES_H -#include "bearch_t.h" +#include "firm_types.h" #include "belive.h" typedef struct _be_next_use_t { - unsigned time; - int outermost_loop; + unsigned time; + int outermost_loop; + const ir_node *before; } be_next_use_t; -#define USES_INFINITY 10000000 -#define USES_PENDING 9999999 +#define USES_INFINITY 10000000 +#define USES_PENDING 9999999 static INLINE int USES_IS_INFINITE(unsigned time) { @@ -42,4 +59,4 @@ be_uses_t *be_begin_uses(ir_graph *irg, const be_lv_t *lv); void be_end_uses(be_uses_t *uses); -#endif /* _BEUSES_H */ +#endif /* FIRM_BE_BEUSES_H */