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