fix
[libfirm] / ir / ana2 / pto_ctx.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    Manage context-sensitivity markers
25  * @author   Florian
26  * @date     Sat Nov 13 19:35:27 CET 2004
27  * @version  $Id$
28  */
29 # ifndef FIRM_ANA2_PTO_CTX_H
30 # define FIRM_ANA2_PTO_CTX_H
31
32 # include "ecg.h"
33
34 /* ===================================================
35    Global Defines:
36    =================================================== */
37
38 /* ===================================================
39  Global Data Types:
40  =================================================== */
41
42 /* ===================================================
43    Global Prototypes:
44    =================================================== */
45 /* Find the appropriate ctx for the given call and the given graph */
46 /* ctx_info_t *find_ctx (ir_node*, graph_info_t*, ctx_info_t*); */
47 int find_ctx_idx (ir_node*, graph_info_t*, ctx_info_t*);
48
49 /* Get the current ctx */
50 ctx_info_t *get_curr_ctx (void);
51
52 /* Set the current ctx to the given ctx.  Return the old value */
53 ctx_info_t *set_curr_ctx (ctx_info_t*);
54
55 /* Set all alloc names to the right ptos */
56 void pto_ctx_allocs (graph_info_t*, int);
57
58 /* ===================================================
59    Global Variables:
60    =================================================== */
61
62
63 # endif
64
65
66 \f
67 /*
68   $Log$
69   Revision 1.3  2005/01/14 13:37:55  liekweg
70   Insert purpose descr
71
72   Revision 1.2  2004/11/20 21:21:35  liekweg
73   Add pto_ctx_allocs
74
75   Revision 1.1  2004/11/18 16:37:34  liekweg
76   rewritten
77
78
79 */