2 * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
4 * This file is part of libFirm.
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.
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.
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
22 * @brief Representation of an intermediate operation -- private header.
23 * @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Michael Beck
26 #ifndef FIRM_IR_IRNODE_T_H
27 #define FIRM_IR_IRNODE_T_H
29 #include "firm_config.h"
33 #include "irgraph_t.h"
35 #include "firm_common_t.h"
39 * Returns the array with the ins. The content of the array may not be
41 * Note that this function returns the whole in array including the
42 * block predecessor. So, it is NOT symmetric with set_irn_in().
44 ir_node **get_irn_in (const ir_node *node);
47 /** access attributes directly */
48 const_attr *get_irn_const_attr (ir_node *node);
49 long get_irn_proj_attr (ir_node *node);
50 alloc_attr *get_irn_alloc_attr (ir_node *node);
51 free_attr *get_irn_free_attr (ir_node *node);
52 symconst_attr *get_irn_symconst_attr (ir_node *node);
53 ir_type *get_irn_call_attr (ir_node *node);
54 ir_type *get_irn_funccall_attr (ir_node *node);
55 sel_attr *get_irn_sel_attr (ir_node *node);
56 phi_attr *get_irn_phi_attr (ir_node *node);
57 block_attr *get_irn_block_attr (ir_node *node);
58 load_attr *get_irn_load_attr (ir_node *node);
59 store_attr *get_irn_store_attr (ir_node *node);
60 except_attr *get_irn_except_attr (ir_node *node);
61 divmod_attr *get_irn_divmod_attr (ir_node *node);
65 * The amount of additional space for custom data to be allocated upon creating a new node.
67 extern unsigned firm_add_node_size;
70 * Sets the get_type operation for an ir_op_ops.
72 * @param code the opcode for the default operation
73 * @param ops the operations initialized
78 ir_op_ops *firm_set_default_get_type(ir_opcode code, ir_op_ops *ops);
81 * Sets the get_type_attr operation for an ir_op_ops.
83 * @param code the opcode for the default operation
84 * @param ops the operations initialized
89 ir_op_ops *firm_set_default_get_type_attr(ir_opcode code, ir_op_ops *ops);
92 * Sets the get_entity_attr operation for an ir_op_ops.
94 * @param code the opcode for the default operation
95 * @param ops the operations initialized
100 ir_op_ops *firm_set_default_get_entity_attr(ir_opcode code, ir_op_ops *ops);
102 /*-------------------------------------------------------------------*/
103 /* These function are most used in libfirm. Give them as static */
104 /* functions so they can be inlined. */
105 /*-------------------------------------------------------------------*/
108 * Checks whether a pointer points to a ir node.
109 * Intern version for libFirm.
112 _is_ir_node(const void *thing) {
113 return (get_kind(thing) == k_ir_node);
117 * Gets the op of a node.
118 * Intern version for libFirm.
120 static INLINE ir_op *
121 _get_irn_op(const ir_node *node) {
127 _set_irn_op(ir_node *node, ir_op *op) {
132 /** Copies all attributes stored in the old node to the new node.
133 Assumes both have the same opcode and sufficient size. */
135 copy_node_attr(const ir_node *old_node, ir_node *new_node) {
136 ir_op *op = _get_irn_op(old_node);
138 /* must always exist */
139 op->ops.copy_attr(old_node, new_node);
143 * Gets the opcode of a node.
144 * Intern version for libFirm.
146 static INLINE unsigned
147 _get_irn_opcode(const ir_node *node) {
148 assert(k_ir_node == get_kind(node));
150 return node->op->code;
154 * Returns the number of predecessors without the block predecessor.
155 * Intern version for libFirm.
158 _get_irn_intra_arity(const ir_node *node) {
160 return ARR_LEN(node->in) - 1;
164 * Returns the number of predecessors without the block predecessor.
165 * Intern version for libFirm.
168 _get_irn_inter_arity(const ir_node *node) {
170 if (_get_irn_op(node) == op_Filter) {
171 assert(node->attr.filter.in_cg);
172 return ARR_LEN(node->attr.filter.in_cg) - 1;
173 } else if (_get_irn_op(node) == op_Block && node->attr.block.in_cg) {
174 return ARR_LEN(node->attr.block.in_cg) - 1;
176 return _get_irn_intra_arity(node);
179 #ifdef INTERPROCEDURAL_VIEW
181 * Returns the number of predecessors without the block predecessor.
182 * Intern version for libFirm.
184 extern int (*_get_irn_arity)(const ir_node *node);
188 #define _get_irn_arity(n) _get_irn_intra_arity(n)
192 * Intern version for libFirm.
194 static INLINE ir_node *
195 _get_irn_intra_n(const ir_node *node, int n) {
199 assert(-1 <= n && n < _get_irn_intra_arity(node));
201 nn = node->in[n + 1];
203 /* only block and Anchor inputs are allowed to be NULL */
204 assert((node->op == op_Anchor || n == -1) && "NULL input of a node");
207 if (nn->op != op_Id) return nn;
209 return (node->in[n + 1] = skip_Id(nn));
213 * Intern version for libFirm.
215 static INLINE ir_node*
216 _get_irn_inter_n(const ir_node *node, int n) {
217 assert(node); assert(-1 <= n && n < _get_irn_inter_arity(node));
219 /* handle Filter and Block specially */
220 if (_get_irn_op(node) == op_Filter) {
221 assert(node->attr.filter.in_cg);
222 return (node->attr.filter.in_cg[n + 1] = skip_Id(node->attr.filter.in_cg[n + 1]));
223 } else if (_get_irn_op(node) == op_Block && node->attr.block.in_cg) {
224 return (node->attr.block.in_cg[n + 1] = skip_Id(node->attr.block.in_cg[n + 1]));
227 return _get_irn_intra_n(node, n);
231 * returns a hash value for a node
233 static INLINE unsigned hash_irn(const ir_node *node)
235 return (unsigned) get_irn_idx(node);
239 * Access to the predecessors of a node.
240 * To iterate over the operands iterate from 0 to i < get_irn_arity(),
241 * to iterate including the Block predecessor iterate from i = -1 to
243 * If it is a block, the entry -1 is NULL.
244 * Intern version for libFirm.
246 #ifdef INTERPROCEDURAL_VIEW
247 extern ir_node *(*_get_irn_n)(const ir_node *node, int n);
249 #define _get_irn_n(n,i) _get_irn_intra_n(n,i)
252 static INLINE int _get_irn_deps(const ir_node *node) {
253 return node->deps ? ARR_LEN(node->deps) : 0;
256 static INLINE ir_node *_get_irn_dep(const ir_node *node, int pos) {
257 assert(node->deps && "dependency array node yet allocated. use add_irn_dep()");
258 assert(pos >= 0 && pos < ARR_LEN(node->deps) && "dependency index out of range");
259 return node->deps[pos];
263 _set_irn_dep(ir_node *node, int pos, ir_node *dep) {
266 assert(node->deps && "dependency array node yet allocated. use add_irn_dep()");
267 assert(pos >= 0 && pos < ARR_LEN(node->deps) && "dependency index out of range");
268 old = node->deps[pos];
269 node->deps[pos] = dep;
270 edges_notify_edge_kind(node, pos, dep, old, EDGE_KIND_DEP, get_irn_irg(node));
275 _get_irn_ins_or_deps(const ir_node *irn) {
276 return _get_irn_deps(irn) + _get_irn_arity(irn);
279 static INLINE ir_node *
280 _get_irn_in_or_dep(const ir_node *irn, int pos) {
281 int n_in = get_irn_arity(irn);
282 return pos < n_in ? get_irn_n(irn, pos) : get_irn_dep(irn, pos - n_in);
286 * Gets the mode of a node.
287 * Intern version for libFirm.
289 static INLINE ir_mode *
290 _get_irn_mode(const ir_node *node) {
296 * Sets the mode of a node.
297 * Intern version of libFirm.
300 _set_irn_mode(ir_node *node, ir_mode *mode) {
306 * Gets the visited counter of a node.
307 * Intern version for libFirm.
309 static INLINE unsigned long
310 _get_irn_visited(const ir_node *node) {
312 return node->visited;
316 * Sets the visited counter of a node.
317 * Intern version for libFirm.
320 _set_irn_visited(ir_node *node, unsigned long visited) {
322 node->visited = visited;
326 * Mark a node as visited in a graph.
327 * Intern version for libFirm.
330 _mark_irn_visited(ir_node *node) {
332 node->visited = current_ir_graph->visited;
336 * Returns non-zero if a node of was visited.
337 * Intern version for libFirm.
340 _irn_visited(const ir_node *node) {
342 return (node->visited >= current_ir_graph->visited);
346 * Returns non-zero if a node of was NOT visited.
347 * Intern version for libFirm.
350 _irn_not_visited(const ir_node *node) {
352 return (node->visited < current_ir_graph->visited);
356 * Sets the link of a node.
357 * Intern version of libFirm.
360 _set_irn_link(ir_node *node, void *link) {
366 * Returns the link of a node.
367 * Intern version of libFirm.
370 _get_irn_link(const ir_node *node) {
371 assert(node && _is_ir_node(node));
376 * Returns whether the node _always_ must be pinned.
377 * I.e., the node is not floating after global cse.
379 * Intern version of libFirm.
381 static INLINE op_pin_state
382 _get_irn_pinned(const ir_node *node) {
384 assert(node && _is_ir_node(node));
386 state = _get_op_pinned(_get_irn_op(node));
388 if (state >= op_pin_state_exc_pinned)
389 return get_opt_fragile_ops() ? node->attr.except.pin_state : op_pin_state_pinned;
393 static INLINE op_pin_state
394 _is_irn_pinned_in_irg(const ir_node *node) {
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;
401 _is_unop(const ir_node *node) {
402 assert(node && _is_ir_node(node));
403 return (node->op->opar == oparity_unary);
407 _is_binop(const ir_node *node) {
408 assert(node && _is_ir_node(node));
409 return (node->op->opar == oparity_binary);
413 _is_Phi(const ir_node *node) {
417 op = get_irn_op(node);
418 #ifdef INTERPROCEDURAL_VIEW
419 if (op == op_Filter) return get_interprocedural_view();
421 return (op == op_Phi);
425 _is_Proj(const ir_node *node) {
429 op = _get_irn_op(node);
430 #ifdef INTERPROCEDURAL_VIEW
431 if (op == op_Filter) return !get_interprocedural_view();
433 return (op == op_Proj);
437 _is_Filter(const ir_node *node) {
439 return (_get_irn_op(node) == op_Filter);
443 _is_Bad(const ir_node *node) {
445 return (_get_irn_op(node) == op_Bad);
449 _is_NoMem(const ir_node *node) {
451 return (_get_irn_op(node) == op_NoMem);
455 _is_Minus(const ir_node *node) {
457 return (_get_irn_op(node) == op_Minus);
461 _is_Abs(const ir_node *node) {
463 return (_get_irn_op(node) == op_Abs);
467 _is_Mod(const ir_node *node) {
469 return (_get_irn_op(node) == op_Mod);
473 _is_Div(const ir_node *node) {
475 return (_get_irn_op(node) == op_Div);
479 _is_DivMod(const ir_node *node) {
481 return (_get_irn_op(node) == op_DivMod);
485 _is_Quot(const ir_node *node) {
487 return (_get_irn_op(node) == op_Quot);
491 _is_Add(const ir_node *node) {
493 return (_get_irn_op(node) == op_Add);
497 _is_And(const ir_node *node) {
499 return (_get_irn_op(node) == op_And);
503 _is_Or(const ir_node *node) {
505 return (_get_irn_op(node) == op_Or);
509 _is_Eor(const ir_node *node) {
511 return (_get_irn_op(node) == op_Eor);
515 _is_Sub(const ir_node *node) {
517 return (_get_irn_op(node) == op_Sub);
521 _is_Not(const ir_node *node) {
523 return (_get_irn_op(node) == op_Not);
527 _is_Shl(const ir_node *node) {
529 return (_get_irn_op(node) == op_Shl);
533 _is_Shr(const ir_node *node) {
535 return (_get_irn_op(node) == op_Shr);
539 _is_Shrs(const ir_node *node) {
541 return (_get_irn_op(node) == op_Shrs);
545 _is_Rotl(const ir_node *node) {
547 return (_get_irn_op(node) == op_Rotl);
551 _is_Psi(const ir_node *node) {
553 return (_get_irn_op(node) == op_Psi);
557 _is_Id(const ir_node *node) {
559 return (_get_irn_op(node) == op_Id);
563 _is_Tuple(const ir_node *node) {
565 return (_get_irn_op(node) == op_Tuple);
569 _is_Bound(const ir_node *node) {
571 return (_get_irn_op(node) == op_Bound);
575 _is_Start(const ir_node *node) {
577 return (_get_irn_op(node) == op_Start);
581 _is_End(const ir_node *node) {
583 return (_get_irn_op(node) == op_End);
587 _is_Const(const ir_node *node) {
589 return (_get_irn_op(node) == op_Const);
593 _is_Conv(const ir_node *node) {
595 return (_get_irn_op(node) == op_Conv);
599 _is_strictConv(const ir_node *node) {
600 return _is_Conv(node) && get_Conv_strict(node);
604 _is_Cast(const ir_node *node) {
606 return (_get_irn_op(node) == op_Cast);
610 _is_CopyB(const ir_node *node) {
612 return (_get_irn_op(node) == op_CopyB);
616 _is_Unknown(const ir_node *node) {
618 return (_get_irn_op(node) == op_Unknown);
622 _is_Return(const ir_node *node) {
624 return (_get_irn_op(node) == op_Return);
628 _is_Call(const ir_node *node) {
630 return (_get_irn_op(node) == op_Call);
634 _is_CallBegin(const ir_node *node) {
636 return (_get_irn_op(node) == op_CallBegin);
640 _is_Sel(const ir_node *node) {
642 return (_get_irn_op(node) == op_Sel);
646 _is_Mul(const ir_node *node) {
648 return (_get_irn_op(node) == op_Mul);
652 _is_Mulh(const ir_node *node) {
654 return (_get_irn_op(node) == op_Mulh);
658 _is_Mux(const ir_node *node) {
661 ir_op *op = _get_irn_op(node);
662 return (op == op_Mux || ((op == op_Psi) && _get_irn_arity(node) == 3));
668 _is_Load(const ir_node *node) {
670 return (_get_irn_op(node) == op_Load);
674 _is_Store(const ir_node *node) {
676 return (_get_irn_op(node) == op_Store);
680 _is_Sync(const ir_node *node) {
682 return (_get_irn_op(node) == op_Sync);
686 _is_Confirm(const ir_node *node) {
688 return (_get_irn_op(node) == op_Confirm);
692 _is_Pin(const ir_node *node) {
694 return (_get_irn_op(node) == op_Pin);
698 _is_SymConst(const ir_node *node) {
700 return (_get_irn_op(node) == op_SymConst);
704 _is_SymConst_addr_ent(const ir_node *node) {
705 return is_SymConst(node) && get_SymConst_kind(node) == symconst_addr_ent;
709 _is_Cond(const ir_node *node) {
711 return (_get_irn_op(node) == op_Cond);
715 _is_Cmp(const ir_node *node) {
717 return (_get_irn_op(node) == op_Cmp);
721 _is_Alloc(const ir_node *node) {
723 return (_get_irn_op(node) == op_Alloc);
727 _is_Free(const ir_node *node) {
729 return (_get_irn_op(node) == op_Free);
733 _is_Jmp(const ir_node *node) {
735 return (_get_irn_op(node) == op_Jmp);
739 _is_IJmp(const ir_node *node) {
741 return (_get_irn_op(node) == op_IJmp);
745 _is_Raise(const ir_node *node) {
747 return (_get_irn_op(node) == op_Raise);
751 _is_ASM(const ir_node *node) {
753 return (_get_irn_op(node) == op_ASM);
757 _is_Anchor(const ir_node *node) {
758 return (_get_irn_op(node) == op_Anchor);
762 _is_no_Block(const ir_node *node) {
763 assert(node && _is_ir_node(node));
764 return (_get_irn_op(node) != op_Block);
768 _is_Block(const ir_node *node) {
769 assert(node && _is_ir_node(node));
770 return (_get_irn_op(node) == op_Block);
774 _get_Block_n_cfgpreds(const ir_node *node) {
775 assert(_is_Block(node));
776 return _get_irn_arity(node);
779 static INLINE ir_node *
780 _get_Block_cfgpred(const ir_node *node, int pos) {
781 assert(0 <= pos && pos < get_irn_arity(node));
782 assert(_is_Block(node));
783 return _get_irn_n(node, pos);
786 /* Get the predecessor block.
788 * Returns the block corresponding to the predecessor pos.
790 * There are several ambiguities we resolve with this function:
791 * - The direct predecessor can be a Proj, which is not pinned.
792 * We walk from the predecessor to the next pinned node
793 * (skip_Proj) and return the block that node is in.
794 * - If we encounter the Bad node, this function does not return
795 * Start, but the Bad node.
797 static INLINE ir_node *
798 _get_Block_cfgpred_block(const ir_node *node, int pos) {
799 ir_node *res = skip_Proj(get_Block_cfgpred(node, pos));
801 res = get_nodes_block(res);
805 static INLINE unsigned long
806 _get_Block_block_visited(const ir_node *node) {
807 assert(node->op == op_Block);
808 return node->attr.block.block_visited;
812 _set_Block_block_visited(ir_node *node, unsigned long visit) {
813 assert(node->op == op_Block);
814 node->attr.block.block_visited = visit;
817 /* For this current_ir_graph must be set. */
819 _mark_Block_block_visited(ir_node *node) {
820 assert(node->op == op_Block);
821 node->attr.block.block_visited = get_irg_block_visited(current_ir_graph);
825 _Block_not_block_visited(const ir_node *node) {
826 assert(node->op == op_Block);
827 return (node->attr.block.block_visited < get_irg_block_visited(current_ir_graph));
831 _Block_block_visited(const ir_node *node) {
832 assert(node->op == op_Block);
833 return (node->attr.block.block_visited >= get_irg_block_visited(current_ir_graph));
836 static INLINE ir_node *
837 _set_Block_dead(ir_node *block) {
838 assert(_get_irn_op(block) == op_Block);
839 block->attr.block.dom.dom_depth = -1;
840 block->attr.block.is_dead = 1;
845 _is_Block_dead(const ir_node *block) {
846 ir_op *op = _get_irn_op(block);
851 assert(op == op_Block);
852 return block->attr.block.is_dead;
856 static INLINE tarval *_get_Const_tarval(const ir_node *node) {
857 assert(_get_irn_op(node) == op_Const);
858 return node->attr.con.tv;
861 static INLINE int _is_Const_null(const ir_node *node) {
862 return tarval_is_null(_get_Const_tarval(node));
865 static INLINE int _is_Const_one(const ir_node *node) {
866 return tarval_is_one(_get_Const_tarval(node));
869 static INLINE int _is_Const_all_one(const ir_node *node) {
870 return tarval_is_all_one(_get_Const_tarval(node));
873 static INLINE int _is_irn_forking(const ir_node *node) {
874 return is_op_forking(_get_irn_op(node));
877 static INLINE ir_type *_get_irn_type(ir_node *node) {
878 return _get_irn_op(node)->ops.get_type(node);
881 static INLINE ir_type *_get_irn_type_attr(ir_node *node) {
882 return _get_irn_op(node)->ops.get_type_attr(node);
885 static INLINE ir_entity *_get_irn_entity_attr(ir_node *node) {
886 return _get_irn_op(node)->ops.get_entity_attr(node);
889 static INLINE int _is_irn_constlike(const ir_node *node) {
890 return is_op_constlike(_get_irn_op(node));
893 static INLINE int _is_irn_always_opt(const ir_node *node) {
894 return is_op_always_opt(_get_irn_op(node));
897 static INLINE int _is_irn_keep(const ir_node *node) {
898 return is_op_keep(_get_irn_op(node));
901 static INLINE int _is_irn_start_block_placed(const ir_node *node) {
902 return is_op_start_block_placed(_get_irn_op(node));
905 static INLINE int _is_irn_machine_op(const ir_node *node) {
906 return is_op_machine(_get_irn_op(node));
909 static INLINE int _is_irn_machine_operand(const ir_node *node) {
910 return is_op_machine_operand(_get_irn_op(node));
913 static INLINE int _is_irn_machine_user(const ir_node *node, unsigned n) {
914 return is_op_machine_user(_get_irn_op(node), n);
917 static INLINE cond_jmp_predicate _get_Cond_jmp_pred(const ir_node *node) {
918 assert(_get_irn_op(node) == op_Cond);
919 return node->attr.cond.pred;
922 static INLINE void _set_Cond_jmp_pred(ir_node *node, cond_jmp_predicate pred) {
923 assert(_get_irn_op(node) == op_Cond);
924 node->attr.cond.pred = pred;
927 static INLINE int _get_Psi_n_conds(const ir_node *node) {
928 assert(_get_irn_op(node) == op_Psi);
929 return _get_irn_arity(node) >> 1;
932 static INLINE void *_get_irn_generic_attr(ir_node *node) {
936 static INLINE const void *_get_irn_generic_attr_const(const ir_node *node) {
940 static INLINE unsigned _get_irn_idx(const ir_node *node) {
941 return node->node_idx;
944 static INLINE dbg_info *_get_irn_dbg_info(const ir_node *n) {
946 } /* get_irn_dbg_info */
948 static INLINE void _set_irn_dbg_info(ir_node *n, dbg_info *db) {
953 * Sets the Phi list of a block.
956 _set_Block_phis(ir_node *block, ir_node *phi) {
957 assert(_is_Block(block));
958 assert(phi == NULL || _is_Phi(phi));
959 block->attr.block.phis = phi;
963 * Returns the link of a node.
964 * Intern version of libFirm.
966 static INLINE ir_node *
967 _get_Block_phis(const ir_node *block) {
968 assert(_is_Block(block));
969 return block->attr.block.phis;
973 * Sets the next link of a Phi.
976 _set_Phi_next(ir_node *phi, ir_node *next) {
977 assert(_is_Phi(phi));
978 phi->attr.phi.next = next;
982 * Returns the link of a node.
983 * Intern version of libFirm.
985 static INLINE ir_node *
986 _get_Phi_next(const ir_node *phi) {
987 assert(_is_Phi(phi));
988 return phi->attr.phi.next;
991 /** Add a Phi node to the list of Block Phi's. */
993 _add_Block_phi(ir_node *block, ir_node *phi) {
994 _set_Phi_next(phi, _get_Block_phis(block));
995 _set_Block_phis(block, phi);
998 /** Get the Block mark (single bit). */
999 static INLINE unsigned
1000 _get_Block_mark(const ir_node *block) {
1001 assert(_is_Block(block));
1002 return block->attr.block.marked;
1005 /** Set the Block mark (single bit). */
1007 _set_Block_mark(ir_node *block, unsigned mark) {
1008 assert(_is_Block(block));
1009 block->attr.block.marked = mark;
1012 /** Returns non-zero if a node is a routine parameter. */
1014 _is_arg_Proj(const ir_node *node) {
1015 if (! is_Proj(node))
1017 node = get_Proj_pred(node);
1018 if (! is_Proj(node))
1020 return pn_Start_T_args == get_Proj_proj(node) && is_Start(get_Proj_pred(node));
1024 /* this section MUST contain all inline functions */
1025 #define is_ir_node(thing) _is_ir_node(thing)
1026 #define get_irn_intra_arity(node) _get_irn_intra_arity(node)
1027 #define get_irn_inter_arity(node) _get_irn_inter_arity(node)
1028 #define get_irn_arity(node) _get_irn_arity(node)
1029 #define get_irn_intra_n(node, n) _get_irn_intra_n(node, n)
1030 #define get_irn_inter_n(node, n) _get_irn_inter_n(node, n)
1031 #define get_irn_n(node, n) _get_irn_n(node, n)
1032 #define get_irn_mode(node) _get_irn_mode(node)
1033 #define set_irn_mode(node, mode) _set_irn_mode(node, mode)
1034 #define get_irn_op(node) _get_irn_op(node)
1035 #define set_irn_op(node, op) _set_irn_op(node, op)
1036 #define get_irn_opcode(node) _get_irn_opcode(node)
1037 #define get_irn_visited(node) _get_irn_visited(node)
1038 #define set_irn_visited(node, v) _set_irn_visited(node, v)
1039 #define mark_irn_visited(node) _mark_irn_visited(node)
1040 #define irn_visited(node) _irn_visited(node)
1041 #define irn_not_visited(node) _irn_not_visited(node)
1042 #define set_irn_link(node, link) _set_irn_link(node, link)
1043 #define get_irn_link(node) _get_irn_link(node)
1044 #define get_irn_pinned(node) _get_irn_pinned(node)
1045 #define is_irn_pinned_in_irg(node) _is_irn_pinned_in_irg(node)
1046 #define is_unop(node) _is_unop(node)
1047 #define is_binop(node) _is_binop(node)
1048 #define is_Proj(node) _is_Proj(node)
1049 #define is_Filter(node) _is_Filter(node)
1050 #define is_Phi(node) _is_Phi(node)
1051 #define is_Const(node) _is_Const(node)
1052 #define is_Conv(node) _is_Conv(node)
1053 #define is_strictConv(node) _is_strictConv(node)
1054 #define is_Cast(node) _is_Cast(node)
1055 #define is_Unknown(node) _is_Unknown(node)
1056 #define is_Return(node) _is_Return(node)
1057 #define is_Call(node) _is_Call(node)
1058 #define is_CallBegin(node) _is_CallBegin(node)
1059 #define is_Sel(node) _is_Sel(node)
1060 #define is_Mul(node) _is_Mul(node)
1061 #define is_Mulh(node) _is_Mulh(node)
1062 #define is_Mux(node) _is_Mux(node)
1063 #define is_Load(node) _is_Load(node)
1064 #define is_Sync(node) _is_Sync(node)
1065 #define is_Confirm(node) _is_Confirm(node)
1066 #define is_Pin(node) _is_Pin(node)
1067 #define is_SymConst(node) _is_SymConst(node)
1068 #define is_SymConst_addr_ent(node) _is_SymConst_addr_ent(node)
1069 #define is_Cond(node) _is_Cond(node)
1070 #define is_CopyB(node) _is_CopyB(node)
1071 #define is_Cmp(node) _is_Cmp(node)
1072 #define is_Alloc(node) _is_Alloc(node)
1073 #define is_Free(node) _is_Free(node)
1074 #define is_Jmp(node) _is_Jmp(node)
1075 #define is_IJmp(node) _is_IJmp(node)
1076 #define is_Raise(node) _is_Raise(node)
1077 #define is_ASM(node) _is_ASM(node)
1078 #define is_Anchor(node) _is_Anchor(node)
1079 #define is_Bad(node) _is_Bad(node)
1080 #define is_NoMem(node) _is_NoMem(node)
1081 #define is_Start(node) _is_Start(node)
1082 #define is_End(node) _is_End(node)
1083 #define is_Minus(node) _is_Minus(node)
1084 #define is_Abs(node) _is_Abs(node)
1085 #define is_Mod(node) _is_Mod(node)
1086 #define is_Div(node) _is_Div(node)
1087 #define is_DivMod(node) _is_DivMod(node)
1088 #define is_Quot(node) _is_Quot(node)
1089 #define is_Add(node) _is_Add(node)
1090 #define is_And(node) _is_And(node)
1091 #define is_Or(node) _is_Or(node)
1092 #define is_Eor(node) _is_Eor(node)
1093 #define is_Sub(node) _is_Sub(node)
1094 #define is_Not(node) _is_Not(node)
1095 #define is_Shl(node) _is_Shl(node)
1096 #define is_Shr(node) _is_Shr(node)
1097 #define is_Shrs(node) _is_Shrs(node)
1098 #define is_Rotl(node) _is_Rotl(node)
1099 #define is_Psi(node) _is_Psi(node)
1100 #define is_Id(node) _is_Id(node)
1101 #define is_Tuple(node) _is_Tuple(node)
1102 #define is_Bound(node) _is_Bound(node)
1103 #define is_no_Block(node) _is_no_Block(node)
1104 #define is_Block(node) _is_Block(node)
1105 #define get_Block_n_cfgpreds(node) _get_Block_n_cfgpreds(node)
1106 #define get_Block_cfgpred(node, pos) _get_Block_cfgpred(node, pos)
1107 #define get_Block_cfgpred_block(node, pos) _get_Block_cfgpred_block(node, pos)
1108 #define get_Block_block_visited(node) _get_Block_block_visited(node)
1109 #define set_Block_block_visited(node, visit) _set_Block_block_visited(node, visit)
1110 #define mark_Block_block_visited(node) _mark_Block_block_visited(node)
1111 #define Block_not_block_visited(node) _Block_not_block_visited(node)
1112 #define Block_block_visited(node) _Block_block_visited(node)
1113 #define set_Block_dead(block) _set_Block_dead(block)
1114 #define is_Block_dead(block) _is_Block_dead(block)
1115 #define get_Const_tarval(node) _get_Const_tarval(node)
1116 #define is_Const_null(node) _is_Const_null(node)
1117 #define is_Const_one(node) _is_Const_one(node)
1118 #define is_Const_all_one(node) _is_Const_all_one(node)
1119 #define is_irn_forking(node) _is_irn_forking(node)
1120 #define get_irn_type(node) _get_irn_type(node)
1121 #define get_irn_type_attr(node) _get_irn_type_attr(node)
1122 #define get_irn_entity_attr(node) _get_irn_entity_attr(node)
1123 #define is_irn_constlike(node) _is_irn_constlike(node)
1124 #define is_irn_always_opt(node) _is_irn_always_opt(node)
1125 #define is_irn_keep(node) _is_irn_keep(node)
1126 #define is_irn_start_block_placed(node) _is_irn_start_block_placed(node)
1127 #define is_irn_machine_op(node) _is_irn_machine_op(node)
1128 #define is_irn_machine_operand(node) _is_irn_machine_operand(node)
1129 #define is_irn_machine_user(node, n) _is_irn_machine_user(node, n)
1130 #define get_Cond_jmp_pred(node) _get_Cond_jmp_pred(node)
1131 #define set_Cond_jmp_pred(node, pred) _set_Cond_jmp_pred(node, pred)
1132 #define get_Psi_n_conds(node) _get_Psi_n_conds(node)
1133 #define get_irn_generic_attr(node) _get_irn_generic_attr(node)
1134 #define get_irn_generic_attr_const(node) _get_irn_generic_attr_const(node)
1135 #define get_irn_idx(node) _get_irn_idx(node)
1137 #define get_irn_deps(node) _get_irn_deps(node)
1138 #define set_irn_dep(node, pos, dep) _set_irn_dep(node, pos, dep)
1139 #define get_irn_dep(node, pos) _get_irn_dep(node, pos)
1141 #define get_irn_ins_or_deps(node) _get_irn_ins_or_deps(node)
1142 #define get_irn_in_or_dep(node, pos) _get_irn_in_or_dep(node, pos)
1144 #define get_irn_dbg_info(node) _get_irn_dbg_info(node)
1145 #define set_irn_dbg_info(node, db) _set_irn_dbg_info(node, db)
1147 #define set_Block_phis(block, phi) _set_Block_phis(block, phi)
1148 #define get_Block_phis(block) _get_Block_phis(block)
1149 #define add_Block_phi(block, phi) _add_Block_phi(block, phi)
1150 #define get_Block_mark(block) _get_Block_mark(block)
1151 #define set_Block_mark(block, mark) _set_Block_mark(block, mark)
1153 #define set_Phi_next(node, phi) _set_Phi_next(node, phi)
1154 #define get_Phi_next(node) _get_Phi_next(node)
1156 #define is_arg_Proj(node) _is_arg_Proj(node)