X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeloopana.h;h=29778f24d9a732c62eee70572682f9a61cb8a5ed;hb=f2c2e45eb4e677fef5bf6a8e418b2a22441172d5;hp=c3b7d47b1556a4f7fc48edab15f2002129e876b4;hpb=4d5c3365a58cba59993045a9e08e686d8ae079a7;p=libfirm diff --git a/ir/be/beloopana.h b/ir/be/beloopana.h index c3b7d47b1..29778f24d 100644 --- a/ir/be/beloopana.h +++ b/ir/be/beloopana.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -18,18 +18,18 @@ */ /** - * Analyse register pressure in loops. - * @author Christian Wuerdig - * @date 2006/02/20 - * @cvsid $Id$ + * @file + * @brief Compute register pressure in loops. + * @author Christian Wuerdig + * @date 20.02.2007 + * @version $Id$ */ - -#ifndef _BELOOPANA_H_ -#define _BELOOPANA_H_ +#ifndef FIRM_BE_BELOOPANA_H +#define FIRM_BE_BELOOPANA_H #include "irloop.h" -#include "bearch_t.h" +#include "bearch.h" #include "beirg.h" typedef struct _be_loopana_t be_loopana_t; @@ -43,11 +43,14 @@ typedef struct _be_loopana_t be_loopana_t; be_loopana_t *be_new_loop_pressure_cls(be_irg_t *birg, const arch_register_class_t *cls); /** - * Compute the register pressure for all classes of all loops in the birg. + * Compute the register pressure of all loops in the birg. * @param birg The backend irg object + * @param cls register class to compute loop pressure for, + * if NULL computes for all classes * @return The loop analysis object. */ -be_loopana_t *be_new_loop_pressure(be_irg_t *birg); +be_loopana_t *be_new_loop_pressure(be_irg_t *birg, + const arch_register_class_t *cls); /** * Returns the computed register pressure for the given class and loop. @@ -60,4 +63,4 @@ unsigned be_get_loop_pressure(be_loopana_t *loop_ana, const arch_register_class_ */ void be_free_loop_pressure(be_loopana_t *loop_ana); -#endif /* _BELOOPANA_H_ */ +#endif /* FIRM_BE_BELOOPANA_H */