added flags and set/get functions indicating if we are in block walk or irg walk
[libfirm] / ir / ir / irgraph_t.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/ir/irgraph.c
4  * Purpose:     Entry point to the representation of procedure code -- internal header.
5  * Author:      Martin Trapp, Christian Schaefer
6  * Modified by: Goetz Lindenmaier, Michael Beck
7  * Created:
8  * CVS-ID:      $Id$
9  * Copyright:   (c) 1998-2007 Universität Karlsruhe
10  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
11  */
12
13 /**
14  * @file irgraph_t.h
15  *
16  * IR graph construction.
17  */
18 #ifndef _IRGRAPH_T_H_
19 #define _IRGRAPH_T_H_
20
21 #include "firm_types.h"
22 #include "irgraph.h"
23
24 #include "firm_common_t.h"
25 #include "irtypeinfo.h"
26 #include "irprog.h"
27 #include "pseudo_irg.h"
28 #include "type_t.h"
29 #include "entity_t.h"
30 #include "typegmod.h"
31 #include "tr_inheritance.h"
32 #include "iredgekinds.h"
33 #include "irmemory.h"
34
35 #include "irloop.h"
36 #include "execution_frequency.h"
37
38 #include "obst.h"
39 #include "pset.h"
40 #include "set.h"
41
42 /** Prefix that is added to every frame type. */
43 #define FRAME_TP_SUFFIX "frame_tp"
44
45 /**
46  * Edge info to put into an irg.
47  */
48 typedef struct _irg_edge_info_t {
49   set      *edges;         /**< a set containing all edges of a graph. */
50   unsigned activated : 1;  /**< set if edges are activated for the graph. */
51 } irg_edge_info_t;
52
53 typedef irg_edge_info_t irg_edges_info_t[EDGE_KIND_LAST];
54
55 /**
56  * Index constants for nodes that can be accessed through the graph itself.
57  */
58 enum irg_anchors {
59   anchor_start_block = 0,  /**< block the start node will belong to */
60   anchor_start,            /**< start node of this ir_graph */
61   anchor_end_block,        /**< block the end node will belong to */
62   anchor_end,              /**< end node of this ir_graph */
63   anchor_end_reg,          /**< end node of this ir_graph */
64   anchor_end_except,       /**< end node of this ir_graph */
65   anchor_frame,            /**< method's frame */
66   anchor_globals,          /**< pointer to the data segment containing all
67                                 globals as well as global procedures. */
68   anchor_tls,              /**< pointer to the thread local storage containing all
69                                 thread local data. */
70   anchor_initial_mem,      /**< initial memory of this graph */
71   anchor_args,             /**< methods arguments */
72   anchor_value_param_base, /**< method value param base */
73   anchor_bad,              /**< bad node of this ir_graph, the one and
74                                 only in this graph */
75   anchor_no_mem,           /**< NoMem node of this ir_graph, the one and only in this graph */
76   anchor_max
77 };
78
79 /**
80  * An ir_graph holds all information for a procedure.
81  */
82 struct ir_graph {
83   firm_kind         kind;        /**< Always set to k_ir_graph. */
84   /* --  Basics of the representation -- */
85   ir_entity  *ent;               /**< The entity of this procedure, i.e.,
86                                       the type of the procedure and the
87                                       class it belongs to. */
88   ir_type *frame_type;           /**< A class type representing the stack frame.
89                                       Can include "inner" methods. */
90   ir_node *anchors[anchor_max];  /**< List of anchor nodes. */
91   ir_node **proj_args;           /**< Projs of the methods arguments. */
92   struct obstack *obst;          /**< The obstack where all of the ir_nodes live. */
93   ir_node *current_block;        /**< Current block for newly gen_*()-erated ir_nodes. */
94   struct obstack *extbb_obst;    /**< The obstack for extended basic block info. */
95
96   unsigned last_node_idx;        /**< The last IR node index for this graph. */
97
98   /* -- Fields for graph properties -- */
99   irg_inline_property inline_property;     /**< How to handle inlineing. */
100   unsigned additional_properties;          /**< Additional graph properties. */
101
102   /* -- Fields indicating different states of irgraph -- */
103   irg_phase_state phase_state;       /**< Compiler phase. */
104   op_pin_state irg_pinned_state;     /**< Flag for status of nodes. */
105   irg_outs_state outs_state;         /**< Out edges. */
106   irg_dom_state dom_state;           /**< Dominator state information. */
107   irg_dom_state pdom_state;          /**< Post Dominator state information. */
108   ir_typeinfo_state typeinfo_state;        /**< Validity of type information. */
109   irg_callee_info_state callee_info_state; /**< Validity of callee information. */
110   irg_loopinfo_state loopinfo_state;       /**< State of loop information. */
111   ir_class_cast_state class_cast_state;    /**< Kind of cast operations in code. */
112   irg_extblk_info_state extblk_state;      /**< State of extended basic block info. */
113   exec_freq_state execfreq_state;          /**< Execution frequency state. */
114   ir_address_taken_computed_state adr_taken_state;  /**< Address taken state. */
115   unsigned mem_disambig_opt;               /**< Options for the memory disambiguator. */
116   unsigned fp_model;                       /**< floating point model of the graph. */
117
118   /* -- Fields for construction -- */
119 #if USE_EXPLICIT_PHI_IN_STACK
120   struct Phi_in_stack *Phi_in_stack; /**< Needed for automatic Phi construction. */
121 #endif
122   int n_loc;                         /**< Number of local variables in this
123                                           procedure including procedure parameters. */
124   void **loc_descriptions;           /**< Storage for local variable descriptions. */
125
126   /* -- Fields for optimizations / analysis information -- */
127   pset *value_table;                 /**< Hash table for global value numbering (cse)
128                                           for optimizing use in iropt.c */
129   ir_node **outs;                    /**< Space for the out arrays. */
130
131   ir_loop *loop;                     /**< The outermost loop for this graph. */
132   void *link;                        /**< A void* field to link any information to
133                                           the node. */
134
135   ir_graph **callers;                /**< For callgraph analysis. */
136   unsigned char *caller_isbe;        /**< For callgraph analysis: set if backedge. */
137   ir_graph **callees;                /**< For callgraph analysis. */
138   unsigned char *callee_isbe;        /**< For callgraph analysis: set if backedge. */
139   int        callgraph_loop_depth;         /**< For callgraph analysis */
140   int        callgraph_recursion_depth;    /**< For callgraph analysis */
141   double     method_execution_frequency;   /**< For callgraph analysis */
142
143   ir_loop   *l;
144
145   /* -- Fields for Walking the graph -- */
146   unsigned long visited;             /**< this flag is an identifier for
147                     ir walk. it will be incremented
148                     every time someone walks through
149                     the graph */
150   unsigned long block_visited;       /**< same as visited, for a complete block */
151   unsigned inside_irg_walk   : 1;    /**< set to 1 if we are currently in an irg walk */
152   unsigned inside_block_walk : 1;    /**< set to 1 if we are currently in a block walk */
153   unsigned estimated_node_count;     /**< estimated number of nodes in this graph,
154                                           updated after every walk */
155   irg_edges_info_t edge_info;        /**< edge info for automatic outs */
156   ir_node **idx_irn_map;             /**< Array mapping node indexes to nodes. */
157
158 #ifdef DEBUG_libfirm
159   int             n_outs;            /**< Size wasted for outs */
160   long graph_nr;                     /**< a unique graph number for each graph to make output
161                                           readable. */
162 #endif
163
164 };
165
166 /**
167  * Initializes the graph construction module
168  */
169 void firm_init_irgraph(void);
170
171 /* Internal constructor that does not add to irp_irgs or the like. */
172 ir_graph *new_r_ir_graph (ir_entity *ent, int n_loc);
173
174 /** Make a rudimentary ir graph for the constant code.
175    Must look like a correct irg, spare everything else. */
176 ir_graph *new_const_code_irg(void);
177
178 /**
179  * Set the op_pin_state_pinned state of a graph.
180  *
181  * @param irg     the IR graph
182  * @param p       new pin state
183  */
184 INLINE void
185 set_irg_pinned (ir_graph *irg, op_pin_state p);
186
187 /** Returns the obstack associated with the graph. */
188 struct obstack *get_irg_obstack(const ir_graph *irg);
189
190 /**
191  * Returns true if the node n is allocated on the storage of graph irg.
192  *
193  * @param irg   the IR graph
194  * @param n the IR node
195  */
196 int node_is_in_irgs_storage(ir_graph *irg, ir_node *n);
197
198 /*-------------------------------------------------------------------*/
199 /* inline functions for graphs                                       */
200 /*-------------------------------------------------------------------*/
201
202 extern int firm_interprocedural_view;
203
204 static INLINE int
205 _get_interprocedural_view(void) {
206   return firm_interprocedural_view;
207 }
208
209 static INLINE int
210 _is_ir_graph(const void *thing) {
211   return (get_kind(thing) == k_ir_graph);
212 }
213
214 /** Returns the start block of a graph. */
215 static INLINE ir_node *
216 _get_irg_start_block(const ir_graph *irg) {
217   return irg->anchors[anchor_start_block];
218 }
219
220 static INLINE void
221 _set_irg_start_block(ir_graph *irg, ir_node *node) {
222   irg->anchors[anchor_start_block] = node;
223 }
224
225 static INLINE ir_node *
226 _get_irg_start(const ir_graph *irg) {
227   return irg->anchors[anchor_start];
228 }
229
230 static INLINE void
231 _set_irg_start(ir_graph *irg, ir_node *node) {
232   irg->anchors[anchor_start] = node;
233 }
234
235 static INLINE ir_node *
236 _get_irg_end_block(const ir_graph *irg) {
237   return irg->anchors[anchor_end_block];
238 }
239
240 static INLINE void
241 _set_irg_end_block(ir_graph *irg, ir_node *node) {
242   irg->anchors[anchor_end_block] = node;
243 }
244
245 static INLINE ir_node *
246 _get_irg_end(const ir_graph *irg) {
247   return irg->anchors[anchor_end];
248 }
249
250 static INLINE void
251 _set_irg_end(ir_graph *irg, ir_node *node) {
252   irg->anchors[anchor_end] = node;
253 }
254
255 static INLINE ir_node *
256 _get_irg_end_reg(const ir_graph *irg) {
257   return irg->anchors[anchor_end_reg];
258 }
259
260 static INLINE ir_node *
261 _get_irg_end_except (const ir_graph *irg) {
262   return irg->anchors[anchor_end_except];
263 }
264
265 static INLINE ir_node *
266 _get_irg_frame(const ir_graph *irg) {
267   return irg->anchors[anchor_frame];
268 }
269
270 static INLINE void
271 _set_irg_frame(ir_graph *irg, ir_node *node) {
272   irg->anchors[anchor_frame] = node;
273 }
274
275 static INLINE ir_node *
276 _get_irg_globals(const ir_graph *irg) {
277   return irg->anchors[anchor_globals];
278 }
279
280 static INLINE void
281 _set_irg_globals(ir_graph *irg, ir_node *node) {
282   irg->anchors[anchor_globals] = node;
283 }
284
285 static INLINE ir_node *
286 _get_irg_tls(const ir_graph *irg) {
287   return irg->anchors[anchor_tls];
288 }
289
290 static INLINE void
291 _set_irg_tls(ir_graph *irg, ir_node *node) {
292   irg->anchors[anchor_tls] = node;
293 }
294
295 static INLINE ir_node *
296 _get_irg_initial_mem(const ir_graph *irg) {
297   return irg->anchors[anchor_initial_mem];
298 }
299
300 static INLINE void
301 _set_irg_initial_mem(ir_graph *irg, ir_node *node) {
302   irg->anchors[anchor_initial_mem] = node;
303 }
304
305 static INLINE ir_node *
306 _get_irg_args(const ir_graph *irg) {
307   return irg->anchors[anchor_args];
308 }
309
310 static INLINE void
311 _set_irg_args(ir_graph *irg, ir_node *node) {
312   irg->anchors[anchor_args] = node;
313 }
314
315 static INLINE ir_node *
316 _get_irg_value_param_base(const ir_graph *irg) {
317   return irg->anchors[anchor_value_param_base];
318 }
319
320 static INLINE void
321 _set_irg_value_param_base(ir_graph *irg, ir_node *node) {
322   irg->anchors[anchor_value_param_base] = node;
323 }
324
325 static INLINE ir_node **
326 _get_irg_proj_args(const ir_graph *irg) {
327   return irg->proj_args;
328 }
329
330 static INLINE void
331 _set_irg_proj_args(ir_graph *irg, ir_node **nodes) {
332   irg->proj_args = nodes;
333 }
334
335 static INLINE ir_node *
336 _get_irg_bad(const ir_graph *irg) {
337   return irg->anchors[anchor_bad];
338 }
339
340 static INLINE void
341 _set_irg_bad(ir_graph *irg, ir_node *node) {
342   irg->anchors[anchor_bad] = node;
343 }
344
345 static INLINE ir_node *
346 _get_irg_no_mem(const ir_graph *irg) {
347   return irg->anchors[anchor_no_mem];
348 }
349
350 static INLINE void
351 _set_irg_no_mem(ir_graph *irg, ir_node *node) {
352   irg->anchors[anchor_no_mem] = node;
353 }
354 static INLINE ir_node *
355 _get_irg_current_block(const ir_graph *irg) {
356   return irg->current_block;
357 }
358
359 static INLINE void
360 _set_irg_current_block(ir_graph *irg, ir_node *node) {
361   irg->current_block = node;
362 }
363
364 static INLINE ir_entity *
365 _get_irg_entity(const ir_graph *irg) {
366   assert(irg && irg->ent);
367   return irg->ent;
368 }
369
370 static INLINE void
371 _set_irg_entity(ir_graph *irg, ir_entity *ent) {
372   irg->ent = ent;
373 }
374
375 static INLINE ir_type *
376 _get_irg_frame_type(ir_graph *irg) {
377   assert(irg && irg->frame_type);
378   return irg->frame_type = skip_tid(irg->frame_type);
379 }
380
381 static INLINE void
382 _set_irg_frame_type(ir_graph *irg, ir_type *ftp) {
383   assert(is_frame_type(ftp));
384   irg->frame_type = ftp;
385 }
386
387 static INLINE struct obstack *
388 _get_irg_obstack(const ir_graph *irg) {
389   return irg->obst;
390 }
391
392
393 static INLINE irg_phase_state
394 _get_irg_phase_state(const ir_graph *irg) {
395   return irg->phase_state;
396 }
397
398 static INLINE void
399 _set_irg_phase_state(ir_graph *irg, irg_phase_state state) {
400   irg->phase_state = state;
401 }
402
403 static INLINE op_pin_state
404 _get_irg_pinned(const ir_graph *irg) {
405   return irg->irg_pinned_state;
406 }
407
408 static INLINE irg_outs_state
409 _get_irg_outs_state(const ir_graph *irg) {
410   return irg->outs_state;
411 }
412
413 static INLINE void
414 _set_irg_outs_inconsistent(ir_graph *irg) {
415   if (irg->outs_state == outs_consistent)
416     irg->outs_state = outs_inconsistent;
417 }
418
419 static INLINE irg_extblk_state
420 _get_irg_extblk_state(const ir_graph *irg) {
421   return irg->extblk_state;
422 }
423
424 static INLINE void
425 _set_irg_extblk_inconsistent(ir_graph *irg) {
426   if (irg->extblk_state == extblk_valid)
427     irg->extblk_state = extblk_invalid;
428 }
429
430 static INLINE irg_dom_state
431 _get_irg_dom_state(const ir_graph *irg) {
432   return irg->dom_state;
433 }
434
435 static INLINE irg_dom_state
436 _get_irg_postdom_state(const ir_graph *irg) {
437   return irg->pdom_state;
438 }
439
440 static INLINE void
441 _set_irg_doms_inconsistent(ir_graph *irg) {
442   if (irg->dom_state != dom_none)
443     irg->dom_state = dom_inconsistent;
444   if (irg->pdom_state != dom_none)
445     irg->pdom_state = dom_inconsistent;
446 }
447
448 static INLINE irg_loopinfo_state
449 _get_irg_loopinfo_state(const ir_graph *irg) {
450   return irg->loopinfo_state;
451 }
452
453 static INLINE void
454 _set_irg_loopinfo_state(ir_graph *irg, irg_loopinfo_state s) {
455   irg->loopinfo_state = s;
456 }
457
458 static INLINE void
459 _set_irg_loopinfo_inconsistent(ir_graph *irg) {
460   irg->loopinfo_state &= ~loopinfo_valid;
461 }
462
463 static INLINE void
464 _set_irg_pinned(ir_graph *irg, op_pin_state p) {
465   irg->irg_pinned_state = p;
466 }
467
468 static INLINE irg_callee_info_state
469 _get_irg_callee_info_state(const ir_graph *irg) {
470   return irg->callee_info_state;
471 }
472
473 static INLINE void
474 _set_irg_callee_info_state(ir_graph *irg, irg_callee_info_state s) {
475   irg_callee_info_state irp_state = get_irp_callee_info_state();
476
477   irg->callee_info_state = s;
478
479   /* I could compare ... but who knows? */
480   if ((irp_state == irg_callee_info_consistent)  ||
481       ((irp_state == irg_callee_info_inconsistent) && (s == irg_callee_info_none)))
482       set_irp_callee_info_state(s);
483 }
484
485 static INLINE irg_inline_property
486 _get_irg_inline_property(const ir_graph *irg) {
487   return irg->inline_property;
488 }
489
490 static INLINE void
491 _set_irg_inline_property(ir_graph *irg, irg_inline_property s) {
492   irg->inline_property = s;
493 }
494
495 static INLINE unsigned
496 _get_irg_additional_properties(const ir_graph *irg) {
497   if (irg->additional_properties & mtp_property_inherited)
498     return get_method_additional_properties(get_entity_type(irg->ent));
499   return irg->additional_properties;
500 }
501
502 static INLINE void
503 _set_irg_additional_properties(ir_graph *irg, unsigned mask) {
504   /* do not allow to set the mtp_property_inherited flag or
505    * the automatic inheritance of flags will not work */
506   irg->additional_properties = mask & ~mtp_property_inherited;
507 }
508
509 static INLINE void
510 _set_irg_additional_property(ir_graph *irg, mtp_additional_property flag) {
511   unsigned prop = irg->additional_properties;
512
513   if (prop & mtp_property_inherited)
514     prop = get_method_additional_properties(get_entity_type(irg->ent));
515   irg->additional_properties = prop | flag;
516 }
517
518 static INLINE void
519 _set_irg_link(ir_graph *irg, void *thing) {
520   irg->link = thing;
521 }
522
523 static INLINE void *
524 _get_irg_link(const ir_graph *irg) {
525   return irg->link;
526 }
527
528 static INLINE unsigned long
529 _get_irg_visited(const ir_graph *irg) {
530   return irg->visited;
531 }
532
533 static INLINE unsigned long
534 _get_irg_block_visited(const ir_graph *irg) {
535   return irg->block_visited;
536 }
537
538 static INLINE void
539 _set_irg_block_visited(ir_graph *irg, unsigned long visited) {
540   irg->block_visited = visited;
541 }
542
543 static INLINE void
544 _inc_irg_block_visited(ir_graph *irg) {
545   ++irg->block_visited;
546 }
547
548 static INLINE void
549 _dec_irg_block_visited(ir_graph *irg) {
550   --irg->block_visited;
551 }
552
553 static INLINE void
554 _set_inside_block_walk(ir_graph *irg) {
555   irg->inside_block_walk = 1;
556 }
557
558 static INLINE void
559 _clear_inside_block_walk(ir_graph *irg) {
560   irg->inside_block_walk = 0;
561 }
562
563 static INLINE unsigned
564 _inside_block_walk(const ir_graph *irg) {
565   return irg->inside_block_walk;
566 }
567
568 static INLINE void
569 _set_inside_irg_walk(ir_graph *irg) {
570   irg->inside_irg_walk = 1;
571 }
572
573 static INLINE void
574 _clear_inside_irg_walk(ir_graph *irg) {
575   irg->inside_irg_walk = 0;
576 }
577
578 static INLINE unsigned
579 _inside_irg_walk(const ir_graph *irg) {
580   return irg->inside_irg_walk;
581 }
582
583 static INLINE unsigned
584 _get_irg_estimated_node_cnt(const ir_graph *irg) {
585   return irg->estimated_node_count;
586 }
587
588 /* Return the floating point model of this graph. */
589 static INLINE unsigned
590 _get_irg_fp_model(const ir_graph *irg) {
591         return irg->fp_model;
592 }
593
594 /**
595  * Allocates a new idx in the irg for the node and adds the irn to the idx -> irn map.
596  * @param irg The graph.
597  * @param irn The node.
598  * @return    The index allocated for the node.
599  */
600 static INLINE unsigned
601 irg_register_node_idx(ir_graph *irg, ir_node *irn)
602 {
603         unsigned idx = irg->last_node_idx++;
604         if(idx >= (unsigned) ARR_LEN(irg->idx_irn_map))
605                 ARR_RESIZE(ir_node *, irg->idx_irn_map, idx + 1);
606
607         irg->idx_irn_map[idx] = irn;
608         return idx;
609 }
610
611 /**
612  * Kill a node from the irg. BEWARE: this kills
613  * all later created nodes.
614  */
615 static INLINE void
616 irg_kill_node(ir_graph *irg, ir_node *n) {
617         unsigned idx = get_irn_idx(n);
618         if (idx + 1 == irg->last_node_idx)
619                 --irg->last_node_idx;
620         irg->idx_irn_map[idx] = NULL;
621         obstack_free(irg->obst, n);
622 }
623
624 /**
625  * Get the node for an index.
626  * @param irg The graph.
627  * @param idx The index you want the node for.
628  * @return    The node with that index or NULL, if there is no node with that index.
629  * @note      The node you got might be dead.
630  */
631 static INLINE ir_node *
632 get_idx_irn(ir_graph *irg, unsigned idx) {
633         assert(idx < (unsigned) ARR_LEN(irg->idx_irn_map));
634         return irg->idx_irn_map[idx];
635 }
636
637 #define get_interprocedural_view()            _get_interprocedural_view()
638 #define is_ir_graph(thing)                    _is_ir_graph(thing)
639 #define get_irg_start_block(irg)              _get_irg_start_block(irg)
640 #define set_irg_start_block(irg, node)        _set_irg_start_block(irg, node)
641 #define get_irg_start(irg)                    _get_irg_start(irg)
642 #define set_irg_start(irg, node)              _set_irg_start(irg, node)
643 #define get_irg_end_block(irg)                _get_irg_end_block(irg)
644 #define set_irg_end_block(irg, node)          _set_irg_end_block(irg, node)
645 #define get_irg_end(irg)                      _get_irg_end(irg)
646 #define set_irg_end(irg, node)                _set_irg_end(irg, node)
647 #define get_irg_end_reg(irg)                  _get_irg_end_reg(irg)
648 #define get_irg_end_except(irg)               _get_irg_end_except(irg)
649 #define get_irg_frame(irg)                    _get_irg_frame(irg)
650 #define set_irg_frame(irg, node)              _set_irg_frame(irg, node)
651 #define get_irg_globals(irg)                  _get_irg_globals(irg)
652 #define set_irg_globals(irg, node)            _set_irg_globals(irg, node)
653 #define get_irg_tls(irg)                      _get_irg_tls(irg)
654 #define set_irg_tls(irg, node)                _set_irg_tls(irg, node)
655 #define get_irg_initial_mem(irg)              _get_irg_initial_mem(irg)
656 #define set_irg_initial_mem(irg, node)        _set_irg_initial_mem(irg, node)
657 #define get_irg_args(irg)                     _get_irg_args(irg)
658 #define set_irg_args(irg, node)               _set_irg_args(irg, node)
659 #define get_irg_value_param_base(irg)         _get_irg_value_param_base(irg)
660 #define set_irg_value_param_base(irg, node)   _set_irg_value_param_base(irg, node)
661 #define get_irg_bad(irg)                      _get_irg_bad(irg)
662 #define set_irg_bad(irg, node)                _set_irg_bad(irg, node)
663 #define get_irg_no_mem(irg)                   _get_irg_no_mem(irg)
664 #define set_irg_no_mem(irg, node)             _set_irg_no_mem(irg, node)
665 #define get_irg_current_block(irg)            _get_irg_current_block(irg)
666 #define set_irg_current_block(irg, node)      _set_irg_current_block(irg, node)
667 #define get_irg_entity(irg)                   _get_irg_entity(irg)
668 #define set_irg_entity(irg, ent)              _set_irg_entity(irg, ent)
669 #define get_irg_frame_type(irg)               _get_irg_frame_type(irg)
670 #define set_irg_frame_type(irg, ftp)          _set_irg_frame_type(irg, ftp)
671 #define get_irg_obstack(irg)                  _get_irg_obstack(irg)
672 #define get_irg_phase_state(irg)              _get_irg_phase_state(irg)
673 #define set_irg_phase_state(irg, state)       _set_irg_phase_state(irg, state)
674 #define get_irg_pinned(irg)                   _get_irg_pinned(irg)
675 #define get_irg_outs_state(irg)               _get_irg_outs_state(irg)
676 #define set_irg_outs_inconsistent(irg)        _set_irg_outs_inconsistent(irg)
677 #define get_irg_extblk_state(irg)             _get_irg_extblk_state(irg)
678 #define set_irg_extblk_inconsistent(irg)      _set_irg_extblk_inconsistent(irg)
679 #define get_irg_dom_state(irg)                _get_irg_dom_state(irg)
680 #define get_irg_postdom_state(irg)            _get_irg_postdom_state(irg)
681 #define set_irg_doms_inconsistent(irg)        _set_irg_doms_inconsistent(irg)
682 #define get_irg_loopinfo_state(irg)           _get_irg_loopinfo_state(irg)
683 #define set_irg_loopinfo_state(irg, s)        _set_irg_loopinfo_state(irg, s)
684 #define set_irg_loopinfo_inconsistent(irg)    _set_irg_loopinfo_inconsistent(irg)
685 #define set_irg_pinned(irg, p)                _set_irg_pinned(irg, p)
686 #define get_irg_callee_info_state(irg)        _get_irg_callee_info_state(irg)
687 #define set_irg_callee_info_state(irg, s)     _set_irg_callee_info_state(irg, s)
688 #define get_irg_inline_property(irg)          _get_irg_inline_property(irg)
689 #define set_irg_inline_property(irg, s)       _set_irg_inline_property(irg, s)
690 #define get_irg_additional_properties(irg)    _get_irg_additional_properties(irg)
691 #define set_irg_additional_properties(irg, m) _set_irg_additional_properties(irg, m)
692 #define set_irg_additional_property(irg, f)   _set_irg_additional_property(irg, f)
693 #define set_irg_link(irg, thing)              _set_irg_link(irg, thing)
694 #define get_irg_link(irg)                     _get_irg_link(irg)
695 #define get_irg_visited(irg)                  _get_irg_visited(irg)
696 #define get_irg_block_visited(irg)            _get_irg_block_visited(irg)
697 #define set_irg_block_visited(irg, v)         _set_irg_block_visited(irg, v)
698 #define inc_irg_block_visited(irg)            _inc_irg_block_visited(irg)
699 #define dec_irg_block_visited(irg)            _dec_irg_block_visited(irg)
700 #define set_inside_block_walk(irg)            _set_inside_block_walk(irg)
701 #define clear_inside_block_walk(irg)          _clear_inside_block_walk(irg)
702 #define inside_block_walk(irg)                _inside_block_walk(irg)
703 #define set_inside_irg_walk(irg)              _set_inside_irg_walk(irg)
704 #define clear_inside_irg_walk(irg)            _clear_inside_irg_walk(irg)
705 #define inside_irg_walk(irg)                  _inside_irg_walk(irg)
706 #define get_irg_estimated_node_cnt(irg)       _get_irg_estimated_node_cnt(irg)
707 #define get_irg_fp_model(irg)                 _get_irg_fp_model(irg)
708
709 # endif /* _IRGRAPH_T_H_ */