remove the unused/strange concept of a pseudo-irg
[libfirm] / ir / ir / irnode_t.h
1 /*
2  * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
3  *
4  * This file is part of libFirm.
5  *
6  * This file may be distributed and/or modified under the terms of the
7  * GNU General Public License version 2 as published by the Free Software
8  * Foundation and appearing in the file LICENSE.GPL included in the
9  * packaging of this file.
10  *
11  * Licensees holding valid libFirm Professional Edition licenses may use
12  * this file in accordance with the libFirm Commercial License.
13  * Agreement provided with the Software.
14  *
15  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17  * PURPOSE.
18  */
19
20 /**
21  * @file
22  * @brief   Representation of an intermediate operation -- private header.
23  * @author  Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Michael Beck
24  * @version $Id$
25  */
26 #ifndef FIRM_IR_IRNODE_T_H
27 #define FIRM_IR_IRNODE_T_H
28
29 #include "irtypes.h"
30 #include "irnode.h"
31 #include "irop_t.h"
32 #include "irgraph_t.h"
33 #include "irflag_t.h"
34 #include "array.h"
35 #include "iredges_t.h"
36
37 /**
38  * Returns the array with the ins.  The content of the array may not be
39  * changed.
40  * Note that this function returns the whole in array including the
41  * block predecessor. So, it is NOT symmetric with set_irn_in().
42  */
43 ir_node     **get_irn_in            (const ir_node *node);
44
45 /**
46  * The amount of additional space for custom data to be allocated upon creating a new node.
47  */
48 extern unsigned firm_add_node_size;
49
50 /**
51  * Sets the get_type operation for an ir_op_ops.
52  *
53  * @param code   the opcode for the default operation
54  * @param ops    the operations initialized
55  *
56  * @return
57  *    The operations.
58  */
59 ir_op_ops *firm_set_default_get_type(ir_opcode code, ir_op_ops *ops);
60
61 /**
62  * Sets the get_type_attr operation for an ir_op_ops.
63  *
64  * @param code   the opcode for the default operation
65  * @param ops    the operations initialized
66  *
67  * @return
68  *    The operations.
69  */
70 ir_op_ops *firm_set_default_get_type_attr(ir_opcode code, ir_op_ops *ops);
71
72 /**
73  * Sets the get_entity_attr operation for an ir_op_ops.
74  *
75  * @param code   the opcode for the default operation
76  * @param ops    the operations initialized
77  *
78  * @return
79  *    The operations.
80  */
81 ir_op_ops *firm_set_default_get_entity_attr(ir_opcode code, ir_op_ops *ops);
82
83 /**
84  * Returns an array with the predecessors of the Block. Depending on
85  * the implementation of the graph data structure this can be a copy of
86  * the internal representation of predecessors as well as the internal
87  * array itself. Therefore writing to this array might obstruct the IR.
88  */
89 ir_node **get_Block_cfgpred_arr(ir_node *node);
90
91 /*-------------------------------------------------------------------*/
92 /*  These function are most used in libfirm.  Give them as static    */
93 /*  functions so they can be inlined.                                */
94 /*-------------------------------------------------------------------*/
95
96 /**
97  * Checks whether a pointer points to a ir node.
98  * Intern version for libFirm.
99  */
100 static inline int _is_ir_node(const void *thing)
101 {
102         return (get_kind(thing) == k_ir_node);
103 }
104
105 /**
106  * Gets the op of a node.
107  * Intern version for libFirm.
108  */
109 static inline ir_op *_get_irn_op(const ir_node *node)
110 {
111         assert(node);
112         return node->op;
113 }
114
115 static inline void _set_irn_op(ir_node *node, ir_op *op)
116 {
117         assert(node);
118         node->op = op;
119 }
120
121 /** Copies all attributes stored in the old node  to the new node.
122     Assumes both have the same opcode and sufficient size. */
123 static inline void _copy_node_attr(ir_graph *irg, const ir_node *old_node,
124                                    ir_node *new_node)
125 {
126         ir_op *op = _get_irn_op(old_node);
127
128         /* must always exist */
129         op->ops.copy_attr(irg, old_node, new_node);
130 }
131
132 /**
133  * Gets the opcode of a node.
134  * Intern version for libFirm.
135  */
136 static inline unsigned _get_irn_opcode(const ir_node *node)
137 {
138         assert(k_ir_node == get_kind(node));
139         assert(node->op);
140         return node->op->code;
141 }
142
143 /**
144  * Returns the number of predecessors without the block predecessor.
145  * Intern version for libFirm.
146  */
147 static inline int _get_irn_intra_arity(const ir_node *node)
148 {
149         assert(node);
150         return ARR_LEN(node->in) - 1;
151 }
152
153 /**
154  * Returns the number of predecessors without the block predecessor.
155  * Intern version for libFirm.
156  */
157 static inline int _get_irn_inter_arity(const ir_node *node)
158 {
159         assert(node);
160         if (_get_irn_op(node) == op_Filter) {
161                 assert(node->attr.filter.in_cg);
162                 return ARR_LEN(node->attr.filter.in_cg) - 1;
163         } else if (_get_irn_op(node) == op_Block && node->attr.block.in_cg) {
164                 return ARR_LEN(node->attr.block.in_cg) - 1;
165         }
166         return _get_irn_intra_arity(node);
167 }
168
169 #ifdef INTERPROCEDURAL_VIEW
170 /**
171  * Returns the number of predecessors without the block predecessor.
172  * Intern version for libFirm.
173  */
174 extern int (*_get_irn_arity)(const ir_node *node);
175
176 #else
177
178 #define _get_irn_arity(n) _get_irn_intra_arity(n)
179 #endif
180
181 /**
182  * Intern version for libFirm.
183  */
184 static inline ir_node *_get_irn_intra_n(const ir_node *node, int n)
185 {
186         ir_node *nn;
187
188         assert(node);
189         assert(-1 <= n && n < _get_irn_intra_arity(node));
190
191         nn = node->in[n + 1];
192         if (nn == NULL) {
193                 /* only block and Anchor inputs are allowed to be NULL */
194                 assert((node->op == op_Anchor || n == -1) && "NULL input of a node");
195                 return NULL;
196         }
197         if (nn->op != op_Id) return nn;
198
199         return (node->in[n + 1] = skip_Id(nn));
200 }
201
202 /**
203  * Intern version for libFirm.
204  */
205 static inline ir_node *_get_irn_inter_n(const ir_node *node, int n)
206 {
207         assert(node); assert(-1 <= n && n < _get_irn_inter_arity(node));
208
209         /* handle Filter and Block specially */
210         if (_get_irn_op(node) == op_Filter) {
211                 assert(node->attr.filter.in_cg);
212                 return (node->attr.filter.in_cg[n + 1] = skip_Id(node->attr.filter.in_cg[n + 1]));
213         } else if (_get_irn_op(node) == op_Block && node->attr.block.in_cg) {
214                 return (node->attr.block.in_cg[n + 1] = skip_Id(node->attr.block.in_cg[n + 1]));
215         }
216
217         return _get_irn_intra_n(node, n);
218 }
219
220 /**
221  * returns a hash value for a node
222  */
223 static inline unsigned hash_irn(const ir_node *node)
224 {
225         return (unsigned) get_irn_idx(node);
226 }
227
228 /**
229  * Access to the predecessors of a node.
230  * To iterate over the operands iterate from 0 to i < get_irn_arity(),
231  * to iterate including the Block predecessor iterate from i = -1 to
232  * i < get_irn_arity.
233  * If it is a block, the entry -1 is NULL.
234  * Intern version for libFirm.
235  */
236 #ifdef INTERPROCEDURAL_VIEW
237 extern ir_node *(*_get_irn_n)(const ir_node *node, int n);
238 #else
239 #define _get_irn_n(n,i) _get_irn_intra_n(n,i)
240 #endif
241
242 static inline int _get_irn_deps(const ir_node *node) {
243         return node->deps ? ARR_LEN(node->deps) : 0;
244 }
245
246 static inline ir_node *_get_irn_dep(const ir_node *node, int pos) {
247         assert(node->deps && "dependency array node yet allocated. use add_irn_dep()");
248         assert(pos >= 0 && pos < ARR_LEN(node->deps) && "dependency index out of range");
249         return node->deps[pos];
250 }
251
252 /* forward declaration outside iredges_t.h to avoid circular include problems */
253 void edges_notify_edge_kind(ir_node *src, int pos, ir_node *tgt, ir_node *old_tgt, ir_edge_kind_t kind, ir_graph *irg);
254
255 static inline void _set_irn_dep(ir_node *node, int pos, ir_node *dep)
256 {
257         ir_node *old;
258
259         assert(node->deps && "dependency array node yet allocated. use add_irn_dep()");
260         assert(pos >= 0 && pos < ARR_LEN(node->deps) && "dependency index out of range");
261         old = node->deps[pos];
262         node->deps[pos] = dep;
263         edges_notify_edge_kind(node, pos, dep, old, EDGE_KIND_DEP, get_irn_irg(node));
264 }
265
266
267 static inline int _get_irn_ins_or_deps(const ir_node *irn)
268 {
269         return _get_irn_deps(irn) + _get_irn_arity(irn);
270 }
271
272 static inline ir_node *_get_irn_in_or_dep(const ir_node *irn, int pos)
273 {
274         int n_in = get_irn_arity(irn);
275         return pos < n_in ? get_irn_n(irn, pos) : get_irn_dep(irn, pos - n_in);
276 }
277
278 /**
279  * Gets the mode of a node.
280  * Intern version for libFirm.
281  */
282 static inline ir_mode *_get_irn_mode(const ir_node *node)
283 {
284         assert(node);
285         return node->mode;
286 }
287
288 /**
289  * Sets the mode of a node.
290  * Intern version of libFirm.
291  */
292 static inline void _set_irn_mode(ir_node *node, ir_mode *mode)
293 {
294         assert(node);
295         node->mode = mode;
296 }
297
298 static inline ir_graph *_get_irn_irg(const ir_node *node)
299 {
300         /*
301          * Do not use get_nodes_Block() here, because this
302          * will check the pinned state.
303          * However even a 'wrong' block is always in the proper
304          * irg.
305          */
306         if (! is_Block(node))
307                 node = get_irn_n(node, -1);
308         /* note that get_Block_irg() can handle Bad nodes */
309         return get_Block_irg(node);
310 }
311
312 /**
313  * Gets the visited counter of a node.
314  * Intern version for libFirm.
315  */
316 static inline ir_visited_t _get_irn_visited(const ir_node *node)
317 {
318         assert(node);
319         return node->visited;
320 }
321
322 /**
323  * Sets the visited counter of a node.
324  * Intern version for libFirm.
325  */
326 static inline void _set_irn_visited(ir_node *node, ir_visited_t visited)
327 {
328         assert(node);
329         node->visited = visited;
330 }
331
332 /**
333  * Mark a node as visited in a graph.
334  * Intern version for libFirm.
335  */
336 static inline void _mark_irn_visited(ir_node *node)
337 {
338         node->visited = get_irn_irg(node)->visited;
339 }
340
341 /**
342  * Returns non-zero if a node of was visited.
343  * Intern version for libFirm.
344  */
345 static inline int _irn_visited(const ir_node *node)
346 {
347         ir_graph *irg = get_irn_irg(node);
348         return node->visited >= irg->visited;
349 }
350
351 static inline int _irn_visited_else_mark(ir_node *node)
352 {
353         if (_irn_visited(node))
354                 return 1;
355         _mark_irn_visited(node);
356         return 0;
357 }
358
359 /**
360  * Sets the link of a node.
361  * Intern version of libFirm.
362  */
363 static inline void _set_irn_link(ir_node *node, void *link)
364 {
365         assert(node);
366         node->link = link;
367 }
368
369 /**
370  * Returns the link of a node.
371  * Intern version of libFirm.
372  */
373 static inline void *_get_irn_link(const ir_node *node)
374 {
375         assert(node && _is_ir_node(node));
376         return node->link;
377 }
378
379 /**
380  * Returns whether the node _always_ must be pinned.
381  * I.e., the node is not floating after global cse.
382  *
383  * Intern version of libFirm.
384  */
385 static inline op_pin_state _get_irn_pinned(const ir_node *node)
386 {
387         op_pin_state state;
388         assert(node && _is_ir_node(node));
389         /* Check opcode */
390         state = _get_op_pinned(_get_irn_op(node));
391
392         if (state >= op_pin_state_exc_pinned)
393                 return get_opt_fragile_ops() ? node->attr.except.pin_state : op_pin_state_pinned;
394         return state;
395 }
396
397 static inline op_pin_state _is_irn_pinned_in_irg(const ir_node *node)
398 {
399         if (get_irg_pinned(get_irn_irg(node)) == op_pin_state_floats)
400                 return get_irn_pinned(node);
401         return op_pin_state_pinned;
402 }
403
404 /* include generated code */
405 #include "gen_irnode.h"
406
407 static inline int _is_unop(const ir_node *node)
408 {
409         assert(node && _is_ir_node(node));
410         return (node->op->opar == oparity_unary);
411 }
412
413 static inline int _is_binop(const ir_node *node)
414 {
415         assert(node && _is_ir_node(node));
416         return (node->op->opar == oparity_binary);
417 }
418
419 static inline int _is_Phi(const ir_node *node)
420 {
421         ir_op *op;
422         assert(node);
423
424         op = get_irn_op(node);
425 #ifdef INTERPROCEDURAL_VIEW
426         if (op == op_Filter) return get_interprocedural_view();
427 #endif
428         return (op == op_Phi);
429 }
430
431 static inline int _is_Proj(const ir_node *node)
432 {
433         ir_op *op;
434         assert(node);
435
436         op = _get_irn_op(node);
437 #ifdef INTERPROCEDURAL_VIEW
438         if (op == op_Filter) return !get_interprocedural_view();
439 #endif
440         return (op == op_Proj);
441 }
442
443 static inline int _is_strictConv(const ir_node *node)
444 {
445         return _is_Conv(node) && get_Conv_strict(node);
446 }
447
448 static inline int _is_SymConst_addr_ent(const ir_node *node)
449 {
450         return is_SymConst(node) && get_SymConst_kind(node) == symconst_addr_ent;
451 }
452
453 static inline int _is_no_Block(const ir_node *node)
454 {
455         assert(node && _is_ir_node(node));
456         return (_get_irn_op(node) != op_Block);
457 }
458
459 static inline int _get_Block_n_cfgpreds(const ir_node *node)
460 {
461         assert(_is_Block(node));
462         return _get_irn_arity(node);
463 }
464
465 static inline ir_node *_get_Block_cfgpred(const ir_node *node, int pos)
466 {
467         assert(0 <= pos && pos < get_irn_arity(node));
468         assert(_is_Block(node));
469         return _get_irn_n(node, pos);
470 }
471
472 /* Get the predecessor block.
473  *
474  *  Returns the block corresponding to the predecessor pos.
475  *
476  *  There are several ambiguities we resolve with this function:
477  *  - The direct predecessor can be a Proj, which is not pinned.
478  *    We walk from the predecessor to the next pinned node
479  *    (skip_Proj) and return the block that node is in.
480  *  - If we encounter the Bad node, this function does not return
481  *    the Start block, but the Bad node.
482  */
483 static inline ir_node  *_get_Block_cfgpred_block(const ir_node *node, int pos)
484 {
485         ir_node *res = skip_Proj(get_Block_cfgpred(node, pos));
486         if (!is_Bad(res))
487                 res = get_nodes_block(res);
488         return res;
489 }
490
491 static inline ir_visited_t _get_Block_block_visited(const ir_node *node)
492 {
493         assert(node->op == op_Block);
494         return node->attr.block.block_visited;
495 }
496
497 static inline void _set_Block_block_visited(ir_node *node, ir_visited_t visit)
498 {
499         assert(node->op == op_Block);
500         node->attr.block.block_visited = visit;
501 }
502
503 /* For this current_ir_graph must be set. */
504 static inline void _mark_Block_block_visited(ir_node *node)
505 {
506         ir_graph *irg = get_Block_irg(node);
507         node->attr.block.block_visited = get_irg_block_visited(irg);
508 }
509
510 static inline int _Block_block_visited(const ir_node *node)
511 {
512         ir_graph *irg = get_Block_irg(node);
513         return node->attr.block.block_visited >= get_irg_block_visited(irg);
514 }
515
516 static inline ir_node *_set_Block_dead(ir_node *block)
517 {
518         assert(_get_irn_op(block) == op_Block);
519         block->attr.block.dom.dom_depth = -1;
520         block->attr.block.is_dead = 1;
521         return block;
522 }
523
524 static inline int _is_Block_dead(const ir_node *block)
525 {
526         ir_op *op = _get_irn_op(block);
527
528         if (op == op_Bad)
529                 return 1;
530         else {
531                 assert(op == op_Block);
532                 return block->attr.block.is_dead;
533         }
534 }
535
536 static inline ir_graph *_get_Block_irg(const ir_node *block)
537 {
538         assert(is_Block(block) || is_Bad(block));
539         return block->attr.irg.irg;
540 }
541
542 static inline tarval *_get_Const_tarval(const ir_node *node) {
543         assert(_get_irn_op(node) == op_Const);
544         return node->attr.con.tarval;
545 }
546
547 static inline int _is_Const_null(const ir_node *node) {
548         return tarval_is_null(_get_Const_tarval(node));
549 }
550
551 static inline int _is_Const_one(const ir_node *node) {
552         return tarval_is_one(_get_Const_tarval(node));
553 }
554
555 static inline int _is_Const_all_one(const ir_node *node) {
556         return tarval_is_all_one(_get_Const_tarval(node));
557 }
558
559 static inline int _is_irn_forking(const ir_node *node) {
560         return is_op_forking(_get_irn_op(node));
561 }
562
563 static inline ir_type *_get_irn_type(ir_node *node) {
564         return _get_irn_op(node)->ops.get_type(node);
565 }
566
567 static inline ir_type *_get_irn_type_attr(ir_node *node) {
568         return _get_irn_op(node)->ops.get_type_attr(node);
569 }
570
571 static inline ir_entity *_get_irn_entity_attr(ir_node *node) {
572   return _get_irn_op(node)->ops.get_entity_attr(node);
573 }
574
575 static inline int _is_irn_constlike(const ir_node *node) {
576         return is_op_constlike(_get_irn_op(node));
577 }
578
579 static inline int _is_irn_always_opt(const ir_node *node) {
580         return is_op_always_opt(_get_irn_op(node));
581 }
582
583 static inline int _is_irn_keep(const ir_node *node) {
584         return is_op_keep(_get_irn_op(node));
585 }
586
587 static inline int _is_irn_start_block_placed(const ir_node *node) {
588         return is_op_start_block_placed(_get_irn_op(node));
589 }
590
591 static inline int _is_irn_machine_op(const ir_node *node) {
592         return is_op_machine(_get_irn_op(node));
593 }
594
595 static inline int _is_irn_machine_operand(const ir_node *node) {
596         return is_op_machine_operand(_get_irn_op(node));
597 }
598
599 static inline int _is_irn_machine_user(const ir_node *node, unsigned n) {
600         return is_op_machine_user(_get_irn_op(node), n);
601 }
602
603 static inline int _is_irn_cse_neutral(const ir_node *node) {
604         return is_op_cse_neutral(_get_irn_op(node));
605 }
606
607 static inline cond_jmp_predicate _get_Cond_jmp_pred(const ir_node *node) {
608         assert(_get_irn_op(node) == op_Cond);
609         return node->attr.cond.jmp_pred;
610 }
611
612 static inline void _set_Cond_jmp_pred(ir_node *node, cond_jmp_predicate pred) {
613         assert(_get_irn_op(node) == op_Cond);
614         node->attr.cond.jmp_pred = pred;
615 }
616
617 static inline void *_get_irn_generic_attr(ir_node *node) {
618         return &node->attr;
619 }
620
621 static inline const void *_get_irn_generic_attr_const(const ir_node *node) {
622         return &node->attr;
623 }
624
625 static inline unsigned _get_irn_idx(const ir_node *node) {
626         return node->node_idx;
627 }
628
629 static inline dbg_info *_get_irn_dbg_info(const ir_node *n) {
630         return n->dbi;
631 }  /* get_irn_dbg_info */
632
633 static inline void _set_irn_dbg_info(ir_node *n, dbg_info *db) {
634         n->dbi = db;
635 }
636
637 /**
638  * Sets the Phi list of a block.
639  */
640 static inline void _set_Block_phis(ir_node *block, ir_node *phi)
641 {
642         assert(_is_Block(block));
643         assert(phi == NULL || _is_Phi(phi));
644         block->attr.block.phis = phi;
645 }
646
647 /**
648  * Returns the link of a node.
649  * Intern version of libFirm.
650  */
651 static inline ir_node *_get_Block_phis(const ir_node *block)
652 {
653         assert(_is_Block(block));
654         return block->attr.block.phis;
655 }
656
657 static inline void _set_Phi_next(ir_node *phi, ir_node *next)
658 {
659         assert(_is_Phi(phi));
660         phi->attr.phi.next = next;
661 }
662
663 static inline ir_node *_get_Phi_next(const ir_node *phi)
664 {
665         assert(_is_Phi(phi));
666         return phi->attr.phi.next;
667 }
668
669 /** Add a Phi node to the list of Block Phi's. */
670 static inline void _add_Block_phi(ir_node *block, ir_node *phi)
671 {
672         _set_Phi_next(phi, _get_Block_phis(block));
673         _set_Block_phis(block, phi);
674 }
675
676 /** Get the Block mark (single bit). */
677 static inline unsigned _get_Block_mark(const ir_node *block)
678 {
679         assert(_is_Block(block));
680         return block->attr.block.marked;
681 }
682
683 /** Set the Block mark (single bit). */
684 static inline void _set_Block_mark(ir_node *block, unsigned mark)
685 {
686         assert(_is_Block(block));
687         block->attr.block.marked = mark;
688 }
689
690 /** Returns non-zero if a node is a routine parameter. */
691 static inline int _is_arg_Proj(const ir_node *node)
692 {
693         if (! is_Proj(node))
694                 return 0;
695         node = get_Proj_pred(node);
696         if (! is_Proj(node))
697                 return 0;
698         return pn_Start_T_args == get_Proj_proj(node) && is_Start(get_Proj_pred(node));
699 }
700
701 /** initialize ir_node module */
702 void init_irnode(void);
703
704 /* this section MUST contain all inline functions */
705 #define is_ir_node(thing)                     _is_ir_node(thing)
706 #define get_irn_intra_arity(node)             _get_irn_intra_arity(node)
707 #define get_irn_inter_arity(node)             _get_irn_inter_arity(node)
708 #define get_irn_arity(node)                   _get_irn_arity(node)
709 #define get_irn_intra_n(node, n)              _get_irn_intra_n(node, n)
710 #define get_irn_inter_n(node, n)              _get_irn_inter_n(node, n)
711 #define get_irn_n(node, n)                    _get_irn_n(node, n)
712 #define get_irn_mode(node)                    _get_irn_mode(node)
713 #define set_irn_mode(node, mode)              _set_irn_mode(node, mode)
714 #define get_irn_irg(node)                     _get_irn_irg(node)
715 #define get_irn_op(node)                      _get_irn_op(node)
716 #define set_irn_op(node, op)                  _set_irn_op(node, op)
717 #define get_irn_opcode(node)                  _get_irn_opcode(node)
718 #define get_irn_visited(node)                 _get_irn_visited(node)
719 #define set_irn_visited(node, v)              _set_irn_visited(node, v)
720 #define mark_irn_visited(node)                _mark_irn_visited(node)
721 #define irn_visited(node)                     _irn_visited(node)
722 #define irn_visited_else_mark(node)           _irn_visited_else_mark(node)
723 #define set_irn_link(node, link)              _set_irn_link(node, link)
724 #define get_irn_link(node)                    _get_irn_link(node)
725 #define get_irn_pinned(node)                  _get_irn_pinned(node)
726 #define is_irn_pinned_in_irg(node)            _is_irn_pinned_in_irg(node)
727 #define is_unop(node)                         _is_unop(node)
728 #define is_binop(node)                        _is_binop(node)
729 #define is_Proj(node)                         _is_Proj(node)
730 #define is_Phi(node)                          _is_Phi(node)
731 #define is_strictConv(node)                   _is_strictConv(node)
732 #define is_SymConst_addr_ent(node)            _is_SymConst_addr_ent(node)
733 #define is_no_Block(node)                     _is_no_Block(node)
734 #define get_Block_n_cfgpreds(node)            _get_Block_n_cfgpreds(node)
735 #define get_Block_cfgpred(node, pos)          _get_Block_cfgpred(node, pos)
736 #define get_Block_cfgpred_block(node, pos)    _get_Block_cfgpred_block(node, pos)
737 #define get_Block_block_visited(node)         _get_Block_block_visited(node)
738 #define set_Block_block_visited(node, visit)  _set_Block_block_visited(node, visit)
739 #define mark_Block_block_visited(node)        _mark_Block_block_visited(node)
740 #define Block_block_visited(node)             _Block_block_visited(node)
741 #define set_Block_dead(block)                 _set_Block_dead(block)
742 #define is_Block_dead(block)                  _is_Block_dead(block)
743 #define get_Block_irg(block)                  _get_Block_irg(block)
744 #define get_Const_tarval(node)                _get_Const_tarval(node)
745 #define is_Const_null(node)                   _is_Const_null(node)
746 #define is_Const_one(node)                    _is_Const_one(node)
747 #define is_Const_all_one(node)                _is_Const_all_one(node)
748 #define is_irn_forking(node)                  _is_irn_forking(node)
749 #define copy_node_attr(irg,oldn,newn)         _copy_node_attr(irg,oldn,newn)
750 #define get_irn_type(node)                    _get_irn_type(node)
751 #define get_irn_type_attr(node)               _get_irn_type_attr(node)
752 #define get_irn_entity_attr(node)             _get_irn_entity_attr(node)
753 #define is_irn_constlike(node)                _is_irn_constlike(node)
754 #define is_irn_always_opt(node)               _is_irn_always_opt(node)
755 #define is_irn_keep(node)                     _is_irn_keep(node)
756 #define is_irn_start_block_placed(node)       _is_irn_start_block_placed(node)
757 #define is_irn_machine_op(node)               _is_irn_machine_op(node)
758 #define is_irn_machine_operand(node)          _is_irn_machine_operand(node)
759 #define is_irn_machine_user(node, n)          _is_irn_machine_user(node, n)
760 #define is_irn_cse_neutral(node)              _is_irn_cse_neutral(node)
761 #define get_Cond_jmp_pred(node)               _get_Cond_jmp_pred(node)
762 #define set_Cond_jmp_pred(node, pred)         _set_Cond_jmp_pred(node, pred)
763 #define get_irn_generic_attr(node)            _get_irn_generic_attr(node)
764 #define get_irn_generic_attr_const(node)      _get_irn_generic_attr_const(node)
765 #define get_irn_idx(node)                     _get_irn_idx(node)
766
767 #define get_irn_deps(node)                    _get_irn_deps(node)
768 #define set_irn_dep(node, pos, dep)           _set_irn_dep(node, pos, dep)
769 #define get_irn_dep(node, pos)                _get_irn_dep(node, pos)
770
771 #define get_irn_ins_or_deps(node)             _get_irn_ins_or_deps(node)
772 #define get_irn_in_or_dep(node, pos)          _get_irn_in_or_dep(node, pos)
773
774 #define get_irn_dbg_info(node)                _get_irn_dbg_info(node)
775 #define set_irn_dbg_info(node, db)            _set_irn_dbg_info(node, db)
776
777 #define set_Block_phis(block, phi)            _set_Block_phis(block, phi)
778 #define get_Block_phis(block)                 _get_Block_phis(block)
779 #define add_Block_phi(block, phi)             _add_Block_phi(block, phi)
780 #define get_Block_mark(block)                 _get_Block_mark(block)
781 #define set_Block_mark(block, mark)           _set_Block_mark(block, mark)
782
783 #define set_Phi_next(node, phi)               _set_Phi_next(node, phi)
784 #define get_Phi_next(node)                    _get_Phi_next(node)
785
786 #define is_arg_Proj(node)                     _is_arg_Proj(node)
787
788 #endif