fix
[libfirm] / ir / ana2 / pto_util.h
1 /* -*- c -*- */
2
3 /*
4  * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
5  *
6  * This file is part of libFirm.
7  *
8  * This file may be distributed and/or modified under the terms of the
9  * GNU General Public License version 2 as published by the Free Software
10  * Foundation and appearing in the file LICENSE.GPL included in the
11  * packaging of this file.
12  *
13  * Licensees holding valid libFirm Professional Edition licenses may use
14  * this file in accordance with the libFirm Commercial License.
15  * Agreement provided with the Software.
16  *
17  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
18  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19  * PURPOSE.
20  */
21
22 /**
23  * @file
24  * @brief    Utilitites for PTO
25  * @author   Florian
26  * @date     Sat Nov 13 19:35:27 CET 2004
27  * @version  $Id$
28  */
29 # ifndef FIRM_ANA2_PTO_UTIL_H
30 # define FIRM_ANA2_PTO_UTIL_H
31
32 # include "irnode.h"
33 # include "entity.h"
34
35 /* ===================================================
36    Global Defines:
37    =================================================== */
38
39 /* ===================================================
40  Global Data Types:
41  =================================================== */
42
43 /* ===================================================
44    Global Prototypes:
45    =================================================== */
46 /** Get the entity of a ptr. */
47 ir_entity *get_ptr_ent (ir_node *ptr);
48
49 /**
50  * Find the arguments of a graph. For a method that has n args, the
51  * result array has 'n+1' entries, the last of which is written NULL.
52  *
53  * @param irg  The IR graph
54  */
55 ir_node **find_irg_args (ir_graph *irg);
56
57 /* Check whether the load of the given ptr is a dummy */
58 int is_dummy_load_ptr (ir_node*);
59
60 /* ===================================================
61    Global Variables:
62    =================================================== */
63
64
65 # endif /* not defined _PTO_UTIL_ */
66
67
68 \f
69 /*
70   $Log$
71   Revision 1.8  2006/12/13 19:46:47  beck
72   rename type entity into ir_entity
73
74   Revision 1.7  2005/06/17 17:43:52  beck
75   added doxygen docu
76
77   Revision 1.6  2004/11/26 15:59:14  liekweg
78   recognize dummy loads
79
80   Revision 1.5  2004/11/24 14:53:56  liekweg
81   Bugfixes
82
83   Revision 1.4  2004/11/18 16:37:07  liekweg
84   rewrite
85
86
87 */