X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Firdom_t.h;h=50132da5594ed1d05f7e4459b85c2c61a9936958;hb=8ca297d3fa1c84b58d71a9ec102061239159f9a7;hp=4ae7dd213a47247392bef8fe603e91ca2e937d90;hpb=5679b7b33dbf50a18c5ec8e2803fd269ac953671;p=libfirm diff --git a/ir/ana/irdom_t.h b/ir/ana/irdom_t.h index 4ae7dd213..50132da55 100644 --- a/ir/ana/irdom_t.h +++ b/ir/ana/irdom_t.h @@ -1,23 +1,46 @@ -/* Copyright (C) 2002 by Universitaet Karlsruhe -* All rights reserved. -* -* Authors: Goetz Lindenmaier -* -* irdom_t.h: private datastructures -*/ +/* + * 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. + */ -/* $Id$ */ - -# ifndef _IRDOM_T_H_ -# define _IRDOM_T_H_ +/** + * @file + * @brief Construct and access dominator tree -- private datastructures. + * @author Goetz Lindenmaier + * @date 2.2002 + * @version $Id$ + */ +#ifndef FIRM_ANA_IRDOM_T_H +#define FIRM_ANA_IRDOM_T_H #include "irdom.h" /** For dominator information */ -typedef struct dom_info { - struct ir_node *idom; /**< immediate CFG dominator */ - int pre_num; /**< pre-order graph-walk number */ - int dom_depth; /**< depth in dominator-tree */ -} dom_info; +typedef struct ir_dom_info { + ir_node *idom; /**< immediate CFG dominator */ + ir_node *next; /**< The next node in the dominated list of @c idom. */ + ir_node *first; /**< The first node in the list of nodes + this nodes dominates immediately. */ + unsigned tree_pre_num; /**< The pre-order number from a dfs walk + over the dominator tree. */ + unsigned max_subtree_pre_num; /**< The largest tree pre num found in the + dominator subtree of this node. */ + int pre_num; /**< pre-order graph-walk number */ + int dom_depth; /**< depth in dominator-tree */ +} ir_dom_info; -#endif /* _IRDOM_T_H_ */ +#endif