74a98d7a34f62a35511f44bfed0486906fe86ef3
[libfirm] / ir / ir / ircons.h
1 /* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
2 ** All rights reserved.
3 **
4 ** Authors: Martin Trapp, Christian Schaefer,
5 **          Goetz Lindenmaier
6 **
7 ** ircons.h ir node construction
8 */
9
10
11 /** !!!
12 *** Ideas for imrovement:
13 ***
14  Handle construction of exceptions more comfortable:
15  Add new constructors that pass the exception region (or better the
16  Phi for the memories, the ex. region can be found from there) as parameter,
17  constructor then adds all Proj nodes and returns the pointer
18  to the Proj node that selects the result of the arithmetic operation.
19
20  Maybe hide the exception region in a global variable, especially if
21  it is always unambiguous.
22 **/
23
24 /**
25 ***  IRCONS
26
27   This file documents all datatypes and constructors needed to
28   build a FIRM representation of a pocedure.  The constructors are
29   also implemented in this file.
30
31   The documentation also gives a short manual how to use the library.
32
33   For extensive documentation of FIRM see UKA Techreport 1999-14.
34
35   DATATYPES
36   =========
37
38   The struct ir_graph
39   -------------------
40
41     This struct contains all information about a procedure.
42     It's allocated directly to memory.
43
44     The fields of ir_graph:
45
46     *ent             The entity describing this procedure.
47
48     The beginning and end of a graph:
49
50     *start_block     This ir_node is the block that contains the unique
51                      start node of the procedure.  With it it contains
52                      the Proj's on starts results.
53                      Further all Const nodes are placed in the start block.
54     *start           This ir_node is the unique start node of the procedure.
55
56     *end_block       This ir_node is the block that contains the unique
57                      end node of the procedure.  This block contains no
58                      further nodes.
59     *end             This ir_node is the unique end node of the procedure.
60
61     The following nodes are Projs from the start node, held in ir_graph for
62     simple access:
63
64     *frame           The ir_node producing the pointer to the stack frame of
65                      the procedure as output.  This is the Proj node on the
66                      third output of the start node.  This output of the start
67                      node is tagged as pns_frame_base.  In FIRM most lokal
68                      variables are modeled as data flow edges.  Static
69                      allocated arrays can not be represented as dataflow
70                      edges. Therefore FIRM has to represent them in the stack
71                      frame.
72
73     *globals         This models a pointer to a space in the memory where
74                      _all_ global things are held.  Select from this pointer
75                      with a Sel node the pointer to a global variable /
76                      procedure / compiler known function... .
77
78     *args            The ir_node that produces the arguments of the method as
79                      it's result.  This is a Proj node on the fourth output of
80                      the start node.  This output is tagged as pns_args.
81
82     *bad             The bad node is an auxiliary node. It is needed only once,
83                      so there is this globally reachable node.
84
85     Datastructures that are private to a graph:
86
87     *obst            An obstack that contains all nodes.
88
89     *current_block   A pointer to the current block.  Any node created with
90                      one of the node constructors (new_<opcode>) are assigned
91                      to this block.  It can be set with switch_block(block).
92                      Only needed for ir construction.
93
94     params/n_loc     An int giving the number of local variables in this
95                      procedure.  This is neede for ir construction. Name will
96                      be changed.
97
98     *value_table     This hash table (pset) is used for global value numbering
99                      for optimizing use in iropt.c.
100
101     *Phi_in_stack;   a stack needed for automatic Phi construction, needed only
102                      during ir construction.
103
104     visited          A int used as flag to traverse the ir_graph.
105
106     block_visited    A int used as a flag to traverse block nodes in the graph.
107
108   Three kinds of nodes
109   --------------------
110
111     There are three kinds of nodes known to the ir:  entities,
112     types, and ir_nodes
113
114     + ir_nodes are the actual nodes of the FIRM intermediate representation.
115       They represent operations on the data of the program and control flow
116       operations.
117
118     + entity ==> implemented in entity.h
119       Refers to a single entity of the compiled program, e.g. a field of a
120       class or a method.  If a method or variable can not be assigned to
121       a method or class or the like, it is a global object.
122
123     + types ==> implemented in type.h
124       With types type information is represented.  There are several type
125       nodes.
126
127   Implementation of the FIRM operations: ir_node
128   ----------------------------------------------
129
130     Ir_nodes represent operations on the data of the program and control flow
131     operations.  Examples of ir_nodes:  Add, Jmp, Cmp
132
133     FIRM is a dataflow graph.  A dataflow graph is a directed graph,
134     so that every node has incoming and outgoing edges.  A node is
135     executable if every input at it's incoming edges is available.
136     Execution of the dataflow graph is started at the Start node which
137     has no incoming edges and ends when the End node executes, even if
138     there are still executable or not executed nodes.  (Is this true,
139     or must all executable nodes be executed?)  (There are exceptions
140     to the dataflow paradigma that all inputs have to be available
141     before a node can execute: Phi, Block.  See UKA Techreport
142     1999-14.)
143
144     The implementation of FIRM differs from the view as a dataflow
145     graph.  To allow fast traversion of the graph edges are
146     implemented as C-pointers.  Inputs to nodes are not ambiguous, the
147     results can be used by several other nodes.  Each input can be
148     implemented as a single pointer to a predecessor node, outputs
149     need to be lists of pointers to successors.  Therefore a node
150     contains pointers to it's predecessor so that the implementation is a
151     dataflow graph with reversed edges.  It has to be traversed bottom
152     up.
153
154     All nodes of the ir have the same basic structure.  They are
155     distinguished by a field containing the opcode.
156
157     The fields of an ir_node:
158
159     kind             A firm_kind tag containing k_ir_node.  This is useful for
160                      dynamically checking the type of a node.
161
162     *op              This ir_op gives the opcode as a tag and a string
163                      and the number of attributes of an ir_node.  There is
164                      one statically allocated struct ir_op for each opcode.
165
166     *mode            The ir_mode of the operation represented by this firm
167                      node.  The mode of the operation is the mode of it's
168                      result.  A Firm mode is a datatype as known to the target,
169                      not a type of the source language.
170
171     visit            A flag for traversing the ir.
172
173     **in             An array with pointers to the node's predecessors.
174
175     *link            A pointer to an ir_node.  With this pointer all Phi nodes
176                      are attached to a Block, i.e., a Block points to it's
177                      first Phi node, this node points to the second Phi node
178                      in the Block and so fourth.  Used in mature_block
179                      to find all Phi nodes to be matured.  It's also used to
180                      annotate a node with a better, optimized version of it.
181
182     attr             An attr struct containing the attributes of the nodes. The
183                      attributes depend on the opcode of the node.  The number
184                      of these attributes is given in op.
185
186   The struct ir_op
187   ----------------
188                      Not yet documented. See irop.h.
189
190   The struct ir_mode
191   ------------------
192                      Not yet documented. See irmode.h.
193
194   GLOBAL VARIABLES
195   ================
196
197   current_ir_graph   Points to the current ir_graph.  All constructors for
198                      nodes add nodes to this graph.
199
200   ir_visited         An int used as flag to traverse the ir_graph.
201
202   block_visited      An int used as a flag to traverse block nodes in the
203                      graph.
204
205                      Others not yet documented.
206
207
208
209   CONSTRUCTOR FOR IR_GRAPH
210   ========================
211
212   ir_graph *new_ir_graph (entity *ent, int params);
213   -------------------------------------------------
214
215   This constructor generates the basic infrastructure needed to
216   represent a procedure in FIRM.
217
218   The parameters of new_ir_graph are:
219
220     *ent             A pointer to an entity representing the procedure.
221
222     params           An integer giving the number of local variables in the
223                      procedure.
224
225   It allocates an ir_graph and sets current_ir_graph to point to this
226   graph.  Further it allocates the following nodes needed for every
227   procedure:
228
229   * The start block containing a start node and Proj nodes for it's
230     five results (X, M, P, P, T).
231   * The end block containing an end node. This block is not matured
232     after executing new_ir_graph as predecessors need to be added to it.
233     (Maturing a block means fixing it's number of predecessors.)
234   * The current block, which is empty and also not matured.
235
236   Further it enters the global store into the datastructure of the start
237   block that contanis all valid values in this block (set_store()).  This
238   datastructure is used to build the Phi nodes and removed after completion
239   of the graph.
240   There is no path from end to start in the graph after calling ir_graph.
241
242
243   PROCEDURE TO CONSTRUCT AN IR GRAPH
244   ==================================
245
246   This library supplies several interfaces to construct a FIRM graph for
247   a program:
248   * A "comfortable" interface generating SSA automatically.  Automatically
249     computed predecessors of nodes need not be specified in the constructors.
250     (new_<Node> constructurs and a set of additional routines.)
251   * A less comfortable interface where all predecessors except the block
252     an operation belongs to need to be specified.  SSA must be constructed
253     by hand.  (new_<Node> constructors and switch_block()).  This interface
254     is called "block oriented".  It automatically calles the local optimizations
255     for each new node.
256   * An even less comfortable interface where the block needs to be specified
257     explicitly.  This is called the "raw" interface. (new_r_<Node>
258     constructors).  These nodes are not optimized.
259
260   To use the functionality of the comfortable interface correctly the Front
261   End needs to follow certain protocols.  This is explained in the following.
262   To build a correct IR with the other interfaces study the semantics of
263   the firm node (See tech-reprot UKA 1999-44).  For the construction of
264   types and entities see the documentation in those modules.
265
266   First the Frontend needs to decide which variables and values used in
267   a procedure can be represented by dataflow edges.  These are variables
268   that need not be saved to memory as they cause no side effects visible
269   out of the procedure.  In general these are all compiler generated
270   variables and simple local variables of the procedure as integers,
271   reals and pointers.  The frontend has to count and number these variables.
272
273   First an ir_graph needs to be constructed with new_ir_graph.  The
274   constructor gets the number of local variables.  The graph is hold in the
275   global variable irg.
276
277   Now the construction of the procedure can start.  Several basic blocks can
278   be constructed in parallel, but the code within each block needs to
279   be constructed (almost) in program order.
280
281   A global variable holds the current basic block.  All (non block) nodes
282   generated are added to this block.  The current block can be set with
283   switch_block(block).  If several blocks are constructed in parallel block
284   switches need to be performed constantly.
285
286   To generate a Block node (with the comfortable interface) it's predecessor
287   control flow nodes need not be known.  In case of cyclic control flow these
288   can not be known when the block is constructed.  With add_in_edge(block,
289   cfnode) predecessors can be added to the block.  If all predecessors are
290   added to the block mature_block(b) needs to be called.  Calling mature_block
291   early improves the efficiency of the Phi node construction algorithm.
292   But if several  blocks are constructed at once, mature_block must only
293   be called after performing all set_values and set_stores in the block!
294   (See documentation of new_immBlock constructor.)
295
296   The constructors of arithmetic nodes require that their predecessors
297   are mentioned.  Sometimes these are available in the Frontend as the
298   predecessors have just been generated by the frontend.  If they are local
299   values the predecessors can be obtained from the library with a call to
300   get_value(local_val_nr).  (local_val_nr needs to be administered by
301   the Frontend.)  A call to get_value triggers the generation of Phi nodes.
302   If an arithmetic operation produces a local value this value needs to be
303   passed to the library by set_value(node, local_val_nr).
304   In straight line code these two operations just remember and return the
305   pointer to nodes producing the value.  If the value passes block boundaries
306   Phi nodes can be inserted.
307   Similar routines exist to manage the Memory operands: set_store and
308   get_store.
309
310   Several nodes produce more than one result.  An example is the Div node.
311   Such nodes return tuples of values.  From these individual values can be
312   extracted by proj nodes.
313
314   The following example illustrates the construction of a simple basic block
315   with two predecessors stored in variables cf_pred1 and cf_pred2, containing
316   the code
317     a = a div a;
318   and finally jumping to an other block.  The variable a got the local_val_nr
319   42 by the frontend.
320
321   ir_node *this_block, *cf_pred1, *cf_pred2, *a_val, *mem, *div, *res, *cf_op;
322
323   this_block = new_immBlock();
324   add_in_edge(this_block, cf_pred1);
325   add_in_edge(this_block, cf_pred2);
326   mature_block(this_block);
327   a_val = get_value(17, mode_I);
328   mem = get_store();
329   div = new_Div(mem, a_val, a_val);
330   mem = new_Proj(div, mode_M, 0);   * for the numbers for Proj see docu *
331   res = new_Proj(div, mode_I, 2);
332   set_store(mem);
333   set_value(res, 17);
334   cf_op = new_Jmp();
335
336   For further information look at the documentation of the nodes and
337   constructors and at the paragraph COPING WITH DATA OBJECTS at the
338   end of this documentation.
339
340   The comfortable interface contains the following routines further explained
341   below:
342
343   ir_node *new_immBlock  (void);
344   ir_node *new_Start  (void);
345   ir_node *new_End    (void);
346   ir_node *new_Jmp    (void);
347   ir_node *new_Cond   (ir_node *c);
348   ir_node *new_Return (ir_node *store, int arity, ir_node **in);
349   ir_node *new_Raise  (ir_node *store, ir_node *obj);
350   ir_node *new_Const  (ir_mode *mode, tarval *con);
351   ir_node *new_SymConst (type_or_id *value, symconst_kind kind);
352   ir_node *new_simpleSel (ir_node *store, ir_node *objptr, entity *ent);
353   ir_node *new_Sel    (ir_node *store, ir_node *objptr, int arity,
354                        ir_node **in, entity *ent);
355   ir_node *new_Call   (ir_node *store, ir_node *callee, int arity,
356                        ir_node **in, type_method *type);
357   ir_node *new_Add    (ir_node *op1, ir_node *op2, ir_mode *mode);
358   ir_node *new_Sub    (ir_node *op1, ir_node *op2, ir_mode *mode);
359   ir_node *new_Minus  (ir_node *op,  ir_mode *mode);
360   ir_node *new_Mul    (ir_node *op1, ir_node *op2, ir_mode *mode);
361   ir_node *new_Quot   (ir_node *memop, ir_node *op1, ir_node *op2);
362   ir_node *new_DivMod (ir_node *memop, ir_node *op1, ir_node *op2);
363   ir_node *new_Div    (ir_node *memop, ir_node *op1, ir_node *op2);
364   ir_node *new_Mod    (ir_node *memop, ir_node *op1, ir_node *op2);
365   ir_node *new_Abs    (ir_node *op,                ir_mode *mode);
366   ir_node *new_And    (ir_node *op1, ir_node *op2, ir_mode *mode);
367   ir_node *new_Or     (ir_node *op1, ir_node *op2, ir_mode *mode);
368   ir_node *new_Eor    (ir_node *op1, ir_node *op2, ir_mode *mode);
369   ir_node *new_Not    (ir_node *op,                ir_mode *mode);
370   ir_node *new_Shl    (ir_node *op,  ir_node *k,   ir_mode *mode);
371   ir_node *new_Shr    (ir_node *op,  ir_node *k,   ir_mode *mode);
372   ir_node *new_Shrs   (ir_node *op,  ir_node *k,   ir_mode *mode);
373   ir_node *new_Rot    (ir_node *op,  ir_node *k,   ir_mode *mode);
374   ir_node *new_Cmp    (ir_node *op1, ir_node *op2);
375   ir_node *new_Conv   (ir_node *op, ir_mode *mode);
376   ir_node *new_Load   (ir_node *store, ir_node *addr);
377   ir_node *new_Store  (ir_node *store, ir_node *addr, ir_node *val);
378   ir_node *new_Alloc  (ir_node *store, ir_node *size, type *alloc_type,
379                        where_alloc where);
380   ir_node *new_Free   (ir_node *store, ir_node *ptr, ir_node *size,
381                      type *free_type);
382   ir_node *new_Proj   (ir_node *arg, ir_mode *mode, long proj);
383
384   void add_in_edge (ir_node *block, ir_node *jmp);
385   void     mature_block (ir_node *block);
386   void switch_block (ir_node *target);
387   ir_node *get_value (int pos, ir_mode *mode);
388   void set_value (int pos, ir_node *value);
389   ir_node *get_store (void);
390   void set_store (ir_node *store);
391
392
393   IR_NODES AND CONSTRUCTORS FOR IR_NODES
394   =======================================
395
396   All ir_nodes are defined by a common data structure.  They are distinguished
397   by their opcode and differ in the number of their attributes.
398
399   The constructor for the block node sets current_block to itself.
400   Const nodes are always added to the start block.
401   All other constructors add the created node to the current_block.
402   swich_block(block) allows to set the current block to block.
403
404   Watch for my inconsistent use of input and predecessor (dataflow view)
405   and `the node points to' (implementation view).
406
407   The following description of the nodes lists four properties them if these
408   are of interest:
409    - the parameters to the constructor
410    - the inputs of the Firm node
411    - the outputs of the Firm node
412    - attributes to the node
413
414   BASIC BLOCKS
415   ------------
416
417   ir_node *new_immBlock (void)
418   ----------------------------
419
420   Creates a new block.  Sets current_block to itself.  When a new block is
421   created it cannot be known how many predecessors this block will have in the
422   control flow graph. Therefore the list of inputs can not be fixed at
423   creation.  Predecessors can be added with add_in_edge (block, control flow
424   operation).  With every added predecessor the number of inputs to Phi nodes
425   also changes.
426
427   The block can be completed by mature_block(block) if all predecessors are
428   known.  If several blocks are built at once, mature_block can only be called
429   after set_value has been called for all values that are life at the end
430   of the block.  This is necessary so that Phi nodes created by mature_block
431   get the right predecessors in case of cyclic dependencies.  If all set_values
432   of this block are called after maturing it and before calling get_value
433   in some block that is control flow dependent on this block, the construction
434   is correct.
435
436   Example for faulty ir construction:  (draw the graph on a paper and you'll
437                                         get it ;-)
438
439     block_before_loop = new_block();
440     set_value(x);
441     mature_block(block_before_loop);
442     before2header = new_Jmp;
443
444     loop_header = new_block ();
445     header2body - new_Jmp();
446
447     loop_body = new_block ();
448     body2header = new_Jmp();
449
450     add_in_edge(loop_header, before2header);
451     add_in_edge(loop_header, body2header);
452     add_in_edge(loop_body, header2body);
453
454     mature_block(loop_header);
455     mature_block(loop_body);
456
457     get_value(loop_body, x);   // gets the Phi in loop_header
458     set_value(loop_header, x); // sets the value the above get_value should
459     // have returned!!!
460
461   Mature_block also fixes the number of inputs to the Phi nodes.  Mature_block
462   should be called as early as possible, as afterwards the generation of Phi
463   nodes is more efficient.
464
465   Inputs:
466     There is an input for each control flow predecessor of the block.
467     The input points to an instruction producing an output of type X.
468     Possible predecessors:  Start, Jmp, Cond, Raise or Return or any node
469     possibly causing an exception.  (Often the real predecessors are Projs.)
470   Output:
471     Mode BB (R), all nodes belonging to this block should consume this output.
472     As they are strict (except Block and Phi node) it is a necessary condition
473     that the block node executed before any other node in this block executes.
474   Attributes:
475     block.matured  Indicates whether the block is mature.
476     block.**graph_arr
477                     This attribute contains all local values valid in this
478                     block. This is needed to build the Phi nodes and removed
479                     if the graph is complete.  This field is used by the
480                     internal construction algorithm and should not be accessed
481                     from outside.
482
483
484   ir_node *new_Block (int arity, ir_node **in)
485   --------------------------------------------
486
487   Creates a new Block with the given list of predecessors.  This block
488   is mature.
489
490
491   CONTROL FLOW OPERATIONS
492   -----------------------
493
494   In each block there must be exactly one of the control flow
495   operations Start, End, Jmp, Cond, Return or Raise.  The output of a
496   control flow operation points to the block to be executed next.
497
498   ir_node *new_Start (void)
499   -------------------------
500
501   Creates a start node.  Not actually needed public.  There is only one such
502   node in each procedure which is automatically created by new_ir_graph.
503
504   Inputs:
505     No inputs except the block it belogns to.
506   Output:
507     A tuple of 4 (5, 6) distinct values. These are labeled by the following
508     projection numbers (pns_number):
509     * pns_initial_exec
510                      mode X, points to the first block to be executed.
511     * pns_global_store
512                      mode M, the global store
513     * pns_frame_base mode P, a pointer to the base of the procedures
514                              stack frame.
515     * pns_globals    mode P, a pointer to the part of the memory containing
516                              _all_ global things.
517     * pns_args       mode T, a tuple containing all arguments of the procedure.
518
519
520   ir_node *new_End (void)
521   -----------------------
522
523   Creates an end node.  Not actually needed public.  There is only one such
524   node in each procedure which is automatically created by new_ir_graph.
525
526   Inputs:
527     No inputs except the block it belongs to.
528   Output:
529     No output.
530
531   ir_node *new_Jmp (void)
532   -----------------------
533
534   Creates a Jmp node.
535
536   Inputs:
537     The block the node belongs to
538   Output:
539     Control flow to the next block.
540
541   ir_node *new_Cond (ir_node *c)
542   ------------------------------
543
544   Creates a Cond node.  There are two versions of this node.
545
546   The Boolean Cond:
547   Input:
548     A value of mode b.
549   Output:
550     A tuple of two control flows.  The first is taken if the input is
551     false, the second if it is true.
552
553   The Switch Cond:
554   Input:
555     A value of mode I_u. (i)
556   Output:
557     A tuple of n control flows.  If the Cond's input is i, control
558     flow will procede along output i. If the input is >= n control
559     flow proceeds along output n.
560
561   ir_node *new_Return (in_node *store, int arity, ir_node **in)
562   -------------------------------------------------------------
563
564   The return node has as inputs the results of the procedure.  It
565   passes the control flow to the end_block.
566
567   Inputs:
568     The memory state.
569     All results.
570   Output
571     Control flow to the end block.
572
573   ir_node *new_Raise (ir_node *store, ir_node *obj)
574   -------------------------------------------------
575
576   Raises an exception.  Unconditional change of control flow.  Writes
577   an explicit Except variable to memory to pass it to the exception
578   handler.  See TechReport 1999-14, chapter Exceptions.
579
580   Inputs:
581     The memory state.
582     A pointer to the Except variable.
583   Output:
584     A tuple of control flow and the changed memory state.  The control flow
585     points to the exception handler if it is definied in this procedure,
586     else it points to the end_block.
587
588
589   CONSTANTS
590   ---------
591
592   ir_node *new_Const (ir_mode *mode, tarval *con)
593   -----------------------------------------------
594
595   Creates a constant in the constant table and adds a Const node
596   returning this value to the start block.
597
598   Parameters:
599     *mode            The mode of the constant.
600     *con             Points to an entry in the constant table.
601                      This pointer is added to the attributes of
602                      the node (self->attr.con)
603   Inputs:
604     No inputs except the block it belogns to.
605   Output:
606     The constant value.
607   Attribute:
608     attr.con   A tarval* pointer to the proper entry in the constant
609                table.
610
611   ir_node *new_SymConst (type *type, symconst_kind kind)
612   ------------------------------------------------------------
613
614   There are three kinds of symbolic constants:
615     type_tag  The symbolic constant represents a type tag.
616     size      The symbolic constant represents the size of a class.
617     link_info Information for the linker, e.g. the name of a global
618               variable.
619
620   Parameters
621     kind       The kind of the symbolic constant: type_tag, size or link_info.
622     *type      Points to the type the tag stands for or to the type
623                whose size is represented by the constant.
624
625   Inputs:
626     No inputs except the block it belogns to.
627   Output:
628     An unsigned integer (I_u) or a pointer (P).
629
630   Attributes:
631     attr.i.num       The symconst_kind, i.e. one of
632                       - type_tag
633                       - size
634                       - linkage_ptr_info
635       If the attr.i.num is type_tag or size, the node contains an attribute
636     attr.i.*type     A pointer to a type_class.
637       if it is linkage_ptr_info it contains
638     attr.i.*ptrinfo  A ident holding information for the linker.
639
640   THE SELECT NODE
641   ---------------
642
643   ir_node *new_simpleSel (ir_node *store, ir_node *frame, entity *sel)
644   --------------------------------------------------------------------
645
646
647   Selects an entity from a compound type. This entity can be a field or
648   a method.
649
650   Parameters:
651     *store     The memory in which the object the entity should be selected
652                from is allocated.
653     *frame     The pointer to the object.
654     *sel       The entity to select.
655
656   Inputs:
657     The memory containing the object.
658     A pointer to the object.
659     An unsigned integer.
660   Output:
661     A pointer to the selected entity.
662   Attributes:
663     attr.sel   Pointer to the entity
664
665
666   ir_node *new_Sel (ir_node *store, ir_node *frame, int arity, ir_node **in,
667   --------------------------------------------------------------------------
668                     entity *sel)
669                     ------------
670
671   Selects a field from an array type.  The entity has as owner the array, as
672   type the arrays element type.  The indexes to access an array element are
673   given also.
674
675   Parameters:
676     *store     The memory in which the object the entity should be selected from
677                is allocated.
678     *frame     The pointer to the object.
679     *arity     number of array indexes.
680     *in        array with index inputs to the node.
681     *sel       The entity to select.
682
683   Inputs:
684     The memory containing the object.
685     A pointer to the object.
686     As much unsigned integer as there are array expressions.
687   Output:
688     A pointer to the selected entity.
689   Attributes:
690     attr.sel   Pointer to the entity
691
692   The constructors new_Sel and new_simpleSel generate the same ir nodes.
693   simpleSel just sets the arity of the index inputs to zero.
694
695
696   ARITHMETIC OPERATIONS
697   ---------------------
698
699   ir_node *new_Call (ir_node *store, ir_node *callee, int arity, ir_node **in,
700   ----------------------------------------------------------------------------
701                      type_method *type)
702                      ------------------
703
704   Creates a procedure call.
705
706   Parameters
707     *store           The actual store.
708     *callee          A pointer to the called procedure.
709     arity            The number of procedure parameters.
710     **in             An array with the pointers to the parameters.
711                      The constructor copies this array.
712     *type            Type information of the procedure called.
713
714   Inputs:
715     The store, the callee and the parameters.
716   Output:
717     A tuple containing the eventually changed store and the procedure
718     results.
719   Attributes:
720     attr.call        Contains the type information for the procedure.
721
722   ir_node *new_Add (ir_node *op1, ir_node *op2, ir_mode *mode)
723   ------------------------------------------------------------
724
725   Trivial.
726
727   ir_node *new_Sub (ir_node *op1, ir_node *op2, ir_mode *mode)
728   ------------------------------------------------------------
729
730   Trivial.
731
732   ir_node *new_Minus (ir_node *op, ir_mode *mode)
733   -----------------------------------------------
734
735   This constructor is for unary Minus operations on floating point
736   values.  Such a Minus can trap if it is implemented as a Sub from
737   zero due to rounding errors.
738
739   ir_node *new_Mul (ir_node *op1, ir_node *op2, ir_mode *mode)
740   ------------------------------------------------------------
741
742   Trivial.
743
744   ir_node *new_Quot (ir_node *memop, ir_node *op1, ir_node *op2)
745   --------------------------------------------------------------
746
747   Quot performs exact division of floating point numbers.  It's mode
748   is Tuple, the mode of the result must be annotated to the Proj
749   that extracts the result of the arithmetic operations.
750
751   Inputs:
752     The store needed to model exceptions and the two operands.
753   Output:
754     A tuple contaning a memory and a execution for modeling exceptions
755     and the result of the arithmetic operation.
756
757   ir_node *new_DivMod (ir_node *memop, ir_node *op1, ir_node *op2)
758   ----------------------------------------------------------------
759
760   Performs Div and Mod on interger values.
761
762   Output:
763     A tuple contaning a memory and a execution for modeling exceptions
764     and the two result of the arithmetic operations.
765
766   ir_node *new_Div (ir_node *memop, ir_node *op1, ir_node *op2)
767   -------------------------------------------------------------
768
769   Trivial.
770
771   ir_node *new_Mod (ir_node *memop, ir_node *op1, ir_node *op2)
772   -------------------------------------------------------------
773
774   Trivial.
775
776   ir_node *new_Abs (ir_node *op, ir_mode *mode)
777   ---------------------------------------------
778
779   Trivial.
780
781   ir_node *new_And (ir_node *op1, ir_node *op2, ir_mode *mode)
782   ------------------------------------------------------------
783
784   Trivial.
785
786   ir_node *new_Or (ir_node *op1, ir_node *op2, ir_mode *mode)
787   -----------------------------------------------------------
788
789   Trivial.
790
791   ir_node *new_Eor (ir_node *op1, ir_node *op2, ir_mode *mode)
792   ------------------------------------------------------------
793
794   Trivial.
795
796   ir_node *new_Not (ir_node *op, ir_mode *mode)
797   ---------------------------------------------
798
799   This node constructs a constant where all bits are set to one
800   and a Eor of this constant and the operator.  This simulates a
801   Not operation.
802
803   ir_node *new_Shl (ir_node *op, ir_node *k, ir_mode *mode)
804   ---------------------------------------------------------
805
806   Trivial.
807
808   ir_node *new_Shr (ir_node *op, ir_node *k, ir_mode *mode)
809   ---------------------------------------------------------
810
811   Logic shift right, i.e., zero extended.
812
813
814   ir_node *new_Shrs (ir_node *op, ir_node *k, ir_mode *mode)
815   ----------------------------------------------------------
816
817   Arithmetic shift right, i.e., sign extended.
818
819   ir_node *new_Rot (ir_node *op, ir_node *k, ir_mode *mode)
820   ---------------------------------------------------------
821
822   Rotates the operand to the (right??) by k bits.
823
824   ir_node *new_Conv (ir_node *op, ir_mode *mode)
825   ---------------------------------------------
826
827   Mode conversion.  For allowed conversions see UKA Tech Report
828   1999-14.
829
830   ir_node *new_Cmp (ir_node *op1, ir_node *op2)
831   ---------------------------------------------
832
833   Input:
834     The two values to be compared.
835   Output:
836     A 16-tuple containing the results of the 16 different comparisons.
837     The following is a list giving the comparisons and a projection
838     number (pnc_number) to use in Proj nodes to extract the proper result.
839       False     false
840       Eq        equal
841       Lt        less
842       Le        less or equal
843       Gt        greater
844       Ge        greater of equal
845       Lg        less or greater
846       Leg       less, equal or greater = ordered
847       Uo        unordered
848       Ue        unordered or equal
849       Ul        unordered or less
850       Ule       unordered, less or equal
851       Ug        unordered or greater
852       Uge       unordered, greater or equal
853       Ne        unordered, less or greater = not equal
854       True      true
855
856
857
858   THE PHI NODE
859   ------------
860
861   In general, Phi nodes are automaitcally inserted.  In some cases, if
862   all predecessors of a block are known, an explicit Phi node constructor
863   is needed.  E.g., to construct a FIRM graph for a statement as
864     a = (b==c) ? 2 : 5;
865
866   ir_node *new_Phi (int arity, ir_node **in, ir_mode *mode)
867   ---------------------------------------------------------
868
869   Creates a Phi node. The in's order has to correspond to the order
870   of in's of current_block.  This is not checked by the library!
871
872   Parameter
873     arity            number of predecessors
874     **in             array with predecessors
875     *mode            The mode of it's inputs and output.
876   Inputs:
877     A Phi node has as many inputs as the block it belongs to.
878     Each input points to a definition of the same value on a
879     different path in the control flow.
880   Output
881     The definition valid in this block.
882
883
884   OPERATIONS TO MANAGE MEMORY EXPLICITLY
885   --------------------------------------
886
887   ir_node *new_Load (ir_node *store, ir_node *addr)
888   ----------------------------------------------------------------
889
890   The Load operation reads a value from memory.
891
892   Parameters:
893   *store        The current memory.
894   *addr         A pointer to the variable to be read in this memory.
895   *mode         The mode of the loaded value.
896
897   Inputs:
898     The memory and a pointer to a variable in this memory.
899   Output:
900     A tuple of the memory, a control flow to be taken in case of
901     an exception and the loaded value.
902
903   ir_node *new_Store (ir_node *store, ir_node *addr, ir_node *val)
904   ----------------------------------------------------------------
905
906   The Store operation writes a value to a variable in memory.
907
908   Inputs:
909     The memory, a pointer to a variable in this memory and the value
910     to write to this variable.
911   Output:
912     A tuple of the changed memory and a control flow to be taken in
913     case of an exception.
914
915   ir_node *new_Alloc (ir_node *store, ir_node *size, type *alloc_type,
916   --------------------------------------------------------------------
917                       where_alloc where)
918                       ------------------
919
920   The Alloc node allocates a new variable.  It can be specified whether the
921   variable should be allocated to the stack or to the heap.
922
923   Parameters:
924     *store       The memory which shall contain the new variable.
925     **    *size        The number of bytes to allocate. Old. **
926     *size        We decided that the size easily can be derived from the type.
927                  This field is for allocating arrays, i.e., it gives the multiple
928                  of the size of alloc_type to allocate memory for.
929     *alloc_type  The type of the allocated variable.
930     where        Where to allocate the variable, either heap_alloc or stack_alloc.
931
932   Inputs:
933     A memory and an unsigned integer.
934   Output:
935     A tuple of the changed memory, a control flow to be taken in
936     case of an exception and the pointer to the new variable.
937   Attributes:
938     a.where          Indicates where the variable is allocated.
939     a.*type          A pointer to the class the allocated data object
940                      belongs to.
941
942   ir_node *new_Free (ir_node *store, ir_node *ptr, type *free_type)
943   ------------------------------------------------------------------
944
945   The Free node frees memory of the given variable.
946
947   Parameters:
948     *store       The memory which shall contain the new variable.
949     *ptr         The pointer to the object to free.
950     *size        The number of objects of type free_type to free in a sequence.
951     *free_type   The type of the freed variable.
952
953   Inputs:
954     A memory, a pointer and an unsigned integer.
955   Output:
956     The changed memory.
957   Attributes:
958     f.*type          A pointer to the type information of the freed data object.
959
960   Not Implemented!
961
962   ir_node *new_Sync (int arity, ir_node **in)
963   -------------------------------------------
964
965   The Sync operation unifies several partial memory blocks.  These blocks
966   have to be pairwise disjunct or the values in common locations have to
967   be identical.  This operation allows to specify all operations that eventually
968   need several partial memory blocks as input with a single entrance by
969   unifying the memories with a preceding Sync operation.
970
971   Parameters
972     arity    The number of memories to syncronize.
973     **in     An array of pointers to nodes that produce an output of
974              type memory.
975   Inputs
976     Several memories.
977   Output
978     The unified memory.
979
980
981   SPECIAL OPERATIONS
982   ------------------
983
984   ir_node *new_Bad (void)
985   -----------------------
986
987   Returns the unique Bad node current_ir_graph->bad.
988   This node is used to express results of dead code elimination.
989
990   ir_node *new_Proj (ir_node *arg, ir_mode *mode, long proj)
991   ----------------------------------------------------------
992
993   Selects one entry of a tuple.  This is a hidden `fat edge'.
994
995   Parameters
996     *arg      A node producing a tuple.
997     *mode     The mode of the value to project.
998     proj      The position of the value in the tuple.
999   Input:
1000     The tuple.
1001   Output:
1002     The value.
1003
1004   ir_node *new_Tuple (int arity, ir_node **in)
1005   --------------------------------------------
1006
1007   Builds a Tuple from single values.  This is needed to implement
1008   optimizations that remove a node that produced a tuple.  The node can be
1009   replaced by the Tuple operation so that the following Proj nodes have not to
1010   be changed.  (They are hard to find due to the implementation with pointers
1011   in only one direction.)  The Tuple node is smaller than any other
1012   node, so that a node can be changed into a Tuple by just changing it's
1013   opcode and giving it a new in array.
1014
1015   Parameters
1016     arity    The number of tuple elements.
1017     **in     An array containing pointers to the nodes producing the
1018              tuple elements.
1019
1020   ir_node *new_Id (ir_node *val, ir_mode *mode)
1021   ---------------------------------------------
1022
1023   The single output of the Id operation is it's input.  Also needed
1024   for optimizations.
1025
1026
1027   COPING WITH DATA OBJECTS
1028   ========================
1029
1030   Two kinds of data objects have to be distinguished for generating
1031   FIRM.  First there are local variables other than arrays that are
1032   known to be alias free.  Second there are all other data objects.
1033   For the first a common SSA representation is built, the second
1034   are modeled by saving them to memory.  The memory is treated as
1035   a single local variable, the alias problem is hidden in the
1036   content of this variable.
1037
1038   All values known in a Block are listed in the block's attribute,
1039   block.**graph_arr which is used to automatically insert Phi nodes.
1040   The following two funcions can be used to add a newly computed value
1041   to the array, or to get the producer of a value, i.e., the current
1042   live value.
1043
1044   inline void set_value (int pos, ir_node *value)
1045   -----------------------------------------------
1046
1047   Has to be called for every assignment to a local variable.  It
1048   adds the value to the array of used values at position pos.  Pos
1049   has to be a unique identifier for an entry in the procedure's
1050   definition table.  It can be used to access the value again.
1051
1052   ir_node *get_value (int pos, ir_mode *mode)
1053   -------------------------------------------
1054
1055   Returns the node defining the value referred to by pos. If the
1056   value is not defined in this block a Phi node is generated and
1057   all definitions reaching this Phi node are collected.  It can
1058   happen that the algorithm allocates an unnecessary Phi node,
1059   e.g. if there is only one definition of this value, but this
1060   definition reaches the currend block on several different
1061   paths.  This Phi node will be eliminated if optimizations are
1062   turned on right after it's creation.
1063
1064
1065   There are two special routines for the global store:
1066
1067   inline void set_store (ir_node *store)
1068   --------------------------------------
1069
1070   Adds the store to the array of known values at a reserved
1071   position.
1072
1073   inline ir_node *get_store (void)
1074   --------------------------------
1075
1076   Returns the node defining the actual store.
1077
1078 **/
1079
1080
1081 # ifndef _IRCONS_H_
1082 # define _IRCONS_H_
1083
1084 # include "irgraph.h"
1085 # include "irnode.h"
1086 # include "irmode.h"
1087 # include "entity.h"
1088 # include "tv.h"
1089 # include "type.h"
1090 # include "pdeq.h"
1091
1092 #if USE_EXPICIT_PHI_IN_STACK
1093 /* A stack needed for the automatic Phi node construction in constructor
1094    Phi_in. */
1095 typedef struct Phi_in_stack Phi_in_stack;
1096 #endif
1097
1098 /***************************************************************************/
1099 /* The raw interface                                                       */
1100
1101 ir_node *new_r_Block  (ir_graph *irg,  int arity, ir_node **in);
1102 ir_node *new_r_Start  (ir_graph *irg, ir_node *block);
1103 ir_node *new_r_End    (ir_graph *irg, ir_node *block);
1104 ir_node *new_r_Jmp    (ir_graph *irg, ir_node *block);
1105 ir_node *new_r_Cond   (ir_graph *irg, ir_node *block, ir_node *c);
1106 ir_node *new_r_Return (ir_graph *irg, ir_node *block,
1107                        ir_node *store, int arity, ir_node **in);
1108 ir_node *new_r_Raise  (ir_graph *irg, ir_node *block,
1109                        ir_node *store, ir_node *obj);
1110 ir_node *new_r_Const  (ir_graph *irg, ir_node *block,
1111                        ir_mode *mode, tarval *con);
1112 ir_node *new_r_SymConst (ir_graph *irg, ir_node *block,
1113                        type_or_id *value, symconst_kind symkind);
1114 ir_node *new_r_Sel    (ir_graph *irg, ir_node *block, ir_node *store,
1115                        ir_node *objptr, int n_index, ir_node **index,
1116                        entity *ent);
1117 ir_node *new_r_Call   (ir_graph *irg, ir_node *block, ir_node *store,
1118                        ir_node *callee, int arity, ir_node **in,
1119                        type_method *type);
1120 ir_node *new_r_Add    (ir_graph *irg, ir_node *block,
1121                        ir_node *op1, ir_node *op2, ir_mode *mode);
1122 ir_node *new_r_Sub    (ir_graph *irg, ir_node *block,
1123                        ir_node *op1, ir_node *op2, ir_mode *mode);
1124 ir_node *new_r_Minus  (ir_graph *irg, ir_node *block,
1125                        ir_node *op,  ir_mode *mode);
1126 ir_node *new_r_Mul    (ir_graph *irg, ir_node *block,
1127                        ir_node *op1, ir_node *op2, ir_mode *mode);
1128 ir_node *new_r_Quot   (ir_graph *irg, ir_node *block,
1129                        ir_node *memop, ir_node *op1, ir_node *op2);
1130 ir_node *new_r_DivMod (ir_graph *irg, ir_node *block,
1131                        ir_node *memop, ir_node *op1, ir_node *op2);
1132 ir_node *new_r_Div    (ir_graph *irg, ir_node *block,
1133                        ir_node *memop, ir_node *op1, ir_node *op2);
1134 ir_node *new_r_Mod    (ir_graph *irg, ir_node *block,
1135                        ir_node *memop, ir_node *op1, ir_node *op2);
1136 ir_node *new_r_Abs    (ir_graph *irg, ir_node *block,
1137                        ir_node *op, ir_mode *mode);
1138 ir_node *new_r_And    (ir_graph *irg, ir_node *block,
1139                        ir_node *op1, ir_node *op2, ir_mode *mode);
1140 ir_node *new_r_Or     (ir_graph *irg, ir_node *block,
1141                        ir_node *op1, ir_node *op2, ir_mode *mode);
1142 ir_node *new_r_Eor    (ir_graph *irg, ir_node *block,
1143                        ir_node *op1, ir_node *op2, ir_mode *mode);
1144 ir_node *new_r_Not    (ir_graph *irg, ir_node *block,
1145                        ir_node *op, ir_mode *mode);
1146 ir_node *new_r_Cmp    (ir_graph *irg, ir_node *block,
1147                        ir_node *op1, ir_node *op2);
1148 ir_node *new_r_Shl    (ir_graph *irg, ir_node *block,
1149                        ir_node *op, ir_node *k, ir_mode *mode);
1150 ir_node *new_r_Shr    (ir_graph *irg, ir_node *block,
1151                        ir_node *op, ir_node *k, ir_mode *mode);
1152 ir_node *new_r_Shrs   (ir_graph *irg, ir_node *block,
1153                        ir_node *op, ir_node *k, ir_mode *mode);
1154 ir_node *new_r_Rot    (ir_graph *irg, ir_node *block,
1155                        ir_node *op, ir_node *k, ir_mode *mode);
1156 ir_node *new_r_Conv   (ir_graph *irg, ir_node *block,
1157                        ir_node *op, ir_mode *mode);
1158 ir_node *new_r_Phi    (ir_graph *irg, ir_node *block, int arity,
1159                        ir_node **in, ir_mode *mode);
1160 ir_node *new_r_Load   (ir_graph *irg, ir_node *block,
1161                        ir_node *store, ir_node *adr);
1162 ir_node *new_r_Store  (ir_graph *irg, ir_node *block,
1163                        ir_node *store, ir_node *adr, ir_node *val);
1164 ir_node *new_r_Alloc  (ir_graph *irg, ir_node *block, ir_node *store,
1165                        ir_node *size, type *alloc_type, where_alloc where);
1166 ir_node *new_r_Free   (ir_graph *irg, ir_node *block, ir_node *store,
1167                        ir_node *ptr, ir_node *size, type *free_type);
1168 ir_node *new_r_Sync   (ir_graph *irg, ir_node *block, int arity, ir_node **in);
1169 ir_node *new_r_Proj   (ir_graph *irg, ir_node *block, ir_node *arg,
1170                        ir_mode *mode, long proj);
1171 ir_node *new_r_Tuple  (ir_graph *irg, ir_node *block,
1172                        int arity, ir_node **in);
1173 ir_node *new_r_Id     (ir_graph *irg, ir_node *block,
1174                        ir_node *val, ir_mode *mode);
1175 ir_node *new_r_Bad    ();
1176
1177
1178 /*************************************************************************/
1179 /* The block oriented interface                                          */
1180
1181 /* Sets the current block in which the following constructors place the
1182    nodes they construct. */
1183 void switch_block (ir_node *target);
1184
1185 /* Chris: please rename the Block constructor:
1186    new_Block to new_immBlock
1187    and add a new one so dass das dann so aussieht:
1188    passe die Beispeilprogramme an! */
1189 #if 0
1190 ir_node *new_Block(int arity, ir_node **in);     /* creates mature Block */
1191 #else
1192 ir_node *new_Block  (void);
1193 #endif
1194 ir_node *new_Start  (void);
1195 ir_node *new_End    (void);
1196 ir_node *new_Jmp    (void);
1197 ir_node *new_Cond   (ir_node *c);
1198 ir_node *new_Return (ir_node *store, int arity, ir_node **in);
1199 ir_node *new_Raise  (ir_node *store, ir_node *obj);
1200 ir_node *new_Const  (ir_mode *mode, tarval *con);
1201 ir_node *new_SymConst (type_or_id *value, symconst_kind kind);
1202 ir_node *new_simpleSel (ir_node *store, ir_node *objptr, entity *ent);
1203 ir_node *new_Sel    (ir_node *store, ir_node *objptr, int arity, ir_node **in,
1204                      entity *ent);
1205 ir_node *new_Call   (ir_node *store, ir_node *callee, int arity, ir_node **in,
1206                      type_method *type);
1207 ir_node *new_Add    (ir_node *op1, ir_node *op2, ir_mode *mode);
1208 ir_node *new_Sub    (ir_node *op1, ir_node *op2, ir_mode *mode);
1209 ir_node *new_Minus  (ir_node *op,  ir_mode *mode);
1210 ir_node *new_Mul    (ir_node *op1, ir_node *op2, ir_mode *mode);
1211 ir_node *new_Quot   (ir_node *memop, ir_node *op1, ir_node *op2);
1212 ir_node *new_DivMod (ir_node *memop, ir_node *op1, ir_node *op2);
1213 ir_node *new_Div    (ir_node *memop, ir_node *op1, ir_node *op2);
1214 ir_node *new_Mod    (ir_node *memop, ir_node *op1, ir_node *op2);
1215 ir_node *new_Abs    (ir_node *op,                ir_mode *mode);
1216 ir_node *new_And    (ir_node *op1, ir_node *op2, ir_mode *mode);
1217 ir_node *new_Or     (ir_node *op1, ir_node *op2, ir_mode *mode);
1218 ir_node *new_Eor    (ir_node *op1, ir_node *op2, ir_mode *mode);
1219 ir_node *new_Not    (ir_node *op,                ir_mode *mode);
1220 ir_node *new_Shl    (ir_node *op,  ir_node *k,   ir_mode *mode);
1221 ir_node *new_Shr    (ir_node *op,  ir_node *k,   ir_mode *mode);
1222 ir_node *new_Shrs   (ir_node *op,  ir_node *k,   ir_mode *mode);
1223 ir_node *new_Rot    (ir_node *op,  ir_node *k,   ir_mode *mode);
1224 ir_node *new_Cmp    (ir_node *op1, ir_node *op2);
1225 ir_node *new_Conv   (ir_node *op, ir_mode *mode);
1226 ir_node *new_Phi    (int arity, ir_node **in, ir_mode *mode);
1227 ir_node *new_Load   (ir_node *store, ir_node *addr);
1228 ir_node *new_Store  (ir_node *store, ir_node *addr, ir_node *val);
1229 ir_node *new_Alloc  (ir_node *store, ir_node *size, type *alloc_type,
1230                      where_alloc where);
1231 ir_node *new_Free   (ir_node *store, ir_node *ptr, ir_node *size,
1232                      type *free_type);
1233 ir_node *new_Sync   (int arity, ir_node **in);
1234 ir_node *new_Proj   (ir_node *arg, ir_mode *mode, long proj);
1235 ir_node *new_Tuple  (int arity, ir_node **in);
1236 ir_node *new_Id     (ir_node *val, ir_mode *mode);
1237 ir_node *new_Bad    (void);
1238
1239 /***********************************************************************/
1240 /* The comfortable interface.                                          */
1241 /* Supports automatic Phi node construction.                           */
1242 /* All routines of the block oriented interface except new_Block are   */
1243 /* needed also.                                                        */
1244
1245 /** Block construction **/
1246 /* immature Block without predecessors */
1247 ir_node *new_immBlock (void);
1248
1249 /* Add a control flow edge to an immature block. */
1250 void add_in_edge (ir_node *immblock, ir_node *jmp);
1251
1252 /* fixes the number of predecessors of a block. */
1253 void     mature_block (ir_node *block);
1254
1255 /** Parameter administration **/
1256 /* Read a value from the array with the local variables.  Use this
1257    function to obtain the last definition of the value associated with
1258    pos. */
1259 ir_node *get_value (int pos, ir_mode *mode);
1260
1261 /* Write a value in the array with the local variables. Use this function
1262    to remember a new definition of the value associated with pos. */
1263 void set_value (int pos, ir_node *value);
1264
1265 /* Read a store.
1266    Use this function to get the most recent version of the store (type M).
1267    Internally it does the same as get_value. */
1268 ir_node *get_store (void);
1269
1270 /* Write a store. */
1271 void set_store (ir_node *store);
1272
1273 /* This function is for internal use only.  It is visible as it is needed
1274    in irgraph.c to create the stack that is needed for automatic Phi
1275    construction. */
1276 #if USE_EXPICIT_PHI_IN_STACK
1277 Phi_in_stack *new_Phi_in_stack();
1278 #endif
1279
1280 /**************************************************************************/
1281 /* initialize ir construction                                             */
1282 void init_cons (void);
1283
1284
1285 # endif /* _IRCONS_H_ */