X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbespillbelady.h;h=68d9705a784744283fe651889a53341efcd4cc5f;hb=d5975c9df2dee13abedf388f1d70397a2163b69f;hp=dbaf1c31be25e6a2fe483b3d1ed1dd7cfef18e03;hpb=4c66ebcce62ceffb68a891142dd309429e03351a;p=libfirm diff --git a/ir/be/bespillbelady.h b/ir/be/bespillbelady.h index dbaf1c31b..68d9705a7 100644 --- a/ir/be/bespillbelady.h +++ b/ir/be/bespillbelady.h @@ -1,20 +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. + * 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 */