libFirm
irouts.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
3  *
4  * This file is part of libFirm.
5  *
6  * This file may be distributed and/or modified under the terms of the
7  * GNU General Public License version 2 as published by the Free Software
8  * Foundation and appearing in the file LICENSE.GPL included in the
9  * packaging of this file.
10  *
11  * Licensees holding valid libFirm Professional Edition licenses may use
12  * this file in accordance with the libFirm Commercial License.
13  * Agreement provided with the Software.
14  *
15  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17  * PURPOSE.
18  */
19 
26 #ifndef FIRM_ANA_IROUTS_H
27 #define FIRM_ANA_IROUTS_H
28 
29 #include "firm_types.h"
30 #include "begin.h"
31 
41 FIRM_API unsigned get_irn_n_outs(const ir_node *node);
42 
44 FIRM_API ir_node *get_irn_out(const ir_node *def, unsigned pos);
45 
50 FIRM_API ir_node *get_irn_out_ex(const ir_node *def, unsigned pos, int *in_pos);
51 
60 FIRM_API void set_irn_out(ir_node *def, unsigned pos, ir_node *use, int in_pos);
61 
63 FIRM_API unsigned get_Block_n_cfg_outs(const ir_node *node);
64 
66 FIRM_API unsigned get_Block_n_cfg_outs_ka(const ir_node *node);
67 
69 FIRM_API ir_node *get_Block_cfg_out(const ir_node *node, unsigned pos);
70 
72 FIRM_API ir_node *get_Block_cfg_out_ka(const ir_node *node, unsigned pos);
73 
79  irg_walk_func *post, void *env);
80 
87  irg_walk_func *post, void *env);
88 
96 
99 
101 FIRM_API void free_irg_outs(ir_graph *irg);
102 
105 #include "end.h"
106 
107 #endif