firm_types.h 3.38 KB
Newer Older
Michael Beck's avatar
Michael Beck committed
1
/*
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
 *
 * This file is part of libFirm.
 *
 * This file may be distributed and/or modified under the terms of the
 * GNU General Public License version 2 as published by the Free Software
 * Foundation and appearing in the file LICENSE.GPL included in the
 * packaging of this file.
 *
 * Licensees holding valid libFirm Professional Edition licenses may use
 * this file in accordance with the libFirm Commercial License.
 * Agreement provided with the Software.
 *
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE.
Michael Beck's avatar
Michael Beck committed
18
 */
19
20
21
22
23
24
25
26
27

/**
 * @file
 * @brief      Definition of opaque firm types
 * @author     Michael Beck
 * @version    $Id$
 */
#ifndef FIRM_COMMON_FIRM_TYPES_H
#define FIRM_COMMON_FIRM_TYPES_H
Michael Beck's avatar
Michael Beck committed
28

29
30
31
32
33
34
35
36
37
#ifdef _MSC_VER
typedef          __int64 long64;
typedef unsigned __int64 ulong64;

#define LL_FMT	"i64"
#define ULL_FMT	"ui64"

#else
typedef          long long long64;
Matthias Braun's avatar
fix    
Matthias Braun committed
38
typedef unsigned long long ulong64;
39
40
41
42
43
44

#define LL_FMT	"ll"
#define ULL_FMT	"llu"

#endif /* _MSC_VER */

Michael Beck's avatar
Michael Beck committed
45
46
#ifndef _IDENT_TYPEDEF_
#define _IDENT_TYPEDEF_
Michael Beck's avatar
Michael Beck committed
47
typedef const struct _ident ident, *ir_ident_ptr;
Michael Beck's avatar
Michael Beck committed
48
49
#endif

Michael Beck's avatar
Michael Beck committed
50
51
#ifndef _IR_NODE_TYPEDEF_
#define _IR_NODE_TYPEDEF_
Michael Beck's avatar
Michael Beck committed
52
typedef struct ir_node ir_node, *ir_node_ptr;
Michael Beck's avatar
Michael Beck committed
53
54
#endif

Michael Beck's avatar
Michael Beck committed
55
56
#ifndef _IR_OP_TYPEDEF_
#define _IR_OP_TYPEDEF_
Michael Beck's avatar
Michael Beck committed
57
typedef struct ir_op ir_op, *ir_op_ptr;
Michael Beck's avatar
Michael Beck committed
58
59
#endif

Michael Beck's avatar
Michael Beck committed
60
61
#ifndef _IR_MODE_TYPEDEF_
#define _IR_MODE_TYPEDEF_
Michael Beck's avatar
Michael Beck committed
62
typedef struct ir_mode ir_mode, *ir_mode_ptr;
Michael Beck's avatar
Michael Beck committed
63
64
#endif

Michael Beck's avatar
Michael Beck committed
65
66
#ifndef _IR_EDGE_TYPEDEF_
#define _IR_EDGE_TYPEDEF_
Michael Beck's avatar
Michael Beck committed
67
typedef struct _ir_edge_t ir_edge_t, *ir_edge_ptr;
Michael Beck's avatar
Michael Beck committed
68
69
#endif

Michael Beck's avatar
Michael Beck committed
70
71
#ifndef _TARVAL_TYPEDEF_
#define _TARVAL_TYPEDEF_
Michael Beck's avatar
Michael Beck committed
72
typedef struct tarval tarval, *ir_tarval_ptr;
Michael Beck's avatar
Michael Beck committed
73
74
#endif

Michael Beck's avatar
Michael Beck committed
75
76
#ifndef _IR_ENUM_CONST_TYPEDEF_
#define _IR_ENUM_CONST_TYPEDEF_
Michael Beck's avatar
Michael Beck committed
77
typedef struct ir_enum_const ir_enum_const, *ir_enum_const_ptr;
Michael Beck's avatar
Michael Beck committed
78
79
#endif

