Memory leak fixed
[libfirm] / ir / common / firm_types.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/common/firm_types.c
4  * Purpose:     Definition of opaque firm types
5  * Author:      Michael Beck
6  * Created:
7  * CVS-ID:      $Id$
8  * Copyright:   (c) 1998-2007 Universität Karlsruhe
9  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
10  */
11 #ifndef _FIRM_TYPES_H_
12 #define _FIRM_TYPES_H_
13
14 #ifdef _MSC_VER
15 typedef          __int64 long64;
16 typedef unsigned __int64 ulong64;
17
18 #define LL_FMT  "i64"
19 #define ULL_FMT "ui64"
20
21 #else
22 typedef          long long long64;
23 typedef unsigned long long ulong64;
24
25 #define LL_FMT  "ll"
26 #define ULL_FMT "llu"
27
28 #endif /* _MSC_VER */
29
30 #ifndef _IDENT_TYPEDEF_
31 #define _IDENT_TYPEDEF_
32 typedef const struct _ident ident, *ir_ident_ptr;
33 #endif
34
35 #ifndef _IR_NODE_TYPEDEF_
36 #define _IR_NODE_TYPEDEF_
37 typedef struct ir_node ir_node, *ir_node_ptr;
38 #endif
39
40 #ifndef _IR_OP_TYPEDEF_
41 #define _IR_OP_TYPEDEF_
42 typedef struct ir_op ir_op, *ir_op_ptr;
43 #endif
44
45 #ifndef _IR_MODE_TYPEDEF_
46 #define _IR_MODE_TYPEDEF_
47 typedef struct ir_mode ir_mode, *ir_mode_ptr;
48 #endif
49
50 #ifndef _IR_EDGE_TYPEDEF_
51 #define _IR_EDGE_TYPEDEF_
52 typedef struct _ir_edge_t ir_edge_t, *ir_edge_ptr;
53 #endif
54
55 #ifndef _TARVAL_TYPEDEF_
56 #define _TARVAL_TYPEDEF_
57 typedef struct tarval tarval, *ir_tarval_ptr;
58 #endif
59
60 #ifndef _IR_ENUM_CONST_TYPEDEF_
61 #define _IR_ENUM_CONST_TYPEDEF_
62 typedef struct ir_enum_const ir_enum_const, *ir_enum_const_ptr;
63 #endif
64
65 #ifndef _IR_TYPE_TYPEDEF_
66 #define _IR_TYPE_TYPEDEF_
67 typedef struct ir_type ir_type, *ir_type_ptr;
68 #endif
69
70 #ifndef _IR_GRAPH_TYPEDEF_
71 #define _IR_GRAPH_TYPEDEF_
72 typedef struct ir_graph ir_graph, *ir_graph_ptr;
73 #endif
74
75 #ifndef _IR_LOOP_TYPEDEF_
76 #define _IR_LOOP_TYPEDEF_
77 typedef struct ir_loop ir_loop, *ir_loop_ptr;
78 #endif
79
80 #ifndef _IR_REGION_TYPEDEF_
81 #define _IR_REGION_TYPEDEF_
82 typedef struct ir_region ir_region, *ir_region_ptr;
83 #endif
84
85 #ifndef _IR_REG_TREE_TYPEDEF_
86 #define _IR_REG_TREE_TYPEDEF_
87 typedef struct ir_reg_tree ir_reg_tree, *ir_reg_tree_ptr;
88 #endif
89
90 #ifndef _ENTITY_TYPEDEF_
91 #define _ENTITY_TYPEDEF_
92 typedef struct ir_entity ir_entity, *ir_entity_ptr;
93 #endif
94
95 #ifndef _COMPOUND_GRAPH_PATH_TYPEDEF_
96 #define _COMPOUND_GRAPH_PATH_TYPEDEF_
97 typedef struct compound_graph_path compound_graph_path, *ir_compound_graph_path_ptr;
98 #endif
99
100 #ifndef _IR_PHASE_TYPEDEF_
101 #define _IR_PHASE_TYPEDEF_
102 typedef struct _ir_phase ir_phase, *ir_phase_ptr;
103 #endif
104
105 #ifndef _IR_EXTBB_TYPEDEF_
106 #define _IR_EXTBB_TYPEDEF_
107 typedef struct _ir_extblk ir_extblk, *ir_extblk_ptr;
108 #endif
109
110 #ifndef _IRG_WALK_FUNC_TYPEDEF_
111 #define _IRG_WALK_FUNC_TYPEDEF_
112 typedef void irg_walk_func(ir_node *, void *);
113 #endif
114
115 #ifndef _IRG_REG_WALK_FUNC_TYPEDEF_
116 #define _IRG_REG_WALK_FUNC_TYPEDEF_
117 typedef void irg_reg_walk_func(ir_region *, void *);
118 #endif
119
120 #ifndef _SEQNO_T_TYPEDEF_
121 #define _SEQNO_T_TYPEDEF_
122 typedef struct sn_entry *seqno_t;
123 #endif
124
125 #ifndef _EXECFREQ_TYPEDEF
126 #define _EXECFREQ_TYPEDEF
127 typedef struct ir_exec_freq ir_exec_freq, *ir_exec_freq_ptr;
128 #endif
129
130 #endif /* _FIRM_TYPES_H_ */