X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fabsgraph.h;h=577f7efb743a36dea3dcc5dcb4a205536ccc05eb;hb=3da5ed2598245b896255bc444aaa1768f6098cfe;hp=64ac08c9172203a7fd51ed0aa5fabb81e141ccc2;hpb=73660ffae4a673bc11dba89455ecba9b80938298;p=libfirm diff --git a/ir/ana/absgraph.h b/ir/ana/absgraph.h index 64ac08c91..577f7efb7 100644 --- a/ir/ana/absgraph.h +++ b/ir/ana/absgraph.h @@ -1,29 +1,47 @@ +/* + * 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. + */ + /** - * @file absgraph.h - * @date 20.04.2007 - * @author Sebastian Hack + * @file absgraph.h + * @author Sebastian Hack + * @date 20.04.2007 + * @version $Id$ + * @brief * * An abstract graph "interface". Currently * only used by the DFS facility. * * This is just that we can do some graph algos * on the CFG, dominance tree, etc. - * - * Copyright (C) 2007 Universitaet Karlsruhe - * Released under the GPL */ - -#ifndef _ABSGRAPH_H -#define _ABSGRAPH_H +#ifndef FIRM_ANA_ABSGRAPH_H +#define FIRM_ANA_ABSGRAPH_H #include "obst.h" typedef struct _absgraph_t { void *(*get_root)(void *self); void (*grow_succs)(void *self, void *node, struct obstack *obst); + void *(*get_end)(void *self); } absgraph_t; -const absgraph_t absgraph_irg_cfg_succ; -const absgraph_t absgraph_irg_cfg_pred; +extern const absgraph_t absgraph_irg_cfg_succ; +extern const absgraph_t absgraph_irg_cfg_pred; -#endif /* _ABSGRAPH_H */ +#endif /* FIRM_ANA_ABSGRAPH_H */