X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbechordal.h;h=da60b9d6b5233d450bb38ba646b277a3d7fa38f1;hb=70481aa342e22f5f285dc863b366a56393d888af;hp=853d58da380e97420c506457ff0127a2d942af2c;hpb=fffce24ca3bd902557240873edd936588b3cd265;p=libfirm diff --git a/ir/be/bechordal.h b/ir/be/bechordal.h index 853d58da3..da60b9d6b 100644 --- a/ir/be/bechordal.h +++ b/ir/be/bechordal.h @@ -1,47 +1,34 @@ - -/** - * Chordal register allocation. - * @author Sebastian Hack - * @date 14.12.2004 - */ - -#ifndef __BECHORDAL_H -#define __BECHORDAL_H - -#include "irgraph.h" -#include "irnode.h" - -#include "bearch.h" - -typedef struct _be_chordal_env_t be_chordal_env_t; - -/** - * Allocate registers for an ir graph. - * @param irg The graph. - * @return Some internal data to be freed with be_ra_chordal_done(). +/* + * 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. + * + * 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. */ -be_chordal_env_t *be_ra_chordal(ir_graph *irg, - const arch_env_t *arch_env, - const arch_register_class_t *cls); /** - * Check current register allocation for correctness. - * Interfering nodes have different colors - * Register constraints - * O(n^2) + * @file + * @brief Chordal register allocation. + * @author Sebastian Hack + * @date 14.12.2004 + * @version $Id$ */ -void be_ra_chordal_check(be_chordal_env_t *chordal_env); +#ifndef FIRM_BE_BECHORDAL_H +#define FIRM_BE_BECHORDAL_H -/** - * Free data from the chordal register allocation. - * @param irg The graph. - */ -void be_ra_chordal_done(be_chordal_env_t *info); - -/** - * Init some things for the chordal register allocator. - * This must be called before Firm is inited. - */ -void be_ra_chordal_init(void); +typedef struct be_chordal_env_t be_chordal_env_t; +typedef struct be_ra_chordal_opts_t be_ra_chordal_opts_t; +typedef struct border_t border_t; -#endif +#endif /* FIRM_BE_BECHORDAL_H */