X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbespilloptions.h;h=14baab4806a4764771e00d70d0ce20055e2d9522;hb=9276447aec4972df060349e162f583c4898dfec8;hp=53fbe9b84ebd352d3b597fde1afc595f2d6c8e19;hpb=da48a7f7266cfe6274fc4d159d63bba245724222;p=libfirm diff --git a/ir/be/bespilloptions.h b/ir/be/bespilloptions.h index 53fbe9b84..14baab480 100644 --- a/ir/be/bespilloptions.h +++ b/ir/be/bespilloptions.h @@ -1,13 +1,43 @@ /* - * Author: Matthias Braun - * Date: 12.10.2006 - * 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 BESPILL_OPTIONS_H_ -#define BESPILL_OPTIONS_H_ + +/** + * @file + * @brief Option handling for spiller. + * @author Matthias Braun + * @date 12.10.2006 + * @version $Id$ + */ +#ifndef FIRM_BE_BESPILL_OPTIONS_H +#define FIRM_BE_BESPILL_OPTIONS_H + +#include "bearch.h" +#include "beirg.h" extern int be_coalesce_spill_slots; extern int be_do_remats; -#endif +typedef struct be_spiller_t { + void (*spill) (be_irg_t *birg, const arch_register_class_t *cls); +} be_spiller_t; +void be_register_spiller(const char *name, be_spiller_t *spiller); + +void be_do_spill(be_irg_t *birg, const arch_register_class_t *cls); + +#endif /* FIRM_BE_BESPILL_OPTIONS_H */