X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbespillbelady.h;h=68d9705a784744283fe651889a53341efcd4cc5f;hb=9276447aec4972df060349e162f583c4898dfec8;hp=920b477cbbcd58d7639ff4505c9e46f365c3fbec;hpb=9ade6371ce107751756515fdeef338cda59e19fe;p=libfirm diff --git a/ir/be/bespillbelady.h b/ir/be/bespillbelady.h index 920b477cb..68d9705a7 100644 --- a/ir/be/bespillbelady.h +++ b/ir/be/bespillbelady.h @@ -1,21 +1,42 @@ -/** - * Author: Daniel Grund - * Date: 20.09.2005 - * Copyright: (c) Universitaet Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. +/* + * Copyright (C) 1995-2007 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. + * + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. */ -#ifndef BESPILLBELADY_H_ -#define BESPILLBELADY_H_ - -#include "be_t.h" -#include "bechordal.h" +/** + * @file + * @brief Beladys spillalgorithm. + * @author Daniel Grund, Matthias Braun + * @date 20.09.2005 + * @version $Id$ + */ +#ifndef FIRM_BE_BESPILLBELADY_H +#define FIRM_BE_BESPILLBELADY_H +#include "beirg.h" #include "bearch.h" #include "bespill.h" -void be_spill_belady(const be_chordal_env_t *env); -/// Same as be_spill_belady but reuses an existing spill environment -void be_spill_belady_spill_env(const be_chordal_env_t *env, spill_env_t *spill_env); +/** + * Same as be_spill_belady but reuses an existing spill environment. + * This is usefull for "pre-spillers" that create some spills+reloads + * but can't ensure that regpressure never exceeds the number of registers + */ +void be_spill_belady_spill_env(be_irg_t *birg, const arch_register_class_t *cls, + spill_env_t *spill_env); -#endif /*BESPILLBELADY_H_*/ +#endif /* FIRM_BE_BESPILLBELADY_H */