rename type entity into ir_entity
[libfirm] / ir / ana2 / pto_ctx.h
1 /* -*- c -*- */
2
3 /*
4    Project:     libFIRM
5    File name:   ir/ana/pto_ctx.h
6    Purpose:     Manage context-sensitivity markers
7    Author:      Florian
8    Modified by:
9    Created:     Sat Nov 13 19:35:27 CET 2004
10    CVS-ID:      $Id$
11    Copyright:   (c) 1999-2004 Universität Karlsruhe
12    Licence:     This file is protected by the GPL -  GNU GENERAL PUBLIC LICENSE.
13 */
14
15
16 # ifndef _PTO_CTX_
17 # define _PTO_CTX_
18
19 # include "ecg.h"
20
21 /* ===================================================
22    Global Defines:
23    =================================================== */
24
25 /* ===================================================
26  Global Data Types:
27  =================================================== */
28
29 /* ===================================================
30    Global Prototypes:
31    =================================================== */
32 /* Find the appropriate ctx for the given call and the given graph */
33 /* ctx_info_t *find_ctx (ir_node*, graph_info_t*, ctx_info_t*); */
34 int find_ctx_idx (ir_node*, graph_info_t*, ctx_info_t*);
35
36 /* Get the current ctx */
37 ctx_info_t *get_curr_ctx (void);
38
39 /* Set the current ctx to the given ctx.  Return the old value */
40 ctx_info_t *set_curr_ctx (ctx_info_t*);
41
42 /* Set all alloc names to the right ptos */
43 void pto_ctx_allocs (graph_info_t*, int);
44
45 /* ===================================================
46    Global Variables:
47    =================================================== */
48
49
50 # endif /* not defined _PTO_CTX_ */
51
52
53 \f
54 /*
55   $Log$
56   Revision 1.3  2005/01/14 13:37:55  liekweg
57   Insert purpose descr
58
59   Revision 1.2  2004/11/20 21:21:35  liekweg
60   Add pto_ctx_allocs
61
62   Revision 1.1  2004/11/18 16:37:34  liekweg
63   rewritten
64
65
66 */