80
81
#ifndef _IR_TYPE_TYPEDEF_
#define _IR_TYPE_TYPEDEF_
Michael Beck's avatar
Michael Beck committed
82
typedef struct ir_type ir_type, *ir_type_ptr;
Michael Beck's avatar
Michael Beck committed
83
84
85
86
#endif

#ifndef _IR_GRAPH_TYPEDEF_
#define _IR_GRAPH_TYPEDEF_
Michael Beck's avatar
Michael Beck committed
87
typedef struct ir_graph ir_graph, *ir_graph_ptr;
Michael Beck's avatar
Michael Beck committed
88
89
#endif

Michael Beck's avatar
Michael Beck committed
90
91
#ifndef _IR_LOOP_TYPEDEF_
#define _IR_LOOP_TYPEDEF_
Michael Beck's avatar
Michael Beck committed
92
typedef struct ir_loop ir_loop, *ir_loop_ptr;
Michael Beck's avatar
Michael Beck committed
93
94
#endif

Michael Beck's avatar
Michael Beck committed
95
96
97
98
99
100
101
102
103
104
#ifndef _IR_REGION_TYPEDEF_
#define _IR_REGION_TYPEDEF_
typedef struct ir_region ir_region, *ir_region_ptr;
#endif

#ifndef _IR_REG_TREE_TYPEDEF_
#define _IR_REG_TREE_TYPEDEF_
typedef struct ir_reg_tree ir_reg_tree, *ir_reg_tree_ptr;
#endif

Michael Beck's avatar
Michael Beck committed
105
106
#ifndef _ENTITY_TYPEDEF_
#define _ENTITY_TYPEDEF_
Michael Beck's avatar
Michael Beck committed
107
typedef struct ir_entity ir_entity, *ir_entity_ptr;
Michael Beck's avatar
Michael Beck committed
108
109
#endif

Michael Beck's avatar
Michael Beck committed
110
111
#ifndef _COMPOUND_GRAPH_PATH_TYPEDEF_
#define _COMPOUND_GRAPH_PATH_TYPEDEF_
Michael Beck's avatar
Michael Beck committed
112
typedef struct compound_graph_path compound_graph_path, *ir_compound_graph_path_ptr;
Michael Beck's avatar
Michael Beck committed
113
114
#endif

Michael Beck's avatar
Michael Beck committed
115
116
117
118
119
#ifndef _IR_PHASE_TYPEDEF_
#define _IR_PHASE_TYPEDEF_
typedef struct _ir_phase ir_phase, *ir_phase_ptr;
#endif

Michael Beck's avatar
Michael Beck committed
120
121
#ifndef _IR_EXTBB_TYPEDEF_
#define _IR_EXTBB_TYPEDEF_
Michael Beck's avatar
Michael Beck committed
122
typedef struct _ir_extblk ir_extblk, *ir_extblk_ptr;
Michael Beck's avatar
Michael Beck committed
123
124
#endif

Michael Beck's avatar
Michael Beck committed
125
126
127
128
129
#ifndef _IRG_WALK_FUNC_TYPEDEF_
#define _IRG_WALK_FUNC_TYPEDEF_
typedef void irg_walk_func(ir_node *, void *);
#endif

Michael Beck's avatar
Michael Beck committed
130
131
132
133
134
#ifndef _IRG_REG_WALK_FUNC_TYPEDEF_
#define _IRG_REG_WALK_FUNC_TYPEDEF_
typedef void irg_reg_walk_func(ir_region *, void *);
#endif

Michael Beck's avatar
Michael Beck committed
135
136
137
138
139
#ifndef _SEQNO_T_TYPEDEF_
#define _SEQNO_T_TYPEDEF_
typedef struct sn_entry *seqno_t;
#endif

Michael Beck's avatar
Michael Beck committed
140
141
#ifndef _EXECFREQ_TYPEDEF
#define _EXECFREQ_TYPEDEF
Michael Beck's avatar
Michael Beck committed
142
typedef struct ir_exec_freq ir_exec_freq, *ir_exec_freq_ptr;
Michael Beck's avatar
Michael Beck committed
143
144
#endif

145
#endif