OSDN Git Service

2009-11-18 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / gimple.h
1 /* Gimple IR definitions.
2
3    Copyright 2007, 2008, 2009 Free Software Foundation, Inc.
4    Contributed by Aldy Hernandez <aldyh@redhat.com>
5
6 This file is part of GCC.
7
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
11 version.
12
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16 for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3.  If not see
20 <http://www.gnu.org/licenses/>.  */
21
22 #ifndef GCC_GIMPLE_H
23 #define GCC_GIMPLE_H
24
25 #include "pointer-set.h"
26 #include "vec.h"
27 #include "ggc.h"
28 #include "tm.h"
29 #include "hard-reg-set.h"
30 #include "basic-block.h"
31 #include "tree-ssa-operands.h"
32
33 DEF_VEC_P(gimple);
34 DEF_VEC_ALLOC_P(gimple,heap);
35 DEF_VEC_ALLOC_P(gimple,gc);
36
37 typedef gimple *gimple_p;
38 DEF_VEC_P(gimple_p);
39 DEF_VEC_ALLOC_P(gimple_p,heap);
40
41 DEF_VEC_P(gimple_seq);
42 DEF_VEC_ALLOC_P(gimple_seq,gc);
43 DEF_VEC_ALLOC_P(gimple_seq,heap);
44
45 /* For each block, the PHI nodes that need to be rewritten are stored into
46    these vectors.  */
47 typedef VEC(gimple, heap) *gimple_vec;
48 DEF_VEC_P (gimple_vec);
49 DEF_VEC_ALLOC_P (gimple_vec, heap);
50
51 enum gimple_code {
52 #define DEFGSCODE(SYM, STRING, STRUCT)  SYM,
53 #include "gimple.def"
54 #undef DEFGSCODE
55     LAST_AND_UNUSED_GIMPLE_CODE
56 };
57
58 extern const char *const gimple_code_name[];
59 extern const unsigned char gimple_rhs_class_table[];
60
61 /* Error out if a gimple tuple is addressed incorrectly.  */
62 #if defined ENABLE_GIMPLE_CHECKING
63 extern void gimple_check_failed (const_gimple, const char *, int,          \
64                                  const char *, enum gimple_code,           \
65                                  enum tree_code) ATTRIBUTE_NORETURN;
66
67 #define GIMPLE_CHECK(GS, CODE)                                          \
68   do {                                                                  \
69     const_gimple __gs = (GS);                                           \
70     if (gimple_code (__gs) != (CODE))                                   \
71       gimple_check_failed (__gs, __FILE__, __LINE__, __FUNCTION__,      \
72                            (CODE), ERROR_MARK);                         \
73   } while (0)
74 #else  /* not ENABLE_GIMPLE_CHECKING  */
75 #define GIMPLE_CHECK(GS, CODE)                  (void)0
76 #endif
77
78 /* Class of GIMPLE expressions suitable for the RHS of assignments.  See
79    get_gimple_rhs_class.  */
80 enum gimple_rhs_class
81 {
82   GIMPLE_INVALID_RHS,   /* The expression cannot be used on the RHS.  */
83   GIMPLE_BINARY_RHS,    /* The expression is a binary operation.  */
84   GIMPLE_UNARY_RHS,     /* The expression is a unary operation.  */
85   GIMPLE_SINGLE_RHS     /* The expression is a single object (an SSA
86                            name, a _DECL, a _REF, etc.  */
87 };
88
89 /* Specific flags for individual GIMPLE statements.  These flags are
90    always stored in gimple_statement_base.subcode and they may only be
91    defined for statement codes that do not use sub-codes.
92
93    Values for the masks can overlap as long as the overlapping values
94    are never used in the same statement class.
95
96    The maximum mask value that can be defined is 1 << 15 (i.e., each
97    statement code can hold up to 16 bitflags).
98
99    Keep this list sorted.  */
100 enum gf_mask {
101     GF_ASM_INPUT                = 1 << 0,
102     GF_ASM_VOLATILE             = 1 << 1,
103     GF_CALL_CANNOT_INLINE       = 1 << 0,
104     GF_CALL_FROM_THUNK          = 1 << 1,
105     GF_CALL_RETURN_SLOT_OPT     = 1 << 2,
106     GF_CALL_TAILCALL            = 1 << 3,
107     GF_CALL_VA_ARG_PACK         = 1 << 4,
108     GF_OMP_PARALLEL_COMBINED    = 1 << 0,
109
110     /* True on an GIMPLE_OMP_RETURN statement if the return does not require
111        a thread synchronization via some sort of barrier.  The exact barrier
112        that would otherwise be emitted is dependent on the OMP statement with
113        which this return is associated.  */
114     GF_OMP_RETURN_NOWAIT        = 1 << 0,
115
116     GF_OMP_SECTION_LAST         = 1 << 0,
117     GF_PREDICT_TAKEN            = 1 << 15
118 };
119
120 /* Currently, there's only one type of gimple debug stmt.  Others are
121    envisioned, for example, to enable the generation of is_stmt notes
122    in line number information, to mark sequence points, etc.  This
123    subcode is to be used to tell them apart.  */
124 enum gimple_debug_subcode {
125   GIMPLE_DEBUG_BIND = 0
126 };
127
128 /* Masks for selecting a pass local flag (PLF) to work on.  These
129    masks are used by gimple_set_plf and gimple_plf.  */
130 enum plf_mask {
131     GF_PLF_1    = 1 << 0,
132     GF_PLF_2    = 1 << 1
133 };
134
135 /* A node in a gimple_seq_d.  */
136 struct GTY((chain_next ("%h.next"), chain_prev ("%h.prev"))) gimple_seq_node_d {
137   gimple stmt;
138   struct gimple_seq_node_d *prev;
139   struct gimple_seq_node_d *next;
140 };
141
142 /* A double-linked sequence of gimple statements.  */
143 struct GTY ((chain_next ("%h.next_free"))) gimple_seq_d {
144   /* First and last statements in the sequence.  */
145   gimple_seq_node first;
146   gimple_seq_node last;
147
148   /* Sequences are created/destroyed frequently.  To minimize
149      allocation activity, deallocated sequences are kept in a pool of
150      available sequences.  This is the pointer to the next free
151      sequence in the pool.  */
152   gimple_seq next_free;
153 };
154
155
156 /* Return the first node in GIMPLE sequence S.  */
157
158 static inline gimple_seq_node
159 gimple_seq_first (const_gimple_seq s)
160 {
161   return s ? s->first : NULL;
162 }
163
164
165 /* Return the first statement in GIMPLE sequence S.  */
166
167 static inline gimple
168 gimple_seq_first_stmt (const_gimple_seq s)
169 {
170   gimple_seq_node n = gimple_seq_first (s);
171   return (n) ? n->stmt : NULL;
172 }
173
174
175 /* Return the last node in GIMPLE sequence S.  */
176
177 static inline gimple_seq_node
178 gimple_seq_last (const_gimple_seq s)
179 {
180   return s ? s->last : NULL;
181 }
182
183
184 /* Return the last statement in GIMPLE sequence S.  */
185
186 static inline gimple
187 gimple_seq_last_stmt (const_gimple_seq s)
188 {
189   gimple_seq_node n = gimple_seq_last (s);
190   return (n) ? n->stmt : NULL;
191 }
192
193
194 /* Set the last node in GIMPLE sequence S to LAST.  */
195
196 static inline void
197 gimple_seq_set_last (gimple_seq s, gimple_seq_node last)
198 {
199   s->last = last;
200 }
201
202
203 /* Set the first node in GIMPLE sequence S to FIRST.  */
204
205 static inline void
206 gimple_seq_set_first (gimple_seq s, gimple_seq_node first)
207 {
208   s->first = first;
209 }
210
211
212 /* Return true if GIMPLE sequence S is empty.  */
213
214 static inline bool
215 gimple_seq_empty_p (const_gimple_seq s)
216 {
217   return s == NULL || s->first == NULL;
218 }
219
220
221 void gimple_seq_add_stmt (gimple_seq *, gimple);
222
223 /* Allocate a new sequence and initialize its first element with STMT.  */
224
225 static inline gimple_seq
226 gimple_seq_alloc_with_stmt (gimple stmt)
227 {
228   gimple_seq seq = NULL;
229   gimple_seq_add_stmt (&seq, stmt);
230   return seq;
231 }
232
233
234 /* Returns the sequence of statements in BB.  */
235
236 static inline gimple_seq
237 bb_seq (const_basic_block bb)
238 {
239   return (!(bb->flags & BB_RTL) && bb->il.gimple) ? bb->il.gimple->seq : NULL;
240 }
241
242
243 /* Sets the sequence of statements in BB to SEQ.  */
244
245 static inline void
246 set_bb_seq (basic_block bb, gimple_seq seq)
247 {
248   gcc_assert (!(bb->flags & BB_RTL));
249   bb->il.gimple->seq = seq;
250 }
251
252 /* Iterator object for GIMPLE statement sequences.  */
253
254 typedef struct
255 {
256   /* Sequence node holding the current statement.  */
257   gimple_seq_node ptr;
258
259   /* Sequence and basic block holding the statement.  These fields
260      are necessary to handle edge cases such as when statement is
261      added to an empty basic block or when the last statement of a
262      block/sequence is removed.  */
263   gimple_seq seq;
264   basic_block bb;
265 } gimple_stmt_iterator;
266
267
268 /* Data structure definitions for GIMPLE tuples.  NOTE: word markers
269    are for 64 bit hosts.  */
270
271 struct GTY(()) gimple_statement_base {
272   /* [ WORD 1 ]
273      Main identifying code for a tuple.  */
274   ENUM_BITFIELD(gimple_code) code : 8;
275
276   /* Nonzero if a warning should not be emitted on this tuple.  */
277   unsigned int no_warning       : 1;
278
279   /* Nonzero if this tuple has been visited.  Passes are responsible
280      for clearing this bit before using it.  */
281   unsigned int visited          : 1;
282
283   /* Nonzero if this tuple represents a non-temporal move.  */
284   unsigned int nontemporal_move : 1;
285
286   /* Pass local flags.  These flags are free for any pass to use as
287      they see fit.  Passes should not assume that these flags contain
288      any useful value when the pass starts.  Any initial state that
289      the pass requires should be set on entry to the pass.  See
290      gimple_set_plf and gimple_plf for usage.  */
291   unsigned int plf              : 2;
292
293   /* Nonzero if this statement has been modified and needs to have its
294      operands rescanned.  */
295   unsigned modified             : 1;
296
297   /* Nonzero if this statement contains volatile operands.  */
298   unsigned has_volatile_ops     : 1;
299
300   /* Padding to get subcode to 16 bit alignment.  */
301   unsigned pad                  : 1;
302
303   /* The SUBCODE field can be used for tuple-specific flags for tuples
304      that do not require subcodes.  Note that SUBCODE should be at
305      least as wide as tree codes, as several tuples store tree codes
306      in there.  */
307   unsigned int subcode          : 16;
308
309   /* UID of this statement.  This is used by passes that want to
310      assign IDs to statements.  It must be assigned and used by each
311      pass.  By default it should be assumed to contain garbage.  */
312   unsigned uid;
313
314   /* [ WORD 2 ]
315      Locus information for debug info.  */
316   location_t location;
317
318   /* Number of operands in this tuple.  */
319   unsigned num_ops;
320
321   /* [ WORD 3 ]
322      Basic block holding this statement.  */
323   struct basic_block_def *bb;
324
325   /* [ WORD 4 ]
326      Lexical block holding this statement.  */
327   tree block;
328 };
329
330
331 /* Base structure for tuples with operands.  */
332
333 struct GTY(()) gimple_statement_with_ops_base
334 {
335   /* [ WORD 1-4 ]  */
336   struct gimple_statement_base gsbase;
337
338   /* [ WORD 5-6 ]
339      SSA operand vectors.  NOTE: It should be possible to
340      amalgamate these vectors with the operand vector OP.  However,
341      the SSA operand vectors are organized differently and contain
342      more information (like immediate use chaining).  */
343   struct def_optype_d GTY((skip (""))) *def_ops;
344   struct use_optype_d GTY((skip (""))) *use_ops;
345 };
346
347
348 /* Statements that take register operands.  */
349
350 struct GTY(()) gimple_statement_with_ops
351 {
352   /* [ WORD 1-6 ]  */
353   struct gimple_statement_with_ops_base opbase;
354
355   /* [ WORD 7 ]
356      Operand vector.  NOTE!  This must always be the last field
357      of this structure.  In particular, this means that this
358      structure cannot be embedded inside another one.  */
359   tree GTY((length ("%h.opbase.gsbase.num_ops"))) op[1];
360 };
361
362
363 /* Base for statements that take both memory and register operands.  */
364
365 struct GTY(()) gimple_statement_with_memory_ops_base
366 {
367   /* [ WORD 1-6 ]  */
368   struct gimple_statement_with_ops_base opbase;
369
370   /* [ WORD 7-8 ]
371      Virtual operands for this statement.  The GC will pick them
372      up via the ssa_names array.  */
373   tree GTY((skip (""))) vdef;
374   tree GTY((skip (""))) vuse;
375 };
376
377
378 /* Statements that take both memory and register operands.  */
379
380 struct GTY(()) gimple_statement_with_memory_ops
381 {
382   /* [ WORD 1-8 ]  */
383   struct gimple_statement_with_memory_ops_base membase;
384
385   /* [ WORD 9 ]
386      Operand vector.  NOTE!  This must always be the last field
387      of this structure.  In particular, this means that this
388      structure cannot be embedded inside another one.  */
389   tree GTY((length ("%h.membase.opbase.gsbase.num_ops"))) op[1];
390 };
391
392
393 /* OpenMP statements (#pragma omp).  */
394
395 struct GTY(()) gimple_statement_omp {
396   /* [ WORD 1-4 ]  */
397   struct gimple_statement_base gsbase;
398
399   /* [ WORD 5 ]  */
400   gimple_seq body;
401 };
402
403
404 /* GIMPLE_BIND */
405
406 struct GTY(()) gimple_statement_bind {
407   /* [ WORD 1-4 ]  */
408   struct gimple_statement_base gsbase;
409
410   /* [ WORD 5 ]
411      Variables declared in this scope.  */
412   tree vars;
413
414   /* [ WORD 6 ]
415      This is different than the BLOCK field in gimple_statement_base,
416      which is analogous to TREE_BLOCK (i.e., the lexical block holding
417      this statement).  This field is the equivalent of BIND_EXPR_BLOCK
418      in tree land (i.e., the lexical scope defined by this bind).  See
419      gimple-low.c.  */
420   tree block;
421
422   /* [ WORD 7 ]  */
423   gimple_seq body;
424 };
425
426
427 /* GIMPLE_CATCH */
428
429 struct GTY(()) gimple_statement_catch {
430   /* [ WORD 1-4 ]  */
431   struct gimple_statement_base gsbase;
432
433   /* [ WORD 5 ]  */
434   tree types;
435
436   /* [ WORD 6 ]  */
437   gimple_seq handler;
438 };
439
440
441 /* GIMPLE_EH_FILTER */
442
443 struct GTY(()) gimple_statement_eh_filter {
444   /* [ WORD 1-4 ]  */
445   struct gimple_statement_base gsbase;
446
447   /* [ WORD 5 ]
448      Filter types.  */
449   tree types;
450
451   /* [ WORD 6 ]
452      Failure actions.  */
453   gimple_seq failure;
454 };
455
456
457 /* GIMPLE_EH_MUST_NOT_THROW */
458
459 struct GTY(()) gimple_statement_eh_mnt {
460   /* [ WORD 1-4 ]  */
461   struct gimple_statement_base gsbase;
462
463   /* [ WORD 5 ] Abort function decl.  */
464   tree fndecl;
465 };
466
467 /* GIMPLE_PHI */
468
469 struct GTY(()) gimple_statement_phi {
470   /* [ WORD 1-4 ]  */
471   struct gimple_statement_base gsbase;
472
473   /* [ WORD 5 ]  */
474   unsigned capacity;
475   unsigned nargs;
476
477   /* [ WORD 6 ]  */
478   tree result;
479
480   /* [ WORD 7 ]  */
481   struct phi_arg_d GTY ((length ("%h.nargs"))) args[1];
482 };
483
484
485 /* GIMPLE_RESX, GIMPLE_EH_DISPATCH */
486
487 struct GTY(()) gimple_statement_eh_ctrl
488 {
489   /* [ WORD 1-4 ]  */
490   struct gimple_statement_base gsbase;
491
492   /* [ WORD 5 ]
493      Exception region number.  */
494   int region;
495 };
496
497
498 /* GIMPLE_TRY */
499
500 struct GTY(()) gimple_statement_try {
501   /* [ WORD 1-4 ]  */
502   struct gimple_statement_base gsbase;
503
504   /* [ WORD 5 ]
505      Expression to evaluate.  */
506   gimple_seq eval;
507
508   /* [ WORD 6 ]
509      Cleanup expression.  */
510   gimple_seq cleanup;
511 };
512
513 /* Kind of GIMPLE_TRY statements.  */
514 enum gimple_try_flags
515 {
516   /* A try/catch.  */
517   GIMPLE_TRY_CATCH = 1 << 0,
518
519   /* A try/finally.  */
520   GIMPLE_TRY_FINALLY = 1 << 1,
521   GIMPLE_TRY_KIND = GIMPLE_TRY_CATCH | GIMPLE_TRY_FINALLY,
522
523   /* Analogous to TRY_CATCH_IS_CLEANUP.  */
524   GIMPLE_TRY_CATCH_IS_CLEANUP = 1 << 2
525 };
526
527 /* GIMPLE_WITH_CLEANUP_EXPR */
528
529 struct GTY(()) gimple_statement_wce {
530   /* [ WORD 1-4 ]  */
531   struct gimple_statement_base gsbase;
532
533   /* Subcode: CLEANUP_EH_ONLY.  True if the cleanup should only be
534               executed if an exception is thrown, not on normal exit of its
535               scope.  This flag is analogous to the CLEANUP_EH_ONLY flag
536               in TARGET_EXPRs.  */
537
538   /* [ WORD 5 ]
539      Cleanup expression.  */
540   gimple_seq cleanup;
541 };
542
543
544 /* GIMPLE_ASM  */
545
546 struct GTY(()) gimple_statement_asm
547 {
548   /* [ WORD 1-8 ]  */
549   struct gimple_statement_with_memory_ops_base membase;
550
551   /* [ WORD 9 ]
552      __asm__ statement.  */
553   const char *string;
554
555   /* [ WORD 10 ]
556        Number of inputs, outputs, clobbers, labels.  */
557   unsigned char ni;
558   unsigned char no;
559   unsigned char nc;
560   unsigned char nl;
561
562   /* [ WORD 11 ]
563      Operand vector.  NOTE!  This must always be the last field
564      of this structure.  In particular, this means that this
565      structure cannot be embedded inside another one.  */
566   tree GTY((length ("%h.membase.opbase.gsbase.num_ops"))) op[1];
567 };
568
569 /* GIMPLE_OMP_CRITICAL */
570
571 struct GTY(()) gimple_statement_omp_critical {
572   /* [ WORD 1-5 ]  */
573   struct gimple_statement_omp omp;
574
575   /* [ WORD 6 ]
576      Critical section name.  */
577   tree name;
578 };
579
580
581 struct GTY(()) gimple_omp_for_iter {
582   /* Condition code.  */
583   enum tree_code cond;
584
585   /* Index variable.  */
586   tree index;
587     
588   /* Initial value.  */
589   tree initial;
590
591   /* Final value.  */
592   tree final;
593                                  
594   /* Increment.  */
595   tree incr;
596 };
597
598 /* GIMPLE_OMP_FOR */
599
600 struct GTY(()) gimple_statement_omp_for {
601   /* [ WORD 1-5 ]  */
602   struct gimple_statement_omp omp;
603
604   /* [ WORD 6 ]  */
605   tree clauses;
606
607   /* [ WORD 7 ]
608      Number of elements in iter array.  */
609   size_t collapse;
610
611   /* [ WORD 8 ]  */
612   struct gimple_omp_for_iter * GTY((length ("%h.collapse"))) iter;
613
614   /* [ WORD 9 ]
615      Pre-body evaluated before the loop body begins.  */
616   gimple_seq pre_body;
617 };
618
619
620 /* GIMPLE_OMP_PARALLEL */
621
622 struct GTY(()) gimple_statement_omp_parallel {
623   /* [ WORD 1-5 ]  */
624   struct gimple_statement_omp omp;
625
626   /* [ WORD 6 ]
627      Clauses.  */
628   tree clauses;
629
630   /* [ WORD 7 ]
631      Child function holding the body of the parallel region.  */
632   tree child_fn;
633
634   /* [ WORD 8 ]
635      Shared data argument.  */
636   tree data_arg;
637 };
638
639
640 /* GIMPLE_OMP_TASK */
641
642 struct GTY(()) gimple_statement_omp_task {
643   /* [ WORD 1-8 ]  */
644   struct gimple_statement_omp_parallel par;
645
646   /* [ WORD 9 ]
647      Child function holding firstprivate initialization if needed.  */
648   tree copy_fn;
649
650   /* [ WORD 10-11 ]
651      Size and alignment in bytes of the argument data block.  */
652   tree arg_size;
653   tree arg_align;
654 };
655
656
657 /* GIMPLE_OMP_SECTION */
658 /* Uses struct gimple_statement_omp.  */
659
660
661 /* GIMPLE_OMP_SECTIONS */
662
663 struct GTY(()) gimple_statement_omp_sections {
664   /* [ WORD 1-5 ]  */
665   struct gimple_statement_omp omp;
666
667   /* [ WORD 6 ]  */
668   tree clauses;
669
670   /* [ WORD 7 ]
671      The control variable used for deciding which of the sections to
672      execute.  */
673   tree control;
674 };
675
676 /* GIMPLE_OMP_CONTINUE.
677
678    Note: This does not inherit from gimple_statement_omp, because we
679          do not need the body field.  */
680
681 struct GTY(()) gimple_statement_omp_continue {
682   /* [ WORD 1-4 ]  */
683   struct gimple_statement_base gsbase;
684
685   /* [ WORD 5 ]  */
686   tree control_def;
687
688   /* [ WORD 6 ]  */
689   tree control_use;
690 };
691
692 /* GIMPLE_OMP_SINGLE */
693
694 struct GTY(()) gimple_statement_omp_single {
695   /* [ WORD 1-5 ]  */
696   struct gimple_statement_omp omp;
697
698   /* [ WORD 6 ]  */
699   tree clauses;
700 };
701
702
703 /* GIMPLE_OMP_ATOMIC_LOAD.  
704    Note: This is based on gimple_statement_base, not g_s_omp, because g_s_omp
705    contains a sequence, which we don't need here.  */
706
707 struct GTY(()) gimple_statement_omp_atomic_load {
708   /* [ WORD 1-4 ]  */
709   struct gimple_statement_base gsbase;
710
711   /* [ WORD 5-6 ]  */
712   tree rhs, lhs;
713 };
714
715 /* GIMPLE_OMP_ATOMIC_STORE.
716    See note on GIMPLE_OMP_ATOMIC_LOAD.  */
717
718 struct GTY(()) gimple_statement_omp_atomic_store {
719   /* [ WORD 1-4 ]  */
720   struct gimple_statement_base gsbase;
721
722   /* [ WORD 5 ]  */
723   tree val;
724 };
725
726 #define DEFGSSTRUCT(SYM, STRUCT, HAS_TREE_OP)   SYM,
727 enum gimple_statement_structure_enum {
728 #include "gsstruct.def"
729     LAST_GSS_ENUM
730 };
731 #undef DEFGSSTRUCT
732
733
734 /* Define the overall contents of a gimple tuple.  It may be any of the
735    structures declared above for various types of tuples.  */
736
737 union GTY ((desc ("gimple_statement_structure (&%h)"))) gimple_statement_d {
738   struct gimple_statement_base GTY ((tag ("GSS_BASE"))) gsbase;
739   struct gimple_statement_with_ops GTY ((tag ("GSS_WITH_OPS"))) gsops;
740   struct gimple_statement_with_memory_ops_base GTY ((tag ("GSS_WITH_MEM_OPS_BASE"))) gsmembase;
741   struct gimple_statement_with_memory_ops GTY ((tag ("GSS_WITH_MEM_OPS"))) gsmem;
742   struct gimple_statement_omp GTY ((tag ("GSS_OMP"))) omp;
743   struct gimple_statement_bind GTY ((tag ("GSS_BIND"))) gimple_bind;
744   struct gimple_statement_catch GTY ((tag ("GSS_CATCH"))) gimple_catch;
745   struct gimple_statement_eh_filter GTY ((tag ("GSS_EH_FILTER"))) gimple_eh_filter;
746   struct gimple_statement_eh_mnt GTY ((tag ("GSS_EH_MNT"))) gimple_eh_mnt;
747   struct gimple_statement_phi GTY ((tag ("GSS_PHI"))) gimple_phi;
748   struct gimple_statement_eh_ctrl GTY ((tag ("GSS_EH_CTRL"))) gimple_eh_ctrl;
749   struct gimple_statement_try GTY ((tag ("GSS_TRY"))) gimple_try;
750   struct gimple_statement_wce GTY ((tag ("GSS_WCE"))) gimple_wce;
751   struct gimple_statement_asm GTY ((tag ("GSS_ASM"))) gimple_asm;
752   struct gimple_statement_omp_critical GTY ((tag ("GSS_OMP_CRITICAL"))) gimple_omp_critical;
753   struct gimple_statement_omp_for GTY ((tag ("GSS_OMP_FOR"))) gimple_omp_for;
754   struct gimple_statement_omp_parallel GTY ((tag ("GSS_OMP_PARALLEL"))) gimple_omp_parallel;
755   struct gimple_statement_omp_task GTY ((tag ("GSS_OMP_TASK"))) gimple_omp_task;
756   struct gimple_statement_omp_sections GTY ((tag ("GSS_OMP_SECTIONS"))) gimple_omp_sections;
757   struct gimple_statement_omp_single GTY ((tag ("GSS_OMP_SINGLE"))) gimple_omp_single;
758   struct gimple_statement_omp_continue GTY ((tag ("GSS_OMP_CONTINUE"))) gimple_omp_continue;
759   struct gimple_statement_omp_atomic_load GTY ((tag ("GSS_OMP_ATOMIC_LOAD"))) gimple_omp_atomic_load;
760   struct gimple_statement_omp_atomic_store GTY ((tag ("GSS_OMP_ATOMIC_STORE"))) gimple_omp_atomic_store;
761 };
762
763 /* In gimple.c.  */
764
765 /* Offset in bytes to the location of the operand vector.
766    Zero if there is no operand vector for this tuple structure.  */
767 extern size_t const gimple_ops_offset_[];
768
769 /* Map GIMPLE codes to GSS codes.  */
770 extern enum gimple_statement_structure_enum const gss_for_code_[];
771
772 gimple gimple_build_return (tree);
773
774 gimple gimple_build_assign_stat (tree, tree MEM_STAT_DECL);
775 #define gimple_build_assign(l,r) gimple_build_assign_stat (l, r MEM_STAT_INFO)
776
777 void extract_ops_from_tree (tree, enum tree_code *, tree *, tree *);
778
779 gimple gimple_build_assign_with_ops_stat (enum tree_code, tree, tree,
780                                           tree MEM_STAT_DECL);
781 #define gimple_build_assign_with_ops(c,o1,o2,o3) \
782   gimple_build_assign_with_ops_stat (c, o1, o2, o3 MEM_STAT_INFO)
783
784 gimple gimple_build_debug_bind_stat (tree, tree, gimple MEM_STAT_DECL);
785 #define gimple_build_debug_bind(var,val,stmt)                   \
786   gimple_build_debug_bind_stat ((var), (val), (stmt) MEM_STAT_INFO)
787
788 gimple gimple_build_call_vec (tree, VEC(tree, heap) *);
789 gimple gimple_build_call (tree, unsigned, ...);
790 gimple gimple_build_call_from_tree (tree);
791 gimple gimplify_assign (tree, tree, gimple_seq *);
792 gimple gimple_build_cond (enum tree_code, tree, tree, tree, tree);
793 gimple gimple_build_label (tree label);
794 gimple gimple_build_goto (tree dest);
795 gimple gimple_build_nop (void);
796 gimple gimple_build_bind (tree, gimple_seq, tree);
797 gimple gimple_build_asm_vec (const char *, VEC(tree,gc) *, VEC(tree,gc) *,
798                              VEC(tree,gc) *, VEC(tree,gc) *);
799 gimple gimple_build_catch (tree, gimple_seq);
800 gimple gimple_build_eh_filter (tree, gimple_seq);
801 gimple gimple_build_eh_must_not_throw (tree);
802 gimple gimple_build_try (gimple_seq, gimple_seq, enum gimple_try_flags);
803 gimple gimple_build_wce (gimple_seq);
804 gimple gimple_build_resx (int);
805 gimple gimple_build_eh_dispatch (int);
806 gimple gimple_build_switch_nlabels (unsigned, tree, tree);
807 gimple gimple_build_switch (unsigned, tree, tree, ...);
808 gimple gimple_build_switch_vec (tree, tree, VEC(tree,heap) *);
809 gimple gimple_build_omp_parallel (gimple_seq, tree, tree, tree);
810 gimple gimple_build_omp_task (gimple_seq, tree, tree, tree, tree, tree, tree);
811 gimple gimple_build_omp_for (gimple_seq, tree, size_t, gimple_seq);
812 gimple gimple_build_omp_critical (gimple_seq, tree);
813 gimple gimple_build_omp_section (gimple_seq);
814 gimple gimple_build_omp_continue (tree, tree);
815 gimple gimple_build_omp_master (gimple_seq);
816 gimple gimple_build_omp_return (bool);
817 gimple gimple_build_omp_ordered (gimple_seq);
818 gimple gimple_build_omp_sections (gimple_seq, tree);
819 gimple gimple_build_omp_sections_switch (void);
820 gimple gimple_build_omp_single (gimple_seq, tree);
821 gimple gimple_build_cdt (tree, tree);
822 gimple gimple_build_omp_atomic_load (tree, tree);
823 gimple gimple_build_omp_atomic_store (tree);
824 gimple gimple_build_predict (enum br_predictor, enum prediction);
825 enum gimple_statement_structure_enum gss_for_assign (enum tree_code);
826 void sort_case_labels (VEC(tree,heap) *);
827 void gimple_set_body (tree, gimple_seq);
828 gimple_seq gimple_body (tree);
829 bool gimple_has_body_p (tree);
830 gimple_seq gimple_seq_alloc (void);
831 void gimple_seq_free (gimple_seq);
832 void gimple_seq_add_seq (gimple_seq *, gimple_seq);
833 gimple_seq gimple_seq_copy (gimple_seq);
834 int gimple_call_flags (const_gimple);
835 bool gimple_assign_copy_p (gimple);
836 bool gimple_assign_ssa_name_copy_p (gimple);
837 bool gimple_assign_single_p (gimple);
838 bool gimple_assign_unary_nop_p (gimple);
839 void gimple_set_bb (gimple, struct basic_block_def *);
840 tree gimple_fold (const_gimple);
841 void gimple_assign_set_rhs_from_tree (gimple_stmt_iterator *, tree);
842 void gimple_assign_set_rhs_with_ops (gimple_stmt_iterator *, enum tree_code,
843                                      tree, tree);
844 tree gimple_get_lhs (const_gimple);
845 void gimple_set_lhs (gimple, tree);
846 gimple gimple_copy (gimple);
847 bool is_gimple_operand (const_tree);
848 void gimple_set_modified (gimple, bool);
849 void gimple_cond_get_ops_from_tree (tree, enum tree_code *, tree *, tree *);
850 gimple gimple_build_cond_from_tree (tree, tree, tree);
851 void gimple_cond_set_condition_from_tree (gimple, tree);
852 bool gimple_has_side_effects (const_gimple);
853 bool gimple_rhs_has_side_effects (const_gimple);
854 bool gimple_could_trap_p (gimple);
855 bool gimple_assign_rhs_could_trap_p (gimple);
856 void gimple_regimplify_operands (gimple, gimple_stmt_iterator *);
857 bool empty_body_p (gimple_seq);
858 unsigned get_gimple_rhs_num_ops (enum tree_code);
859 #define gimple_alloc(c, n) gimple_alloc_stat (c, n MEM_STAT_INFO)
860 gimple gimple_alloc_stat (enum gimple_code, unsigned MEM_STAT_DECL);
861 const char *gimple_decl_printable_name (tree, int);
862 tree gimple_fold_obj_type_ref (tree, tree);
863
864 /* Returns true iff T is a valid GIMPLE statement.  */
865 extern bool is_gimple_stmt (tree);
866
867 /* Returns true iff TYPE is a valid type for a scalar register variable.  */
868 extern bool is_gimple_reg_type (tree);
869 /* Returns true iff T is a scalar register variable.  */
870 extern bool is_gimple_reg (tree);
871 /* Returns true iff T is any sort of variable.  */
872 extern bool is_gimple_variable (tree);
873 /* Returns true iff T is any sort of symbol.  */
874 extern bool is_gimple_id (tree);
875 /* Returns true iff T is a variable or an INDIRECT_REF (of a variable).  */
876 extern bool is_gimple_min_lval (tree);
877 /* Returns true iff T is something whose address can be taken.  */
878 extern bool is_gimple_addressable (tree);
879 /* Returns true iff T is any valid GIMPLE lvalue.  */
880 extern bool is_gimple_lvalue (tree);
881
882 /* Returns true iff T is a GIMPLE address.  */
883 bool is_gimple_address (const_tree);
884 /* Returns true iff T is a GIMPLE invariant address.  */
885 bool is_gimple_invariant_address (const_tree);
886 /* Returns true iff T is a GIMPLE invariant address at interprocedural
887    level.  */
888 bool is_gimple_ip_invariant_address (const_tree);
889 /* Returns true iff T is a valid GIMPLE constant.  */
890 bool is_gimple_constant (const_tree);
891 /* Returns true iff T is a GIMPLE restricted function invariant.  */
892 extern bool is_gimple_min_invariant (const_tree);
893 /* Returns true iff T is a GIMPLE restricted interprecodural invariant.  */
894 extern bool is_gimple_ip_invariant (const_tree);
895 /* Returns true iff T is a GIMPLE rvalue.  */
896 extern bool is_gimple_val (tree);
897 /* Returns true iff T is a GIMPLE asm statement input.  */
898 extern bool is_gimple_asm_val (tree);
899 /* Returns true iff T is a valid rhs for a MODIFY_EXPR where the LHS is a
900    GIMPLE temporary, a renamed user variable, or something else,
901    respectively.  */
902 extern bool is_gimple_reg_rhs (tree);
903 extern bool is_gimple_mem_rhs (tree);
904
905 /* Returns true iff T is a valid if-statement condition.  */
906 extern bool is_gimple_condexpr (tree);
907
908 /* Returns true iff T is a type conversion.  */
909 extern bool is_gimple_cast (tree);
910 /* Returns true iff T is a variable that does not need to live in memory.  */
911 extern bool is_gimple_non_addressable (tree t);
912
913 /* Returns true iff T is a valid call address expression.  */
914 extern bool is_gimple_call_addr (tree);
915 /* If T makes a function call, returns the CALL_EXPR operand.  */
916 extern tree get_call_expr_in (tree t);
917
918 extern void recalculate_side_effects (tree);
919 extern tree gimple_register_type (tree);
920 extern void print_gimple_types_stats (void);
921 extern void free_gimple_type_tables (void);
922 extern tree gimple_unsigned_type (tree);
923 extern tree gimple_signed_type (tree);
924 extern alias_set_type gimple_get_alias_set (tree);
925 extern void count_uses_and_derefs (tree, gimple, unsigned *, unsigned *,
926                                    unsigned *);
927 extern bool walk_stmt_load_store_addr_ops (gimple, void *,
928                                            bool (*)(gimple, tree, void *),
929                                            bool (*)(gimple, tree, void *),
930                                            bool (*)(gimple, tree, void *));
931 extern bool walk_stmt_load_store_ops (gimple, void *,
932                                       bool (*)(gimple, tree, void *),
933                                       bool (*)(gimple, tree, void *));
934 extern bool gimple_ior_addresses_taken (bitmap, gimple);
935
936 /* In gimplify.c  */
937 extern tree create_tmp_var_raw (tree, const char *);
938 extern tree create_tmp_var_name (const char *);
939 extern tree create_tmp_var (tree, const char *);
940 extern tree get_initialized_tmp_var (tree, gimple_seq *, gimple_seq *);
941 extern tree get_formal_tmp_var (tree, gimple_seq *);
942 extern void declare_vars (tree, gimple, bool);
943 extern void annotate_all_with_location (gimple_seq, location_t);
944
945 /* Validation of GIMPLE expressions.  Note that these predicates only check
946    the basic form of the expression, they don't recurse to make sure that
947    underlying nodes are also of the right form.  */
948 typedef bool (*gimple_predicate)(tree);
949
950
951 /* FIXME we should deduce this from the predicate.  */
952 enum fallback {
953   fb_none = 0,          /* Do not generate a temporary.  */
954
955   fb_rvalue = 1,        /* Generate an rvalue to hold the result of a
956                            gimplified expression.  */
957
958   fb_lvalue = 2,        /* Generate an lvalue to hold the result of a
959                            gimplified expression.  */
960
961   fb_mayfail = 4,       /* Gimplification may fail.  Error issued
962                            afterwards.  */
963   fb_either= fb_rvalue | fb_lvalue
964 };
965
966 typedef int fallback_t;
967
968 enum gimplify_status {
969   GS_ERROR      = -2,   /* Something Bad Seen.  */
970   GS_UNHANDLED  = -1,   /* A langhook result for "I dunno".  */
971   GS_OK         = 0,    /* We did something, maybe more to do.  */
972   GS_ALL_DONE   = 1     /* The expression is fully gimplified.  */
973 };
974
975 struct gimplify_ctx
976 {
977   struct gimplify_ctx *prev_context;
978
979   VEC(gimple,heap) *bind_expr_stack;
980   tree temps;
981   gimple_seq conditional_cleanups;
982   tree exit_label;
983   tree return_temp;
984   
985   VEC(tree,heap) *case_labels;
986   /* The formal temporary table.  Should this be persistent?  */
987   htab_t temp_htab;
988
989   int conditions;
990   bool save_stack;
991   bool into_ssa;
992   bool allow_rhs_cond_expr;
993 };
994
995 extern enum gimplify_status gimplify_expr (tree *, gimple_seq *, gimple_seq *,
996                                            bool (*) (tree), fallback_t);
997 extern void gimplify_type_sizes (tree, gimple_seq *);
998 extern void gimplify_one_sizepos (tree *, gimple_seq *);
999 extern bool gimplify_stmt (tree *, gimple_seq *);
1000 extern gimple gimplify_body (tree *, tree, bool);
1001 extern void push_gimplify_context (struct gimplify_ctx *);
1002 extern void pop_gimplify_context (gimple);
1003 extern void gimplify_and_add (tree, gimple_seq *);
1004
1005 /* Miscellaneous helpers.  */
1006 extern void gimple_add_tmp_var (tree);
1007 extern gimple gimple_current_bind_expr (void);
1008 extern VEC(gimple, heap) *gimple_bind_expr_stack (void);
1009 extern tree voidify_wrapper_expr (tree, tree);
1010 extern tree build_and_jump (tree *);
1011 extern tree alloc_stmt_list (void);
1012 extern void free_stmt_list (tree);
1013 extern tree force_labels_r (tree *, int *, void *);
1014 extern enum gimplify_status gimplify_va_arg_expr (tree *, gimple_seq *,
1015                                                   gimple_seq *);
1016 struct gimplify_omp_ctx;
1017 extern void omp_firstprivatize_variable (struct gimplify_omp_ctx *, tree);
1018 extern tree gimple_boolify (tree);
1019 extern gimple_predicate rhs_predicate_for (tree);
1020 extern tree canonicalize_cond_expr_cond (tree);
1021
1022 /* In omp-low.c.  */
1023 extern tree omp_reduction_init (tree, tree);
1024
1025 /* In tree-nested.c.  */
1026 extern void lower_nested_functions (tree);
1027 extern void insert_field_into_struct (tree, tree);
1028
1029 /* In gimplify.c.  */
1030 extern void gimplify_function_tree (tree);
1031
1032 /* In cfgexpand.c.  */
1033 extern tree gimple_assign_rhs_to_tree (gimple);
1034
1035 /* In builtins.c  */
1036 extern bool validate_gimple_arglist (const_gimple, ...);
1037
1038 /* In tree-ssa.c  */
1039 extern bool tree_ssa_useless_type_conversion (tree);
1040 extern tree tree_ssa_strip_useless_type_conversions (tree);
1041 extern bool useless_type_conversion_p (tree, tree);
1042 extern bool types_compatible_p (tree, tree);
1043
1044 /* Return the code for GIMPLE statement G.  */
1045
1046 static inline enum gimple_code
1047 gimple_code (const_gimple g)
1048 {
1049   return g->gsbase.code;
1050 }
1051
1052
1053 /* Return the GSS code used by a GIMPLE code.  */
1054
1055 static inline enum gimple_statement_structure_enum
1056 gss_for_code (enum gimple_code code)
1057 {
1058   gcc_assert ((unsigned int)code < LAST_AND_UNUSED_GIMPLE_CODE);
1059   return gss_for_code_[code];
1060 }
1061
1062
1063 /* Return which GSS code is used by GS.  */
1064
1065 static inline enum gimple_statement_structure_enum
1066 gimple_statement_structure (gimple gs)
1067 {
1068   return gss_for_code (gimple_code (gs));
1069 }
1070
1071
1072 /* Return true if statement G has sub-statements.  This is only true for
1073    High GIMPLE statements.  */
1074
1075 static inline bool
1076 gimple_has_substatements (gimple g)
1077 {
1078   switch (gimple_code (g))
1079     {
1080     case GIMPLE_BIND:
1081     case GIMPLE_CATCH:
1082     case GIMPLE_EH_FILTER:
1083     case GIMPLE_TRY:
1084     case GIMPLE_OMP_FOR:
1085     case GIMPLE_OMP_MASTER:
1086     case GIMPLE_OMP_ORDERED:
1087     case GIMPLE_OMP_SECTION:
1088     case GIMPLE_OMP_PARALLEL:
1089     case GIMPLE_OMP_TASK:
1090     case GIMPLE_OMP_SECTIONS:
1091     case GIMPLE_OMP_SINGLE:
1092     case GIMPLE_OMP_CRITICAL:
1093     case GIMPLE_WITH_CLEANUP_EXPR:
1094       return true;
1095
1096     default:
1097       return false;
1098     }
1099 }
1100           
1101
1102 /* Return the basic block holding statement G.  */
1103
1104 static inline struct basic_block_def *
1105 gimple_bb (const_gimple g)
1106 {
1107   return g->gsbase.bb;
1108 }
1109
1110
1111 /* Return the lexical scope block holding statement G.  */
1112
1113 static inline tree
1114 gimple_block (const_gimple g)
1115 {
1116   return g->gsbase.block;
1117 }
1118
1119
1120 /* Set BLOCK to be the lexical scope block holding statement G.  */
1121
1122 static inline void
1123 gimple_set_block (gimple g, tree block)
1124 {
1125   g->gsbase.block = block;
1126 }
1127
1128
1129 /* Return location information for statement G.  */
1130
1131 static inline location_t
1132 gimple_location (const_gimple g)
1133 {
1134   return g->gsbase.location;
1135 }
1136
1137 /* Return pointer to location information for statement G.  */
1138
1139 static inline const location_t *
1140 gimple_location_ptr (const_gimple g)
1141 {
1142   return &g->gsbase.location;
1143 }
1144
1145
1146 /* Set location information for statement G.  */
1147
1148 static inline void
1149 gimple_set_location (gimple g, location_t location)
1150 {
1151   g->gsbase.location = location;
1152 }
1153
1154
1155 /* Return true if G contains location information.  */
1156
1157 static inline bool
1158 gimple_has_location (const_gimple g)
1159 {
1160   return gimple_location (g) != UNKNOWN_LOCATION;
1161 }
1162
1163
1164 /* Return the file name of the location of STMT.  */
1165
1166 static inline const char *
1167 gimple_filename (const_gimple stmt)
1168 {
1169   return LOCATION_FILE (gimple_location (stmt));
1170 }
1171
1172
1173 /* Return the line number of the location of STMT.  */
1174
1175 static inline int
1176 gimple_lineno (const_gimple stmt)
1177 {
1178   return LOCATION_LINE (gimple_location (stmt));
1179 }
1180
1181
1182 /* Determine whether SEQ is a singleton. */
1183
1184 static inline bool
1185 gimple_seq_singleton_p (gimple_seq seq)
1186 {
1187   return ((gimple_seq_first (seq) != NULL)
1188           && (gimple_seq_first (seq) == gimple_seq_last (seq)));
1189 }
1190
1191 /* Return true if no warnings should be emitted for statement STMT.  */
1192
1193 static inline bool
1194 gimple_no_warning_p (const_gimple stmt)
1195 {
1196   return stmt->gsbase.no_warning;
1197 }
1198
1199 /* Set the no_warning flag of STMT to NO_WARNING.  */
1200
1201 static inline void
1202 gimple_set_no_warning (gimple stmt, bool no_warning)
1203 {
1204   stmt->gsbase.no_warning = (unsigned) no_warning;
1205 }
1206
1207 /* Set the visited status on statement STMT to VISITED_P.  */
1208
1209 static inline void
1210 gimple_set_visited (gimple stmt, bool visited_p)
1211 {
1212   stmt->gsbase.visited = (unsigned) visited_p;
1213 }
1214
1215
1216 /* Return the visited status for statement STMT.  */
1217
1218 static inline bool
1219 gimple_visited_p (gimple stmt)
1220 {
1221   return stmt->gsbase.visited;
1222 }
1223
1224
1225 /* Set pass local flag PLF on statement STMT to VAL_P.  */
1226
1227 static inline void
1228 gimple_set_plf (gimple stmt, enum plf_mask plf, bool val_p)
1229 {
1230   if (val_p)
1231     stmt->gsbase.plf |= (unsigned int) plf;
1232   else
1233     stmt->gsbase.plf &= ~((unsigned int) plf);
1234 }
1235
1236
1237 /* Return the value of pass local flag PLF on statement STMT.  */
1238
1239 static inline unsigned int
1240 gimple_plf (gimple stmt, enum plf_mask plf)
1241 {
1242   return stmt->gsbase.plf & ((unsigned int) plf);
1243 }
1244
1245
1246 /* Set the UID of statement.  */
1247
1248 static inline void
1249 gimple_set_uid (gimple g, unsigned uid)
1250 {
1251   g->gsbase.uid = uid;
1252 }
1253
1254
1255 /* Return the UID of statement.  */
1256
1257 static inline unsigned
1258 gimple_uid (const_gimple g)
1259 {
1260   return g->gsbase.uid;
1261 }
1262
1263
1264 /* Return true if GIMPLE statement G has register or memory operands.  */
1265
1266 static inline bool
1267 gimple_has_ops (const_gimple g)
1268 {
1269   return gimple_code (g) >= GIMPLE_COND && gimple_code (g) <= GIMPLE_RETURN;
1270 }
1271
1272
1273 /* Return true if GIMPLE statement G has memory operands.  */
1274
1275 static inline bool
1276 gimple_has_mem_ops (const_gimple g)
1277 {
1278   return gimple_code (g) >= GIMPLE_ASSIGN && gimple_code (g) <= GIMPLE_RETURN;
1279 }
1280
1281
1282 /* Return the set of DEF operands for statement G.  */
1283
1284 static inline struct def_optype_d *
1285 gimple_def_ops (const_gimple g)
1286 {
1287   if (!gimple_has_ops (g))
1288     return NULL;
1289   return g->gsops.opbase.def_ops;
1290 }
1291
1292
1293 /* Set DEF to be the set of DEF operands for statement G.  */
1294
1295 static inline void
1296 gimple_set_def_ops (gimple g, struct def_optype_d *def)
1297 {
1298   gcc_assert (gimple_has_ops (g));
1299   g->gsops.opbase.def_ops = def;
1300 }
1301
1302
1303 /* Return the set of USE operands for statement G.  */
1304
1305 static inline struct use_optype_d *
1306 gimple_use_ops (const_gimple g)
1307 {
1308   if (!gimple_has_ops (g))
1309     return NULL;
1310   return g->gsops.opbase.use_ops;
1311 }
1312
1313
1314 /* Set USE to be the set of USE operands for statement G.  */
1315
1316 static inline void
1317 gimple_set_use_ops (gimple g, struct use_optype_d *use)
1318 {
1319   gcc_assert (gimple_has_ops (g));
1320   g->gsops.opbase.use_ops = use;
1321 }
1322
1323
1324 /* Return the set of VUSE operand for statement G.  */
1325
1326 static inline use_operand_p
1327 gimple_vuse_op (const_gimple g)
1328 {
1329   struct use_optype_d *ops;
1330   if (!gimple_has_mem_ops (g))
1331     return NULL_USE_OPERAND_P;
1332   ops = g->gsops.opbase.use_ops;
1333   if (ops
1334       && USE_OP_PTR (ops)->use == &g->gsmembase.vuse)
1335     return USE_OP_PTR (ops);
1336   return NULL_USE_OPERAND_P;
1337 }
1338
1339 /* Return the set of VDEF operand for statement G.  */
1340
1341 static inline def_operand_p
1342 gimple_vdef_op (const_gimple g)
1343 {
1344   struct def_optype_d *ops;
1345   if (!gimple_has_mem_ops (g))
1346     return NULL_DEF_OPERAND_P;
1347   ops = g->gsops.opbase.def_ops;
1348   if (ops
1349       && DEF_OP_PTR (ops) == &g->gsmembase.vdef)
1350     return DEF_OP_PTR (ops);
1351   return NULL_DEF_OPERAND_P;
1352 }
1353
1354
1355 /* Return the single VUSE operand of the statement G.  */
1356
1357 static inline tree
1358 gimple_vuse (const_gimple g)
1359 {
1360   if (!gimple_has_mem_ops (g))
1361     return NULL_TREE;
1362   return g->gsmembase.vuse;
1363 }
1364
1365 /* Return the single VDEF operand of the statement G.  */
1366
1367 static inline tree
1368 gimple_vdef (const_gimple g)
1369 {
1370   if (!gimple_has_mem_ops (g))
1371     return NULL_TREE;
1372   return g->gsmembase.vdef;
1373 }
1374
1375 /* Return the single VUSE operand of the statement G.  */
1376
1377 static inline tree *
1378 gimple_vuse_ptr (gimple g)
1379 {
1380   if (!gimple_has_mem_ops (g))
1381     return NULL;
1382   return &g->gsmembase.vuse;
1383 }
1384
1385 /* Return the single VDEF operand of the statement G.  */
1386
1387 static inline tree *
1388 gimple_vdef_ptr (gimple g)
1389 {
1390   if (!gimple_has_mem_ops (g))
1391     return NULL;
1392   return &g->gsmembase.vdef;
1393 }
1394
1395 /* Set the single VUSE operand of the statement G.  */
1396
1397 static inline void
1398 gimple_set_vuse (gimple g, tree vuse)
1399 {
1400   gcc_assert (gimple_has_mem_ops (g));
1401   g->gsmembase.vuse = vuse;
1402 }
1403
1404 /* Set the single VDEF operand of the statement G.  */
1405
1406 static inline void
1407 gimple_set_vdef (gimple g, tree vdef)
1408 {
1409   gcc_assert (gimple_has_mem_ops (g));
1410   g->gsmembase.vdef = vdef;
1411 }
1412
1413
1414 /* Return true if statement G has operands and the modified field has
1415    been set.  */
1416
1417 static inline bool
1418 gimple_modified_p (const_gimple g)
1419 {
1420   return (gimple_has_ops (g)) ? (bool) g->gsbase.modified : false;
1421 }
1422
1423
1424 /* Return the tree code for the expression computed by STMT.  This is
1425    only valid for GIMPLE_COND, GIMPLE_CALL and GIMPLE_ASSIGN.  For
1426    GIMPLE_CALL, return CALL_EXPR as the expression code for
1427    consistency.  This is useful when the caller needs to deal with the
1428    three kinds of computation that GIMPLE supports.  */
1429
1430 static inline enum tree_code
1431 gimple_expr_code (const_gimple stmt)
1432 {
1433   enum gimple_code code = gimple_code (stmt);
1434   if (code == GIMPLE_ASSIGN || code == GIMPLE_COND)
1435     return (enum tree_code) stmt->gsbase.subcode;
1436   else if (code == GIMPLE_CALL)
1437     return CALL_EXPR;
1438   else
1439     gcc_unreachable ();
1440 }
1441
1442
1443 /* Mark statement S as modified, and update it.  */
1444
1445 static inline void
1446 update_stmt (gimple s)
1447 {
1448   if (gimple_has_ops (s))
1449     {
1450       gimple_set_modified (s, true);
1451       update_stmt_operands (s);
1452     }
1453 }
1454
1455 /* Update statement S if it has been optimized.  */
1456
1457 static inline void
1458 update_stmt_if_modified (gimple s)
1459 {
1460   if (gimple_modified_p (s))
1461     update_stmt_operands (s);
1462 }
1463
1464 /* Return true if statement STMT contains volatile operands.  */
1465
1466 static inline bool
1467 gimple_has_volatile_ops (const_gimple stmt)
1468 {
1469   if (gimple_has_mem_ops (stmt))
1470     return stmt->gsbase.has_volatile_ops;
1471   else
1472     return false;
1473 }
1474
1475
1476 /* Set the HAS_VOLATILE_OPS flag to VOLATILEP.  */
1477
1478 static inline void
1479 gimple_set_has_volatile_ops (gimple stmt, bool volatilep)
1480 {
1481   if (gimple_has_mem_ops (stmt))
1482     stmt->gsbase.has_volatile_ops = (unsigned) volatilep;
1483 }
1484
1485
1486 /* Return true if statement STMT may access memory.  */
1487
1488 static inline bool
1489 gimple_references_memory_p (gimple stmt)
1490 {
1491   return gimple_has_mem_ops (stmt) && gimple_vuse (stmt);
1492 }
1493
1494
1495 /* Return the subcode for OMP statement S.  */
1496
1497 static inline unsigned
1498 gimple_omp_subcode (const_gimple s)
1499 {
1500   gcc_assert (gimple_code (s) >= GIMPLE_OMP_ATOMIC_LOAD
1501               && gimple_code (s) <= GIMPLE_OMP_SINGLE);
1502   return s->gsbase.subcode;
1503 }
1504
1505 /* Set the subcode for OMP statement S to SUBCODE.  */
1506
1507 static inline void
1508 gimple_omp_set_subcode (gimple s, unsigned int subcode)
1509 {
1510   /* We only have 16 bits for the subcode.  Assert that we are not
1511      overflowing it.  */
1512   gcc_assert (subcode < (1 << 16));
1513   s->gsbase.subcode = subcode;
1514 }
1515
1516 /* Set the nowait flag on OMP_RETURN statement S.  */
1517
1518 static inline void
1519 gimple_omp_return_set_nowait (gimple s)
1520 {
1521   GIMPLE_CHECK (s, GIMPLE_OMP_RETURN);
1522   s->gsbase.subcode |= GF_OMP_RETURN_NOWAIT;
1523 }
1524
1525
1526 /* Return true if OMP return statement G has the GF_OMP_RETURN_NOWAIT
1527    flag set.  */
1528
1529 static inline bool
1530 gimple_omp_return_nowait_p (const_gimple g)
1531 {
1532   GIMPLE_CHECK (g, GIMPLE_OMP_RETURN);
1533   return (gimple_omp_subcode (g) & GF_OMP_RETURN_NOWAIT) != 0;
1534 }
1535
1536
1537 /* Return true if OMP section statement G has the GF_OMP_SECTION_LAST
1538    flag set.  */
1539
1540 static inline bool
1541 gimple_omp_section_last_p (const_gimple g)
1542 {
1543   GIMPLE_CHECK (g, GIMPLE_OMP_SECTION);
1544   return (gimple_omp_subcode (g) & GF_OMP_SECTION_LAST) != 0;
1545 }
1546
1547
1548 /* Set the GF_OMP_SECTION_LAST flag on G.  */
1549
1550 static inline void
1551 gimple_omp_section_set_last (gimple g)
1552 {
1553   GIMPLE_CHECK (g, GIMPLE_OMP_SECTION);
1554   g->gsbase.subcode |= GF_OMP_SECTION_LAST;
1555 }
1556
1557
1558 /* Return true if OMP parallel statement G has the
1559    GF_OMP_PARALLEL_COMBINED flag set.  */
1560
1561 static inline bool
1562 gimple_omp_parallel_combined_p (const_gimple g)
1563 {
1564   GIMPLE_CHECK (g, GIMPLE_OMP_PARALLEL);
1565   return (gimple_omp_subcode (g) & GF_OMP_PARALLEL_COMBINED) != 0;
1566 }
1567
1568
1569 /* Set the GF_OMP_PARALLEL_COMBINED field in G depending on the boolean
1570    value of COMBINED_P.  */
1571
1572 static inline void
1573 gimple_omp_parallel_set_combined_p (gimple g, bool combined_p)
1574 {
1575   GIMPLE_CHECK (g, GIMPLE_OMP_PARALLEL);
1576   if (combined_p)
1577     g->gsbase.subcode |= GF_OMP_PARALLEL_COMBINED;
1578   else
1579     g->gsbase.subcode &= ~GF_OMP_PARALLEL_COMBINED;
1580 }
1581
1582
1583 /* Return the number of operands for statement GS.  */
1584
1585 static inline unsigned
1586 gimple_num_ops (const_gimple gs)
1587 {
1588   return gs->gsbase.num_ops;
1589 }
1590
1591
1592 /* Set the number of operands for statement GS.  */
1593
1594 static inline void
1595 gimple_set_num_ops (gimple gs, unsigned num_ops)
1596 {
1597   gs->gsbase.num_ops = num_ops;
1598 }
1599
1600
1601 /* Return the array of operands for statement GS.  */
1602
1603 static inline tree *
1604 gimple_ops (gimple gs)
1605 {
1606   size_t off;
1607
1608   /* All the tuples have their operand vector at the very bottom
1609      of the structure.  Note that those structures that do not
1610      have an operand vector have a zero offset.  */
1611   off = gimple_ops_offset_[gimple_statement_structure (gs)];
1612   gcc_assert (off != 0);
1613
1614   return (tree *) ((char *) gs + off);
1615 }
1616
1617
1618 /* Return operand I for statement GS.  */
1619
1620 static inline tree
1621 gimple_op (const_gimple gs, unsigned i)
1622 {
1623   if (gimple_has_ops (gs))
1624     {
1625       gcc_assert (i < gimple_num_ops (gs));
1626       return gimple_ops (CONST_CAST_GIMPLE (gs))[i];
1627     }
1628   else
1629     return NULL_TREE;
1630 }
1631
1632 /* Return a pointer to operand I for statement GS.  */
1633
1634 static inline tree *
1635 gimple_op_ptr (const_gimple gs, unsigned i)
1636 {
1637   if (gimple_has_ops (gs))
1638     {
1639       gcc_assert (i < gimple_num_ops (gs));
1640       return gimple_ops (CONST_CAST_GIMPLE (gs)) + i;
1641     }
1642   else
1643     return NULL;
1644 }
1645
1646 /* Set operand I of statement GS to OP.  */
1647
1648 static inline void
1649 gimple_set_op (gimple gs, unsigned i, tree op)
1650 {
1651   gcc_assert (gimple_has_ops (gs) && i < gimple_num_ops (gs));
1652
1653   /* Note.  It may be tempting to assert that OP matches
1654      is_gimple_operand, but that would be wrong.  Different tuples
1655      accept slightly different sets of tree operands.  Each caller
1656      should perform its own validation.  */
1657   gimple_ops (gs)[i] = op;
1658 }
1659
1660 /* Return true if GS is a GIMPLE_ASSIGN.  */
1661
1662 static inline bool
1663 is_gimple_assign (const_gimple gs)
1664 {
1665   return gimple_code (gs) == GIMPLE_ASSIGN;
1666 }
1667
1668 /* Determine if expression CODE is one of the valid expressions that can
1669    be used on the RHS of GIMPLE assignments.  */
1670
1671 static inline enum gimple_rhs_class
1672 get_gimple_rhs_class (enum tree_code code)
1673 {
1674   return (enum gimple_rhs_class) gimple_rhs_class_table[(int) code];
1675 }
1676
1677 /* Return the LHS of assignment statement GS.  */
1678
1679 static inline tree
1680 gimple_assign_lhs (const_gimple gs)
1681 {
1682   GIMPLE_CHECK (gs, GIMPLE_ASSIGN);
1683   return gimple_op (gs, 0);
1684 }
1685
1686
1687 /* Return a pointer to the LHS of assignment statement GS.  */
1688
1689 static inline tree *
1690 gimple_assign_lhs_ptr (const_gimple gs)
1691 {
1692   GIMPLE_CHECK (gs, GIMPLE_ASSIGN);
1693   return gimple_op_ptr (gs, 0);
1694 }
1695
1696
1697 /* Set LHS to be the LHS operand of assignment statement GS.  */
1698
1699 static inline void
1700 gimple_assign_set_lhs (gimple gs, tree lhs)
1701 {
1702   GIMPLE_CHECK (gs, GIMPLE_ASSIGN);
1703   gcc_assert (is_gimple_operand (lhs));
1704   gimple_set_op (gs, 0, lhs);
1705
1706   if (lhs && TREE_CODE (lhs) == SSA_NAME)
1707     SSA_NAME_DEF_STMT (lhs) = gs;
1708 }
1709
1710
1711 /* Return the first operand on the RHS of assignment statement GS.  */
1712
1713 static inline tree
1714 gimple_assign_rhs1 (const_gimple gs)
1715 {
1716   GIMPLE_CHECK (gs, GIMPLE_ASSIGN);
1717   return gimple_op (gs, 1);
1718 }
1719
1720
1721 /* Return a pointer to the first operand on the RHS of assignment
1722    statement GS.  */
1723
1724 static inline tree *
1725 gimple_assign_rhs1_ptr (const_gimple gs)
1726 {
1727   GIMPLE_CHECK (gs, GIMPLE_ASSIGN);
1728   return gimple_op_ptr (gs, 1);
1729 }
1730
1731 /* Set RHS to be the first operand on the RHS of assignment statement GS.  */
1732
1733 static inline void
1734 gimple_assign_set_rhs1 (gimple gs, tree rhs)
1735 {
1736   GIMPLE_CHECK (gs, GIMPLE_ASSIGN);
1737
1738   /* If there are 3 or more operands, the 2 operands on the RHS must be
1739      GIMPLE values.  */
1740   if (gimple_num_ops (gs) >= 3)
1741     gcc_assert (is_gimple_val (rhs));
1742   else
1743     gcc_assert (is_gimple_operand (rhs));
1744
1745   gimple_set_op (gs, 1, rhs);
1746 }
1747
1748
1749 /* Return the second operand on the RHS of assignment statement GS.
1750    If GS does not have two operands, NULL is returned instead.  */
1751
1752 static inline tree
1753 gimple_assign_rhs2 (const_gimple gs)
1754 {
1755   GIMPLE_CHECK (gs, GIMPLE_ASSIGN);
1756
1757   if (gimple_num_ops (gs) >= 3)
1758     return gimple_op (gs, 2);
1759   else
1760     return NULL_TREE;
1761 }
1762
1763
1764 /* Return a pointer to the second operand on the RHS of assignment
1765    statement GS.  */
1766
1767 static inline tree *
1768 gimple_assign_rhs2_ptr (const_gimple gs)
1769 {
1770   GIMPLE_CHECK (gs, GIMPLE_ASSIGN);
1771   return gimple_op_ptr (gs, 2);
1772 }
1773
1774
1775 /* Set RHS to be the second operand on the RHS of assignment statement GS.  */
1776
1777 static inline void
1778 gimple_assign_set_rhs2 (gimple gs, tree rhs)
1779 {
1780   GIMPLE_CHECK (gs, GIMPLE_ASSIGN);
1781
1782   /* The 2 operands on the RHS must be GIMPLE values.  */
1783   gcc_assert (is_gimple_val (rhs));
1784
1785   gimple_set_op (gs, 2, rhs);
1786 }
1787
1788 /* Returns true if GS is a nontemporal move.  */
1789
1790 static inline bool
1791 gimple_assign_nontemporal_move_p (const_gimple gs)
1792 {
1793   GIMPLE_CHECK (gs, GIMPLE_ASSIGN);
1794   return gs->gsbase.nontemporal_move;
1795 }
1796
1797 /* Sets nontemporal move flag of GS to NONTEMPORAL.  */
1798
1799 static inline void
1800 gimple_assign_set_nontemporal_move (gimple gs, bool nontemporal)
1801 {
1802   GIMPLE_CHECK (gs, GIMPLE_ASSIGN);
1803   gs->gsbase.nontemporal_move = nontemporal;
1804 }
1805
1806
1807 /* Return the code of the expression computed on the rhs of assignment
1808    statement GS.  In case that the RHS is a single object, returns the
1809    tree code of the object.  */
1810
1811 static inline enum tree_code
1812 gimple_assign_rhs_code (const_gimple gs)
1813 {
1814   enum tree_code code;
1815   GIMPLE_CHECK (gs, GIMPLE_ASSIGN);
1816
1817   code = gimple_expr_code (gs);
1818   if (get_gimple_rhs_class (code) == GIMPLE_SINGLE_RHS)
1819     code = TREE_CODE (gimple_assign_rhs1 (gs));
1820
1821   return code;
1822 }
1823
1824
1825 /* Set CODE to be the code for the expression computed on the RHS of
1826    assignment S.  */
1827
1828 static inline void
1829 gimple_assign_set_rhs_code (gimple s, enum tree_code code)
1830 {
1831   GIMPLE_CHECK (s, GIMPLE_ASSIGN);
1832   s->gsbase.subcode = code;
1833 }
1834
1835
1836 /* Return the gimple rhs class of the code of the expression computed on
1837    the rhs of assignment statement GS.
1838    This will never return GIMPLE_INVALID_RHS.  */
1839
1840 static inline enum gimple_rhs_class
1841 gimple_assign_rhs_class (const_gimple gs)
1842 {
1843   return get_gimple_rhs_class (gimple_assign_rhs_code (gs));
1844 }
1845
1846
1847 /* Return true if S is a type-cast assignment.  */
1848
1849 static inline bool
1850 gimple_assign_cast_p (gimple s)
1851 {
1852   if (is_gimple_assign (s))
1853     {
1854       enum tree_code sc = gimple_assign_rhs_code (s);
1855       return CONVERT_EXPR_CODE_P (sc)
1856              || sc == VIEW_CONVERT_EXPR
1857              || sc == FIX_TRUNC_EXPR;
1858     }
1859
1860   return false;
1861 }
1862
1863
1864 /* Return true if GS is a GIMPLE_CALL.  */
1865
1866 static inline bool
1867 is_gimple_call (const_gimple gs)
1868 {
1869   return gimple_code (gs) == GIMPLE_CALL;
1870 }
1871
1872 /* Return the LHS of call statement GS.  */
1873
1874 static inline tree
1875 gimple_call_lhs (const_gimple gs)
1876 {
1877   GIMPLE_CHECK (gs, GIMPLE_CALL);
1878   return gimple_op (gs, 0);
1879 }
1880
1881
1882 /* Return a pointer to the LHS of call statement GS.  */
1883
1884 static inline tree *
1885 gimple_call_lhs_ptr (const_gimple gs)
1886 {
1887   GIMPLE_CHECK (gs, GIMPLE_CALL);
1888   return gimple_op_ptr (gs, 0);
1889 }
1890
1891
1892 /* Set LHS to be the LHS operand of call statement GS.  */
1893
1894 static inline void
1895 gimple_call_set_lhs (gimple gs, tree lhs)
1896 {
1897   GIMPLE_CHECK (gs, GIMPLE_CALL);
1898   gcc_assert (!lhs || is_gimple_operand (lhs));
1899   gimple_set_op (gs, 0, lhs);
1900   if (lhs && TREE_CODE (lhs) == SSA_NAME)
1901     SSA_NAME_DEF_STMT (lhs) = gs;
1902 }
1903
1904
1905 /* Return the tree node representing the function called by call
1906    statement GS.  */
1907
1908 static inline tree
1909 gimple_call_fn (const_gimple gs)
1910 {
1911   GIMPLE_CHECK (gs, GIMPLE_CALL);
1912   return gimple_op (gs, 1);
1913 }
1914
1915
1916 /* Return a pointer to the tree node representing the function called by call
1917    statement GS.  */
1918
1919 static inline tree *
1920 gimple_call_fn_ptr (const_gimple gs)
1921 {
1922   GIMPLE_CHECK (gs, GIMPLE_CALL);
1923   return gimple_op_ptr (gs, 1);
1924 }
1925
1926
1927 /* Set FN to be the function called by call statement GS.  */
1928
1929 static inline void
1930 gimple_call_set_fn (gimple gs, tree fn)
1931 {
1932   GIMPLE_CHECK (gs, GIMPLE_CALL);
1933   gcc_assert (is_gimple_operand (fn));
1934   gimple_set_op (gs, 1, fn);
1935 }
1936
1937
1938 /* Set FNDECL to be the function called by call statement GS.  */
1939
1940 static inline void
1941 gimple_call_set_fndecl (gimple gs, tree decl)
1942 {
1943   GIMPLE_CHECK (gs, GIMPLE_CALL);
1944   gcc_assert (TREE_CODE (decl) == FUNCTION_DECL);
1945   gimple_set_op (gs, 1, build_fold_addr_expr_loc (gimple_location (gs), decl));
1946 }
1947
1948
1949 /* If a given GIMPLE_CALL's callee is a FUNCTION_DECL, return it.
1950    Otherwise return NULL.  This function is analogous to
1951    get_callee_fndecl in tree land.  */
1952
1953 static inline tree
1954 gimple_call_fndecl (const_gimple gs)
1955 {
1956   tree addr = gimple_call_fn (gs);
1957   if (TREE_CODE (addr) == ADDR_EXPR)
1958     {
1959       gcc_assert (TREE_CODE (TREE_OPERAND (addr, 0)) == FUNCTION_DECL);
1960       return TREE_OPERAND (addr, 0);
1961     }
1962   return NULL_TREE;
1963 }
1964
1965
1966 /* Return the type returned by call statement GS.  */
1967
1968 static inline tree
1969 gimple_call_return_type (const_gimple gs)
1970 {
1971   tree fn = gimple_call_fn (gs);
1972   tree type = TREE_TYPE (fn);
1973
1974   /* See through the pointer.  */
1975   gcc_assert (POINTER_TYPE_P (type));
1976   type = TREE_TYPE (type);
1977
1978   gcc_assert (TREE_CODE (type) == FUNCTION_TYPE
1979               || TREE_CODE (type) == METHOD_TYPE);
1980
1981   /* The type returned by a FUNCTION_DECL is the type of its
1982      function type.  */
1983   return TREE_TYPE (type);
1984 }
1985
1986
1987 /* Return the static chain for call statement GS.  */
1988
1989 static inline tree
1990 gimple_call_chain (const_gimple gs)
1991 {
1992   GIMPLE_CHECK (gs, GIMPLE_CALL);
1993   return gimple_op (gs, 2);
1994 }
1995
1996
1997 /* Return a pointer to the static chain for call statement GS.  */
1998
1999 static inline tree *
2000 gimple_call_chain_ptr (const_gimple gs)
2001 {
2002   GIMPLE_CHECK (gs, GIMPLE_CALL);
2003   return gimple_op_ptr (gs, 2);
2004 }
2005
2006 /* Set CHAIN to be the static chain for call statement GS.  */
2007
2008 static inline void
2009 gimple_call_set_chain (gimple gs, tree chain)
2010 {
2011   GIMPLE_CHECK (gs, GIMPLE_CALL);
2012   gcc_assert (chain == NULL
2013               || TREE_CODE (chain) == ADDR_EXPR
2014               || SSA_VAR_P (chain));
2015   gimple_set_op (gs, 2, chain);
2016 }
2017
2018
2019 /* Return the number of arguments used by call statement GS.  */
2020
2021 static inline unsigned
2022 gimple_call_num_args (const_gimple gs)
2023 {
2024   unsigned num_ops;
2025   GIMPLE_CHECK (gs, GIMPLE_CALL);
2026   num_ops = gimple_num_ops (gs);
2027   gcc_assert (num_ops >= 3);
2028   return num_ops - 3;
2029 }
2030
2031
2032 /* Return the argument at position INDEX for call statement GS.  */
2033
2034 static inline tree
2035 gimple_call_arg (const_gimple gs, unsigned index)
2036 {
2037   GIMPLE_CHECK (gs, GIMPLE_CALL);
2038   return gimple_op (gs, index + 3);
2039 }
2040
2041
2042 /* Return a pointer to the argument at position INDEX for call
2043    statement GS.  */
2044
2045 static inline tree *
2046 gimple_call_arg_ptr (const_gimple gs, unsigned index)
2047 {
2048   GIMPLE_CHECK (gs, GIMPLE_CALL);
2049   return gimple_op_ptr (gs, index + 3);
2050 }
2051
2052
2053 /* Set ARG to be the argument at position INDEX for call statement GS.  */
2054
2055 static inline void
2056 gimple_call_set_arg (gimple gs, unsigned index, tree arg)
2057 {
2058   GIMPLE_CHECK (gs, GIMPLE_CALL);
2059   gcc_assert (is_gimple_operand (arg));
2060   gimple_set_op (gs, index + 3, arg);
2061 }
2062
2063
2064 /* If TAIL_P is true, mark call statement S as being a tail call
2065    (i.e., a call just before the exit of a function).  These calls are
2066    candidate for tail call optimization.  */
2067
2068 static inline void
2069 gimple_call_set_tail (gimple s, bool tail_p)
2070 {
2071   GIMPLE_CHECK (s, GIMPLE_CALL);
2072   if (tail_p)
2073     s->gsbase.subcode |= GF_CALL_TAILCALL;
2074   else
2075     s->gsbase.subcode &= ~GF_CALL_TAILCALL;
2076 }
2077
2078
2079 /* Return true if GIMPLE_CALL S is marked as a tail call.  */
2080
2081 static inline bool
2082 gimple_call_tail_p (gimple s)
2083 {
2084   GIMPLE_CHECK (s, GIMPLE_CALL);
2085   return (s->gsbase.subcode & GF_CALL_TAILCALL) != 0;
2086 }
2087
2088
2089 /* Set the inlinable status of GIMPLE_CALL S to INLINABLE_P.  */
2090
2091 static inline void
2092 gimple_call_set_cannot_inline (gimple s, bool inlinable_p)
2093 {
2094   GIMPLE_CHECK (s, GIMPLE_CALL);
2095   if (inlinable_p)
2096     s->gsbase.subcode |= GF_CALL_CANNOT_INLINE;
2097   else
2098     s->gsbase.subcode &= ~GF_CALL_CANNOT_INLINE;
2099 }
2100
2101
2102 /* Return true if GIMPLE_CALL S cannot be inlined.  */
2103
2104 static inline bool
2105 gimple_call_cannot_inline_p (gimple s)
2106 {
2107   GIMPLE_CHECK (s, GIMPLE_CALL);
2108   return (s->gsbase.subcode & GF_CALL_CANNOT_INLINE) != 0;
2109 }
2110
2111
2112 /* If RETURN_SLOT_OPT_P is true mark GIMPLE_CALL S as valid for return
2113    slot optimization.  This transformation uses the target of the call
2114    expansion as the return slot for calls that return in memory.  */
2115
2116 static inline void
2117 gimple_call_set_return_slot_opt (gimple s, bool return_slot_opt_p)
2118 {
2119   GIMPLE_CHECK (s, GIMPLE_CALL);
2120   if (return_slot_opt_p)
2121     s->gsbase.subcode |= GF_CALL_RETURN_SLOT_OPT;
2122   else
2123     s->gsbase.subcode &= ~GF_CALL_RETURN_SLOT_OPT;
2124 }
2125
2126
2127 /* Return true if S is marked for return slot optimization.  */
2128
2129 static inline bool
2130 gimple_call_return_slot_opt_p (gimple s)
2131 {
2132   GIMPLE_CHECK (s, GIMPLE_CALL);
2133   return (s->gsbase.subcode & GF_CALL_RETURN_SLOT_OPT) != 0;
2134 }
2135
2136
2137 /* If FROM_THUNK_P is true, mark GIMPLE_CALL S as being the jump from a
2138    thunk to the thunked-to function.  */
2139
2140 static inline void
2141 gimple_call_set_from_thunk (gimple s, bool from_thunk_p)
2142 {
2143   GIMPLE_CHECK (s, GIMPLE_CALL);
2144   if (from_thunk_p)
2145     s->gsbase.subcode |= GF_CALL_FROM_THUNK;
2146   else
2147     s->gsbase.subcode &= ~GF_CALL_FROM_THUNK;
2148 }
2149
2150
2151 /* Return true if GIMPLE_CALL S is a jump from a thunk.  */
2152
2153 static inline bool
2154 gimple_call_from_thunk_p (gimple s)
2155 {
2156   GIMPLE_CHECK (s, GIMPLE_CALL);
2157   return (s->gsbase.subcode & GF_CALL_FROM_THUNK) != 0;
2158 }
2159
2160
2161 /* If PASS_ARG_PACK_P is true, GIMPLE_CALL S is a stdarg call that needs the
2162    argument pack in its argument list.  */
2163
2164 static inline void
2165 gimple_call_set_va_arg_pack (gimple s, bool pass_arg_pack_p)
2166 {
2167   GIMPLE_CHECK (s, GIMPLE_CALL);
2168   if (pass_arg_pack_p)
2169     s->gsbase.subcode |= GF_CALL_VA_ARG_PACK;
2170   else
2171     s->gsbase.subcode &= ~GF_CALL_VA_ARG_PACK;
2172 }
2173
2174
2175 /* Return true if GIMPLE_CALL S is a stdarg call that needs the
2176    argument pack in its argument list.  */
2177
2178 static inline bool
2179 gimple_call_va_arg_pack_p (gimple s)
2180 {
2181   GIMPLE_CHECK (s, GIMPLE_CALL);
2182   return (s->gsbase.subcode & GF_CALL_VA_ARG_PACK) != 0;
2183 }
2184
2185
2186 /* Return true if S is a noreturn call.  */
2187
2188 static inline bool
2189 gimple_call_noreturn_p (gimple s)
2190 {
2191   GIMPLE_CHECK (s, GIMPLE_CALL);
2192   return (gimple_call_flags (s) & ECF_NORETURN) != 0;
2193 }
2194
2195
2196 /* Return true if S is a nothrow call.  */
2197
2198 static inline bool
2199 gimple_call_nothrow_p (gimple s)
2200 {
2201   GIMPLE_CHECK (s, GIMPLE_CALL);
2202   return (gimple_call_flags (s) & ECF_NOTHROW) != 0;
2203 }
2204
2205
2206 /* Copy all the GF_CALL_* flags from ORIG_CALL to DEST_CALL.  */
2207
2208 static inline void
2209 gimple_call_copy_flags (gimple dest_call, gimple orig_call)
2210 {
2211   GIMPLE_CHECK (dest_call, GIMPLE_CALL);
2212   GIMPLE_CHECK (orig_call, GIMPLE_CALL);
2213   dest_call->gsbase.subcode = orig_call->gsbase.subcode;
2214 }
2215
2216
2217 /* Returns true if this is a GIMPLE_ASSIGN or a GIMPLE_CALL with a
2218    non-NULL lhs.  */
2219
2220 static inline bool
2221 gimple_has_lhs (gimple stmt)
2222 {
2223   return (is_gimple_assign (stmt)
2224           || (is_gimple_call (stmt)
2225               && gimple_call_lhs (stmt) != NULL_TREE));
2226 }
2227
2228
2229 /* Return the code of the predicate computed by conditional statement GS.  */
2230
2231 static inline enum tree_code
2232 gimple_cond_code (const_gimple gs)
2233 {
2234   GIMPLE_CHECK (gs, GIMPLE_COND);
2235   return (enum tree_code) gs->gsbase.subcode;
2236 }
2237
2238
2239 /* Set CODE to be the predicate code for the conditional statement GS.  */
2240
2241 static inline void
2242 gimple_cond_set_code (gimple gs, enum tree_code code)
2243 {
2244   GIMPLE_CHECK (gs, GIMPLE_COND);
2245   gcc_assert (TREE_CODE_CLASS (code) == tcc_comparison);
2246   gs->gsbase.subcode = code;
2247 }
2248
2249
2250 /* Return the LHS of the predicate computed by conditional statement GS.  */
2251
2252 static inline tree
2253 gimple_cond_lhs (const_gimple gs)
2254 {
2255   GIMPLE_CHECK (gs, GIMPLE_COND);
2256   return gimple_op (gs, 0);
2257 }
2258
2259 /* Return the pointer to the LHS of the predicate computed by conditional
2260    statement GS.  */
2261
2262 static inline tree *
2263 gimple_cond_lhs_ptr (const_gimple gs)
2264 {
2265   GIMPLE_CHECK (gs, GIMPLE_COND);
2266   return gimple_op_ptr (gs, 0);
2267 }
2268
2269 /* Set LHS to be the LHS operand of the predicate computed by
2270    conditional statement GS.  */
2271
2272 static inline void
2273 gimple_cond_set_lhs (gimple gs, tree lhs)
2274 {
2275   GIMPLE_CHECK (gs, GIMPLE_COND);
2276   gcc_assert (is_gimple_operand (lhs));
2277   gimple_set_op (gs, 0, lhs);
2278 }
2279
2280
2281 /* Return the RHS operand of the predicate computed by conditional GS.  */
2282
2283 static inline tree
2284 gimple_cond_rhs (const_gimple gs)
2285 {
2286   GIMPLE_CHECK (gs, GIMPLE_COND);
2287   return gimple_op (gs, 1);
2288 }
2289
2290 /* Return the pointer to the RHS operand of the predicate computed by
2291    conditional GS.  */
2292
2293 static inline tree *
2294 gimple_cond_rhs_ptr (const_gimple gs)
2295 {
2296   GIMPLE_CHECK (gs, GIMPLE_COND);
2297   return gimple_op_ptr (gs, 1);
2298 }
2299
2300
2301 /* Set RHS to be the RHS operand of the predicate computed by
2302    conditional statement GS.  */
2303
2304 static inline void
2305 gimple_cond_set_rhs (gimple gs, tree rhs)
2306 {
2307   GIMPLE_CHECK (gs, GIMPLE_COND);
2308   gcc_assert (is_gimple_operand (rhs));
2309   gimple_set_op (gs, 1, rhs);
2310 }
2311
2312
2313 /* Return the label used by conditional statement GS when its
2314    predicate evaluates to true.  */
2315
2316 static inline tree
2317 gimple_cond_true_label (const_gimple gs)
2318 {
2319   GIMPLE_CHECK (gs, GIMPLE_COND);
2320   return gimple_op (gs, 2);
2321 }
2322
2323
2324 /* Set LABEL to be the label used by conditional statement GS when its
2325    predicate evaluates to true.  */
2326
2327 static inline void
2328 gimple_cond_set_true_label (gimple gs, tree label)
2329 {
2330   GIMPLE_CHECK (gs, GIMPLE_COND);
2331   gcc_assert (!label || TREE_CODE (label) == LABEL_DECL);
2332   gimple_set_op (gs, 2, label);
2333 }
2334
2335
2336 /* Set LABEL to be the label used by conditional statement GS when its
2337    predicate evaluates to false.  */
2338
2339 static inline void
2340 gimple_cond_set_false_label (gimple gs, tree label)
2341 {
2342   GIMPLE_CHECK (gs, GIMPLE_COND);
2343   gcc_assert (!label || TREE_CODE (label) == LABEL_DECL);
2344   gimple_set_op (gs, 3, label);
2345 }
2346
2347
2348 /* Return the label used by conditional statement GS when its
2349    predicate evaluates to false.  */
2350
2351 static inline tree
2352 gimple_cond_false_label (const_gimple gs)
2353 {
2354   GIMPLE_CHECK (gs, GIMPLE_COND);
2355   return gimple_op (gs, 3);
2356 }
2357
2358
2359 /* Set the conditional COND_STMT to be of the form 'if (1 == 0)'.  */
2360
2361 static inline void
2362 gimple_cond_make_false (gimple gs)
2363 {
2364   gimple_cond_set_lhs (gs, boolean_true_node);
2365   gimple_cond_set_rhs (gs, boolean_false_node);
2366   gs->gsbase.subcode = EQ_EXPR;
2367 }
2368
2369
2370 /* Set the conditional COND_STMT to be of the form 'if (1 == 1)'.  */
2371
2372 static inline void
2373 gimple_cond_make_true (gimple gs)
2374 {
2375   gimple_cond_set_lhs (gs, boolean_true_node);
2376   gimple_cond_set_rhs (gs, boolean_true_node);
2377   gs->gsbase.subcode = EQ_EXPR;
2378 }
2379
2380 /* Check if conditional statemente GS is of the form 'if (1 == 1)',
2381   'if (0 == 0)', 'if (1 != 0)' or 'if (0 != 1)' */
2382
2383 static inline bool
2384 gimple_cond_true_p (const_gimple gs)
2385 {
2386   tree lhs = gimple_cond_lhs (gs);
2387   tree rhs = gimple_cond_rhs (gs);
2388   enum tree_code code = gimple_cond_code (gs);
2389
2390   if (lhs != boolean_true_node && lhs != boolean_false_node)
2391     return false;
2392
2393   if (rhs != boolean_true_node && rhs != boolean_false_node)
2394     return false;
2395
2396   if (code == NE_EXPR && lhs != rhs)
2397     return true;
2398
2399   if (code == EQ_EXPR && lhs == rhs)
2400       return true;
2401
2402   return false;
2403 }
2404
2405 /* Check if conditional statement GS is of the form 'if (1 != 1)',
2406    'if (0 != 0)', 'if (1 == 0)' or 'if (0 == 1)' */
2407
2408 static inline bool
2409 gimple_cond_false_p (const_gimple gs)
2410 {
2411   tree lhs = gimple_cond_lhs (gs);
2412   tree rhs = gimple_cond_rhs (gs);
2413   enum tree_code code = gimple_cond_code (gs);
2414
2415   if (lhs != boolean_true_node && lhs != boolean_false_node)
2416     return false;
2417
2418   if (rhs != boolean_true_node && rhs != boolean_false_node)
2419     return false;
2420
2421   if (code == NE_EXPR && lhs == rhs)
2422     return true;
2423
2424   if (code == EQ_EXPR && lhs != rhs)
2425       return true;
2426
2427   return false;
2428 }
2429
2430 /* Check if conditional statement GS is of the form 'if (var != 0)' or
2431    'if (var == 1)' */
2432
2433 static inline bool
2434 gimple_cond_single_var_p (gimple gs)
2435 {
2436   if (gimple_cond_code (gs) == NE_EXPR
2437       && gimple_cond_rhs (gs) == boolean_false_node)
2438     return true;
2439
2440   if (gimple_cond_code (gs) == EQ_EXPR
2441       && gimple_cond_rhs (gs) == boolean_true_node)
2442     return true;
2443
2444   return false;
2445 }
2446
2447 /* Set the code, LHS and RHS of GIMPLE_COND STMT from CODE, LHS and RHS.  */
2448
2449 static inline void
2450 gimple_cond_set_condition (gimple stmt, enum tree_code code, tree lhs, tree rhs)
2451 {
2452   gimple_cond_set_code (stmt, code);
2453   gimple_cond_set_lhs (stmt, lhs);
2454   gimple_cond_set_rhs (stmt, rhs);
2455 }
2456
2457 /* Return the LABEL_DECL node used by GIMPLE_LABEL statement GS.  */
2458
2459 static inline tree
2460 gimple_label_label (const_gimple gs)
2461 {
2462   GIMPLE_CHECK (gs, GIMPLE_LABEL);
2463   return gimple_op (gs, 0);
2464 }
2465
2466
2467 /* Set LABEL to be the LABEL_DECL node used by GIMPLE_LABEL statement
2468    GS.  */
2469
2470 static inline void
2471 gimple_label_set_label (gimple gs, tree label)
2472 {
2473   GIMPLE_CHECK (gs, GIMPLE_LABEL);
2474   gcc_assert (TREE_CODE (label) == LABEL_DECL);
2475   gimple_set_op (gs, 0, label);
2476 }
2477
2478
2479 /* Return the destination of the unconditional jump GS.  */
2480
2481 static inline tree
2482 gimple_goto_dest (const_gimple gs)
2483 {
2484   GIMPLE_CHECK (gs, GIMPLE_GOTO);
2485   return gimple_op (gs, 0);
2486 }
2487
2488
2489 /* Set DEST to be the destination of the unconditonal jump GS.  */
2490
2491 static inline void 
2492 gimple_goto_set_dest (gimple gs, tree dest)
2493 {
2494   GIMPLE_CHECK (gs, GIMPLE_GOTO);
2495   gcc_assert (is_gimple_operand (dest));
2496   gimple_set_op (gs, 0, dest);
2497 }
2498
2499
2500 /* Return the variables declared in the GIMPLE_BIND statement GS.  */
2501
2502 static inline tree
2503 gimple_bind_vars (const_gimple gs)
2504 {
2505   GIMPLE_CHECK (gs, GIMPLE_BIND);
2506   return gs->gimple_bind.vars;
2507 }
2508
2509
2510 /* Set VARS to be the set of variables declared in the GIMPLE_BIND
2511    statement GS.  */
2512
2513 static inline void
2514 gimple_bind_set_vars (gimple gs, tree vars)
2515 {
2516   GIMPLE_CHECK (gs, GIMPLE_BIND);
2517   gs->gimple_bind.vars = vars;
2518 }
2519
2520
2521 /* Append VARS to the set of variables declared in the GIMPLE_BIND
2522    statement GS.  */
2523
2524 static inline void
2525 gimple_bind_append_vars (gimple gs, tree vars)
2526 {
2527   GIMPLE_CHECK (gs, GIMPLE_BIND);
2528   gs->gimple_bind.vars = chainon (gs->gimple_bind.vars, vars);
2529 }
2530
2531
2532 /* Return the GIMPLE sequence contained in the GIMPLE_BIND statement GS.  */
2533
2534 static inline gimple_seq
2535 gimple_bind_body (gimple gs)
2536 {
2537   GIMPLE_CHECK (gs, GIMPLE_BIND);
2538   return gs->gimple_bind.body;
2539 }
2540
2541
2542 /* Set SEQ to be the GIMPLE sequence contained in the GIMPLE_BIND
2543    statement GS.  */
2544
2545 static inline void
2546 gimple_bind_set_body (gimple gs, gimple_seq seq)
2547 {
2548   GIMPLE_CHECK (gs, GIMPLE_BIND);
2549   gs->gimple_bind.body = seq;
2550 }
2551
2552
2553 /* Append a statement to the end of a GIMPLE_BIND's body.  */
2554
2555 static inline void
2556 gimple_bind_add_stmt (gimple gs, gimple stmt)
2557 {
2558   GIMPLE_CHECK (gs, GIMPLE_BIND);
2559   gimple_seq_add_stmt (&gs->gimple_bind.body, stmt);
2560 }
2561
2562
2563 /* Append a sequence of statements to the end of a GIMPLE_BIND's body.  */
2564
2565 static inline void
2566 gimple_bind_add_seq (gimple gs, gimple_seq seq)
2567 {
2568   GIMPLE_CHECK (gs, GIMPLE_BIND);
2569   gimple_seq_add_seq (&gs->gimple_bind.body, seq);
2570 }
2571
2572
2573 /* Return the TREE_BLOCK node associated with GIMPLE_BIND statement
2574    GS.  This is analogous to the BIND_EXPR_BLOCK field in trees.  */
2575
2576 static inline tree
2577 gimple_bind_block (const_gimple gs)
2578 {
2579   GIMPLE_CHECK (gs, GIMPLE_BIND);
2580   return gs->gimple_bind.block;
2581 }
2582
2583
2584 /* Set BLOCK to be the TREE_BLOCK node associated with GIMPLE_BIND
2585    statement GS.  */
2586
2587 static inline void
2588 gimple_bind_set_block (gimple gs, tree block)
2589 {
2590   GIMPLE_CHECK (gs, GIMPLE_BIND);
2591   gcc_assert (block == NULL_TREE || TREE_CODE (block) == BLOCK);
2592   gs->gimple_bind.block = block;
2593 }
2594
2595
2596 /* Return the number of input operands for GIMPLE_ASM GS.  */
2597
2598 static inline unsigned
2599 gimple_asm_ninputs (const_gimple gs)
2600 {
2601   GIMPLE_CHECK (gs, GIMPLE_ASM);
2602   return gs->gimple_asm.ni;
2603 }
2604
2605
2606 /* Return the number of output operands for GIMPLE_ASM GS.  */
2607
2608 static inline unsigned
2609 gimple_asm_noutputs (const_gimple gs)
2610 {
2611   GIMPLE_CHECK (gs, GIMPLE_ASM);
2612   return gs->gimple_asm.no;
2613 }
2614
2615
2616 /* Return the number of clobber operands for GIMPLE_ASM GS.  */
2617
2618 static inline unsigned
2619 gimple_asm_nclobbers (const_gimple gs)
2620 {
2621   GIMPLE_CHECK (gs, GIMPLE_ASM);
2622   return gs->gimple_asm.nc;
2623 }
2624
2625 /* Return the number of label operands for GIMPLE_ASM GS.  */
2626
2627 static inline unsigned
2628 gimple_asm_nlabels (const_gimple gs)
2629 {
2630   GIMPLE_CHECK (gs, GIMPLE_ASM);
2631   return gs->gimple_asm.nl;
2632 }
2633
2634 /* Return input operand INDEX of GIMPLE_ASM GS.  */
2635
2636 static inline tree
2637 gimple_asm_input_op (const_gimple gs, unsigned index)
2638 {
2639   GIMPLE_CHECK (gs, GIMPLE_ASM);
2640   gcc_assert (index <= gs->gimple_asm.ni);
2641   return gimple_op (gs, index);
2642 }
2643
2644 /* Return a pointer to input operand INDEX of GIMPLE_ASM GS.  */
2645
2646 static inline tree *
2647 gimple_asm_input_op_ptr (const_gimple gs, unsigned index)
2648 {
2649   GIMPLE_CHECK (gs, GIMPLE_ASM);
2650   gcc_assert (index <= gs->gimple_asm.ni);
2651   return gimple_op_ptr (gs, index);
2652 }
2653
2654
2655 /* Set IN_OP to be input operand INDEX in GIMPLE_ASM GS.  */
2656
2657 static inline void
2658 gimple_asm_set_input_op (gimple gs, unsigned index, tree in_op)
2659 {
2660   GIMPLE_CHECK (gs, GIMPLE_ASM);
2661   gcc_assert (index <= gs->gimple_asm.ni);
2662   gcc_assert (TREE_CODE (in_op) == TREE_LIST);
2663   gimple_set_op (gs, index, in_op);
2664 }
2665
2666
2667 /* Return output operand INDEX of GIMPLE_ASM GS.  */
2668
2669 static inline tree
2670 gimple_asm_output_op (const_gimple gs, unsigned index)
2671 {
2672   GIMPLE_CHECK (gs, GIMPLE_ASM);
2673   gcc_assert (index <= gs->gimple_asm.no);
2674   return gimple_op (gs, index + gs->gimple_asm.ni);
2675 }
2676
2677 /* Return a pointer to output operand INDEX of GIMPLE_ASM GS.  */
2678
2679 static inline tree *
2680 gimple_asm_output_op_ptr (const_gimple gs, unsigned index)
2681 {
2682   GIMPLE_CHECK (gs, GIMPLE_ASM);
2683   gcc_assert (index <= gs->gimple_asm.no);
2684   return gimple_op_ptr (gs, index + gs->gimple_asm.ni);
2685 }
2686
2687
2688 /* Set OUT_OP to be output operand INDEX in GIMPLE_ASM GS.  */
2689
2690 static inline void
2691 gimple_asm_set_output_op (gimple gs, unsigned index, tree out_op)
2692 {
2693   GIMPLE_CHECK (gs, GIMPLE_ASM);
2694   gcc_assert (index <= gs->gimple_asm.no);
2695   gcc_assert (TREE_CODE (out_op) == TREE_LIST);
2696   gimple_set_op (gs, index + gs->gimple_asm.ni, out_op);
2697 }
2698
2699
2700 /* Return clobber operand INDEX of GIMPLE_ASM GS.  */
2701
2702 static inline tree
2703 gimple_asm_clobber_op (const_gimple gs, unsigned index)
2704 {
2705   GIMPLE_CHECK (gs, GIMPLE_ASM);
2706   gcc_assert (index <= gs->gimple_asm.nc);
2707   return gimple_op (gs, index + gs->gimple_asm.ni + gs->gimple_asm.no);
2708 }
2709
2710
2711 /* Set CLOBBER_OP to be clobber operand INDEX in GIMPLE_ASM GS.  */
2712
2713 static inline void
2714 gimple_asm_set_clobber_op (gimple gs, unsigned index, tree clobber_op)
2715 {
2716   GIMPLE_CHECK (gs, GIMPLE_ASM);
2717   gcc_assert (index <= gs->gimple_asm.nc);
2718   gcc_assert (TREE_CODE (clobber_op) == TREE_LIST);
2719   gimple_set_op (gs, index + gs->gimple_asm.ni + gs->gimple_asm.no, clobber_op);
2720 }
2721
2722 /* Return label operand INDEX of GIMPLE_ASM GS.  */
2723
2724 static inline tree
2725 gimple_asm_label_op (const_gimple gs, unsigned index)
2726 {
2727   GIMPLE_CHECK (gs, GIMPLE_ASM);
2728   gcc_assert (index <= gs->gimple_asm.nl);
2729   return gimple_op (gs, index + gs->gimple_asm.ni + gs->gimple_asm.nc);
2730 }
2731
2732 /* Set LABEL_OP to be label operand INDEX in GIMPLE_ASM GS.  */
2733
2734 static inline void
2735 gimple_asm_set_label_op (gimple gs, unsigned index, tree label_op)
2736 {
2737   GIMPLE_CHECK (gs, GIMPLE_ASM);
2738   gcc_assert (index <= gs->gimple_asm.nl);
2739   gcc_assert (TREE_CODE (label_op) == TREE_LIST);
2740   gimple_set_op (gs, index + gs->gimple_asm.ni + gs->gimple_asm.nc, label_op);
2741 }
2742
2743 /* Return the string representing the assembly instruction in
2744    GIMPLE_ASM GS.  */
2745
2746 static inline const char *
2747 gimple_asm_string (const_gimple gs)
2748 {
2749   GIMPLE_CHECK (gs, GIMPLE_ASM);
2750   return gs->gimple_asm.string;
2751 }
2752
2753
2754 /* Return true if GS is an asm statement marked volatile.  */
2755
2756 static inline bool
2757 gimple_asm_volatile_p (const_gimple gs)
2758 {
2759   GIMPLE_CHECK (gs, GIMPLE_ASM);
2760   return (gs->gsbase.subcode & GF_ASM_VOLATILE) != 0;
2761 }
2762
2763
2764 /* If VOLATLE_P is true, mark asm statement GS as volatile.  */
2765
2766 static inline void
2767 gimple_asm_set_volatile (gimple gs, bool volatile_p)
2768 {
2769   GIMPLE_CHECK (gs, GIMPLE_ASM);
2770   if (volatile_p)
2771     gs->gsbase.subcode |= GF_ASM_VOLATILE;
2772   else
2773     gs->gsbase.subcode &= ~GF_ASM_VOLATILE;
2774 }
2775
2776
2777 /* If INPUT_P is true, mark asm GS as an ASM_INPUT.  */
2778
2779 static inline void
2780 gimple_asm_set_input (gimple gs, bool input_p)
2781 {
2782   GIMPLE_CHECK (gs, GIMPLE_ASM);
2783   if (input_p)
2784     gs->gsbase.subcode |= GF_ASM_INPUT;
2785   else
2786     gs->gsbase.subcode &= ~GF_ASM_INPUT;
2787 }
2788
2789
2790 /* Return true if asm GS is an ASM_INPUT.  */
2791
2792 static inline bool
2793 gimple_asm_input_p (const_gimple gs)
2794 {
2795   GIMPLE_CHECK (gs, GIMPLE_ASM);
2796   return (gs->gsbase.subcode & GF_ASM_INPUT) != 0;
2797 }
2798
2799
2800 /* Return the types handled by GIMPLE_CATCH statement GS.  */
2801
2802 static inline tree
2803 gimple_catch_types (const_gimple gs)
2804 {
2805   GIMPLE_CHECK (gs, GIMPLE_CATCH);
2806   return gs->gimple_catch.types;
2807 }
2808
2809
2810 /* Return a pointer to the types handled by GIMPLE_CATCH statement GS.  */
2811
2812 static inline tree *
2813 gimple_catch_types_ptr (gimple gs)
2814 {
2815   GIMPLE_CHECK (gs, GIMPLE_CATCH);
2816   return &gs->gimple_catch.types;
2817 }
2818
2819
2820 /* Return the GIMPLE sequence representing the body of the handler of
2821    GIMPLE_CATCH statement GS.  */
2822
2823 static inline gimple_seq
2824 gimple_catch_handler (gimple gs)
2825 {
2826   GIMPLE_CHECK (gs, GIMPLE_CATCH);
2827   return gs->gimple_catch.handler;
2828 }
2829
2830
2831 /* Return a pointer to the GIMPLE sequence representing the body of
2832    the handler of GIMPLE_CATCH statement GS.  */
2833
2834 static inline gimple_seq *
2835 gimple_catch_handler_ptr (gimple gs)
2836 {
2837   GIMPLE_CHECK (gs, GIMPLE_CATCH);
2838   return &gs->gimple_catch.handler;
2839 }
2840
2841
2842 /* Set T to be the set of types handled by GIMPLE_CATCH GS.  */
2843
2844 static inline void
2845 gimple_catch_set_types (gimple gs, tree t)
2846 {
2847   GIMPLE_CHECK (gs, GIMPLE_CATCH);
2848   gs->gimple_catch.types = t;
2849 }
2850
2851
2852 /* Set HANDLER to be the body of GIMPLE_CATCH GS.  */
2853
2854 static inline void
2855 gimple_catch_set_handler (gimple gs, gimple_seq handler)
2856 {
2857   GIMPLE_CHECK (gs, GIMPLE_CATCH);
2858   gs->gimple_catch.handler = handler;
2859 }
2860
2861
2862 /* Return the types handled by GIMPLE_EH_FILTER statement GS.  */
2863
2864 static inline tree
2865 gimple_eh_filter_types (const_gimple gs)
2866 {
2867   GIMPLE_CHECK (gs, GIMPLE_EH_FILTER);
2868   return gs->gimple_eh_filter.types;
2869 }
2870
2871
2872 /* Return a pointer to the types handled by GIMPLE_EH_FILTER statement
2873    GS.  */
2874
2875 static inline tree *
2876 gimple_eh_filter_types_ptr (gimple gs)
2877 {
2878   GIMPLE_CHECK (gs, GIMPLE_EH_FILTER);
2879   return &gs->gimple_eh_filter.types;
2880 }
2881
2882
2883 /* Return the sequence of statement to execute when GIMPLE_EH_FILTER
2884    statement fails.  */
2885
2886 static inline gimple_seq
2887 gimple_eh_filter_failure (gimple gs)
2888 {
2889   GIMPLE_CHECK (gs, GIMPLE_EH_FILTER);
2890   return gs->gimple_eh_filter.failure;
2891 }
2892
2893
2894 /* Set TYPES to be the set of types handled by GIMPLE_EH_FILTER GS.  */
2895
2896 static inline void
2897 gimple_eh_filter_set_types (gimple gs, tree types)
2898 {
2899   GIMPLE_CHECK (gs, GIMPLE_EH_FILTER);
2900   gs->gimple_eh_filter.types = types;
2901 }
2902
2903
2904 /* Set FAILURE to be the sequence of statements to execute on failure
2905    for GIMPLE_EH_FILTER GS.  */
2906
2907 static inline void
2908 gimple_eh_filter_set_failure (gimple gs, gimple_seq failure)
2909 {
2910   GIMPLE_CHECK (gs, GIMPLE_EH_FILTER);
2911   gs->gimple_eh_filter.failure = failure;
2912 }
2913
2914 /* Get the function decl to be called by the MUST_NOT_THROW region.  */
2915
2916 static inline tree
2917 gimple_eh_must_not_throw_fndecl (gimple gs)
2918 {
2919   GIMPLE_CHECK (gs, GIMPLE_EH_MUST_NOT_THROW);
2920   return gs->gimple_eh_mnt.fndecl;
2921 }
2922
2923 /* Set the function decl to be called by GS to DECL.  */
2924
2925 static inline void
2926 gimple_eh_must_not_throw_set_fndecl (gimple gs, tree decl)
2927 {
2928   GIMPLE_CHECK (gs, GIMPLE_EH_MUST_NOT_THROW);
2929   gs->gimple_eh_mnt.fndecl = decl;
2930 }
2931
2932
2933 /* GIMPLE_TRY accessors. */
2934
2935 /* Return the kind of try block represented by GIMPLE_TRY GS.  This is
2936    either GIMPLE_TRY_CATCH or GIMPLE_TRY_FINALLY.  */
2937
2938 static inline enum gimple_try_flags
2939 gimple_try_kind (const_gimple gs)
2940 {
2941   GIMPLE_CHECK (gs, GIMPLE_TRY);
2942   return (enum gimple_try_flags) (gs->gsbase.subcode & GIMPLE_TRY_KIND);
2943 }
2944
2945
2946 /* Set the kind of try block represented by GIMPLE_TRY GS.  */
2947
2948 static inline void
2949 gimple_try_set_kind (gimple gs, enum gimple_try_flags kind)
2950 {
2951   GIMPLE_CHECK (gs, GIMPLE_TRY);
2952   gcc_assert (kind == GIMPLE_TRY_CATCH || kind == GIMPLE_TRY_FINALLY);
2953   if (gimple_try_kind (gs) != kind)
2954     gs->gsbase.subcode = (unsigned int) kind;
2955 }
2956
2957
2958 /* Return the GIMPLE_TRY_CATCH_IS_CLEANUP flag.  */
2959
2960 static inline bool
2961 gimple_try_catch_is_cleanup (const_gimple gs)
2962 {
2963   gcc_assert (gimple_try_kind (gs) == GIMPLE_TRY_CATCH);
2964   return (gs->gsbase.subcode & GIMPLE_TRY_CATCH_IS_CLEANUP) != 0;
2965 }
2966
2967
2968 /* Return the sequence of statements used as the body for GIMPLE_TRY GS.  */
2969
2970 static inline gimple_seq
2971 gimple_try_eval (gimple gs)
2972 {
2973   GIMPLE_CHECK (gs, GIMPLE_TRY);
2974   return gs->gimple_try.eval;
2975 }
2976
2977
2978 /* Return the sequence of statements used as the cleanup body for
2979    GIMPLE_TRY GS.  */
2980
2981 static inline gimple_seq
2982 gimple_try_cleanup (gimple gs)
2983 {
2984   GIMPLE_CHECK (gs, GIMPLE_TRY);
2985   return gs->gimple_try.cleanup;
2986 }
2987
2988
2989 /* Set the GIMPLE_TRY_CATCH_IS_CLEANUP flag.  */
2990
2991 static inline void
2992 gimple_try_set_catch_is_cleanup (gimple g, bool catch_is_cleanup)
2993 {
2994   gcc_assert (gimple_try_kind (g) == GIMPLE_TRY_CATCH);
2995   if (catch_is_cleanup)
2996     g->gsbase.subcode |= GIMPLE_TRY_CATCH_IS_CLEANUP;
2997   else
2998     g->gsbase.subcode &= ~GIMPLE_TRY_CATCH_IS_CLEANUP;
2999 }
3000
3001
3002 /* Set EVAL to be the sequence of statements to use as the body for
3003    GIMPLE_TRY GS.  */
3004
3005 static inline void
3006 gimple_try_set_eval (gimple gs, gimple_seq eval)
3007 {
3008   GIMPLE_CHECK (gs, GIMPLE_TRY);
3009   gs->gimple_try.eval = eval;
3010 }
3011
3012
3013 /* Set CLEANUP to be the sequence of statements to use as the cleanup
3014    body for GIMPLE_TRY GS.  */
3015
3016 static inline void
3017 gimple_try_set_cleanup (gimple gs, gimple_seq cleanup)
3018 {
3019   GIMPLE_CHECK (gs, GIMPLE_TRY);
3020   gs->gimple_try.cleanup = cleanup;
3021 }
3022
3023
3024 /* Return the cleanup sequence for cleanup statement GS.  */
3025
3026 static inline gimple_seq
3027 gimple_wce_cleanup (gimple gs)
3028 {
3029   GIMPLE_CHECK (gs, GIMPLE_WITH_CLEANUP_EXPR);
3030   return gs->gimple_wce.cleanup;
3031 }
3032
3033
3034 /* Set CLEANUP to be the cleanup sequence for GS.  */
3035
3036 static inline void
3037 gimple_wce_set_cleanup (gimple gs, gimple_seq cleanup)
3038 {
3039   GIMPLE_CHECK (gs, GIMPLE_WITH_CLEANUP_EXPR);
3040   gs->gimple_wce.cleanup = cleanup;
3041 }
3042
3043
3044 /* Return the CLEANUP_EH_ONLY flag for a WCE tuple.  */
3045
3046 static inline bool
3047 gimple_wce_cleanup_eh_only (const_gimple gs)
3048 {
3049   GIMPLE_CHECK (gs, GIMPLE_WITH_CLEANUP_EXPR);
3050   return gs->gsbase.subcode != 0;
3051 }
3052
3053
3054 /* Set the CLEANUP_EH_ONLY flag for a WCE tuple.  */
3055
3056 static inline void
3057 gimple_wce_set_cleanup_eh_only (gimple gs, bool eh_only_p)
3058 {
3059   GIMPLE_CHECK (gs, GIMPLE_WITH_CLEANUP_EXPR);
3060   gs->gsbase.subcode = (unsigned int) eh_only_p;
3061 }
3062
3063
3064 /* Return the maximum number of arguments supported by GIMPLE_PHI GS.  */
3065
3066 static inline unsigned
3067 gimple_phi_capacity (const_gimple gs)
3068 {
3069   GIMPLE_CHECK (gs, GIMPLE_PHI);
3070   return gs->gimple_phi.capacity;
3071 }
3072
3073
3074 /* Return the number of arguments in GIMPLE_PHI GS.  This must always
3075    be exactly the number of incoming edges for the basic block holding
3076    GS.  */
3077
3078 static inline unsigned
3079 gimple_phi_num_args (const_gimple gs)
3080 {
3081   GIMPLE_CHECK (gs, GIMPLE_PHI);
3082   return gs->gimple_phi.nargs;
3083 }
3084
3085
3086 /* Return the SSA name created by GIMPLE_PHI GS.  */
3087
3088 static inline tree
3089 gimple_phi_result (const_gimple gs)
3090 {
3091   GIMPLE_CHECK (gs, GIMPLE_PHI);
3092   return gs->gimple_phi.result;
3093 }
3094
3095 /* Return a pointer to the SSA name created by GIMPLE_PHI GS.  */
3096
3097 static inline tree *
3098 gimple_phi_result_ptr (gimple gs)
3099 {
3100   GIMPLE_CHECK (gs, GIMPLE_PHI);
3101   return &gs->gimple_phi.result;
3102 }
3103
3104 /* Set RESULT to be the SSA name created by GIMPLE_PHI GS.  */
3105
3106 static inline void
3107 gimple_phi_set_result (gimple gs, tree result)
3108 {
3109   GIMPLE_CHECK (gs, GIMPLE_PHI);
3110   gs->gimple_phi.result = result;
3111 }
3112
3113
3114 /* Return the PHI argument corresponding to incoming edge INDEX for
3115    GIMPLE_PHI GS.  */
3116
3117 static inline struct phi_arg_d *
3118 gimple_phi_arg (gimple gs, unsigned index)
3119 {
3120   GIMPLE_CHECK (gs, GIMPLE_PHI);
3121   gcc_assert (index <= gs->gimple_phi.capacity);
3122   return &(gs->gimple_phi.args[index]);
3123 }
3124
3125 /* Set PHIARG to be the argument corresponding to incoming edge INDEX
3126    for GIMPLE_PHI GS.  */
3127
3128 static inline void
3129 gimple_phi_set_arg (gimple gs, unsigned index, struct phi_arg_d * phiarg)
3130 {
3131   GIMPLE_CHECK (gs, GIMPLE_PHI);
3132   gcc_assert (index <= gs->gimple_phi.nargs);
3133   memcpy (gs->gimple_phi.args + index, phiarg, sizeof (struct phi_arg_d));
3134 }
3135
3136 /* Return the region number for GIMPLE_RESX GS.  */
3137
3138 static inline int
3139 gimple_resx_region (const_gimple gs)
3140 {
3141   GIMPLE_CHECK (gs, GIMPLE_RESX);
3142   return gs->gimple_eh_ctrl.region;
3143 }
3144
3145 /* Set REGION to be the region number for GIMPLE_RESX GS.  */
3146
3147 static inline void
3148 gimple_resx_set_region (gimple gs, int region)
3149 {
3150   GIMPLE_CHECK (gs, GIMPLE_RESX);
3151   gs->gimple_eh_ctrl.region = region;
3152 }
3153
3154 /* Return the region number for GIMPLE_EH_DISPATCH GS.  */
3155
3156 static inline int
3157 gimple_eh_dispatch_region (const_gimple gs)
3158 {
3159   GIMPLE_CHECK (gs, GIMPLE_EH_DISPATCH);
3160   return gs->gimple_eh_ctrl.region;
3161 }
3162
3163 /* Set REGION to be the region number for GIMPLE_EH_DISPATCH GS.  */
3164
3165 static inline void
3166 gimple_eh_dispatch_set_region (gimple gs, int region)
3167 {
3168   GIMPLE_CHECK (gs, GIMPLE_EH_DISPATCH);
3169   gs->gimple_eh_ctrl.region = region;
3170 }
3171
3172 /* Return the number of labels associated with the switch statement GS.  */
3173
3174 static inline unsigned
3175 gimple_switch_num_labels (const_gimple gs)
3176 {
3177   unsigned num_ops;
3178   GIMPLE_CHECK (gs, GIMPLE_SWITCH);
3179   num_ops = gimple_num_ops (gs);
3180   gcc_assert (num_ops > 1);
3181   return num_ops - 1;
3182 }
3183
3184
3185 /* Set NLABELS to be the number of labels for the switch statement GS.  */
3186
3187 static inline void
3188 gimple_switch_set_num_labels (gimple g, unsigned nlabels)
3189 {
3190   GIMPLE_CHECK (g, GIMPLE_SWITCH);
3191   gimple_set_num_ops (g, nlabels + 1);
3192 }
3193
3194
3195 /* Return the index variable used by the switch statement GS.  */
3196
3197 static inline tree
3198 gimple_switch_index (const_gimple gs)
3199 {
3200   GIMPLE_CHECK (gs, GIMPLE_SWITCH);
3201   return gimple_op (gs, 0);
3202 }
3203
3204
3205 /* Return a pointer to the index variable for the switch statement GS.  */
3206
3207 static inline tree *
3208 gimple_switch_index_ptr (const_gimple gs)
3209 {
3210   GIMPLE_CHECK (gs, GIMPLE_SWITCH);
3211   return gimple_op_ptr (gs, 0);
3212 }
3213
3214
3215 /* Set INDEX to be the index variable for switch statement GS.  */
3216
3217 static inline void
3218 gimple_switch_set_index (gimple gs, tree index)
3219 {
3220   GIMPLE_CHECK (gs, GIMPLE_SWITCH);
3221   gcc_assert (SSA_VAR_P (index) || CONSTANT_CLASS_P (index));
3222   gimple_set_op (gs, 0, index);
3223 }
3224
3225
3226 /* Return the label numbered INDEX.  The default label is 0, followed by any
3227    labels in a switch statement.  */
3228
3229 static inline tree
3230 gimple_switch_label (const_gimple gs, unsigned index)
3231 {
3232   GIMPLE_CHECK (gs, GIMPLE_SWITCH);
3233   gcc_assert (gimple_num_ops (gs) > index + 1);
3234   return gimple_op (gs, index + 1);
3235 }
3236
3237 /* Set the label number INDEX to LABEL.  0 is always the default label.  */
3238
3239 static inline void
3240 gimple_switch_set_label (gimple gs, unsigned index, tree label)
3241 {
3242   GIMPLE_CHECK (gs, GIMPLE_SWITCH);
3243   gcc_assert (gimple_num_ops (gs) > index + 1);
3244   gcc_assert (label == NULL_TREE || TREE_CODE (label) == CASE_LABEL_EXPR);
3245   gimple_set_op (gs, index + 1, label);
3246 }
3247
3248 /* Return the default label for a switch statement.  */
3249
3250 static inline tree
3251 gimple_switch_default_label (const_gimple gs)
3252 {
3253   return gimple_switch_label (gs, 0);
3254 }
3255
3256 /* Set the default label for a switch statement.  */
3257
3258 static inline void
3259 gimple_switch_set_default_label (gimple gs, tree label)
3260 {
3261   gimple_switch_set_label (gs, 0, label);
3262 }
3263
3264 /* Return true if GS is a GIMPLE_DEBUG statement.  */
3265
3266 static inline bool
3267 is_gimple_debug (const_gimple gs)
3268 {
3269   return gimple_code (gs) == GIMPLE_DEBUG;
3270 }
3271
3272 /* Return true if S is a GIMPLE_DEBUG BIND statement.  */
3273
3274 static inline bool
3275 gimple_debug_bind_p (const_gimple s)
3276 {
3277   if (is_gimple_debug (s))
3278     return s->gsbase.subcode == GIMPLE_DEBUG_BIND;
3279
3280   return false;
3281 }
3282
3283 /* Return the variable bound in a GIMPLE_DEBUG bind statement.  */
3284
3285 static inline tree
3286 gimple_debug_bind_get_var (gimple dbg)
3287 {
3288   GIMPLE_CHECK (dbg, GIMPLE_DEBUG);
3289   gcc_assert (gimple_debug_bind_p (dbg));
3290   return gimple_op (dbg, 0);
3291 }
3292
3293 /* Return the value bound to the variable in a GIMPLE_DEBUG bind
3294    statement.  */
3295
3296 static inline tree
3297 gimple_debug_bind_get_value (gimple dbg)
3298 {
3299   GIMPLE_CHECK (dbg, GIMPLE_DEBUG);
3300   gcc_assert (gimple_debug_bind_p (dbg));
3301   return gimple_op (dbg, 1);
3302 }
3303
3304 /* Return a pointer to the value bound to the variable in a
3305    GIMPLE_DEBUG bind statement.  */
3306
3307 static inline tree *
3308 gimple_debug_bind_get_value_ptr (gimple dbg)
3309 {
3310   GIMPLE_CHECK (dbg, GIMPLE_DEBUG);
3311   gcc_assert (gimple_debug_bind_p (dbg));
3312   return gimple_op_ptr (dbg, 1);
3313 }
3314
3315 /* Set the variable bound in a GIMPLE_DEBUG bind statement.  */
3316
3317 static inline void
3318 gimple_debug_bind_set_var (gimple dbg, tree var)
3319 {
3320   GIMPLE_CHECK (dbg, GIMPLE_DEBUG);
3321   gcc_assert (gimple_debug_bind_p (dbg));
3322   gimple_set_op (dbg, 0, var);
3323 }
3324
3325 /* Set the value bound to the variable in a GIMPLE_DEBUG bind
3326    statement.  */
3327
3328 static inline void
3329 gimple_debug_bind_set_value (gimple dbg, tree value)
3330 {
3331   GIMPLE_CHECK (dbg, GIMPLE_DEBUG);
3332   gcc_assert (gimple_debug_bind_p (dbg));
3333   gimple_set_op (dbg, 1, value);
3334 }
3335
3336 /* The second operand of a GIMPLE_DEBUG_BIND, when the value was
3337    optimized away.  */
3338 #define GIMPLE_DEBUG_BIND_NOVALUE NULL_TREE /* error_mark_node */
3339
3340 /* Remove the value bound to the variable in a GIMPLE_DEBUG bind
3341    statement.  */
3342
3343 static inline void
3344 gimple_debug_bind_reset_value (gimple dbg)
3345 {
3346   GIMPLE_CHECK (dbg, GIMPLE_DEBUG);
3347   gcc_assert (gimple_debug_bind_p (dbg));
3348   gimple_set_op (dbg, 1, GIMPLE_DEBUG_BIND_NOVALUE);
3349 }
3350
3351 /* Return true if the GIMPLE_DEBUG bind statement is bound to a
3352    value.  */
3353
3354 static inline bool
3355 gimple_debug_bind_has_value_p (gimple dbg)
3356 {
3357   GIMPLE_CHECK (dbg, GIMPLE_DEBUG);
3358   gcc_assert (gimple_debug_bind_p (dbg));
3359   return gimple_op (dbg, 1) != GIMPLE_DEBUG_BIND_NOVALUE;
3360 }
3361
3362 #undef GIMPLE_DEBUG_BIND_NOVALUE
3363
3364 /* Return the body for the OMP statement GS.  */
3365
3366 static inline gimple_seq 
3367 gimple_omp_body (gimple gs)
3368 {
3369   return gs->omp.body;
3370 }
3371
3372 /* Set BODY to be the body for the OMP statement GS.  */
3373
3374 static inline void
3375 gimple_omp_set_body (gimple gs, gimple_seq body)
3376 {
3377   gs->omp.body = body;
3378 }
3379
3380
3381 /* Return the name associated with OMP_CRITICAL statement GS.  */
3382
3383 static inline tree
3384 gimple_omp_critical_name (const_gimple gs)
3385 {
3386   GIMPLE_CHECK (gs, GIMPLE_OMP_CRITICAL);
3387   return gs->gimple_omp_critical.name;
3388 }
3389
3390
3391 /* Return a pointer to the name associated with OMP critical statement GS.  */
3392
3393 static inline tree *
3394 gimple_omp_critical_name_ptr (gimple gs)
3395 {
3396   GIMPLE_CHECK (gs, GIMPLE_OMP_CRITICAL);
3397   return &gs->gimple_omp_critical.name;
3398 }
3399
3400
3401 /* Set NAME to be the name associated with OMP critical statement GS.  */
3402
3403 static inline void
3404 gimple_omp_critical_set_name (gimple gs, tree name)
3405 {
3406   GIMPLE_CHECK (gs, GIMPLE_OMP_CRITICAL);
3407   gs->gimple_omp_critical.name = name;
3408 }
3409
3410
3411 /* Return the clauses associated with OMP_FOR GS.  */
3412
3413 static inline tree
3414 gimple_omp_for_clauses (const_gimple gs)
3415 {
3416   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3417   return gs->gimple_omp_for.clauses;
3418 }
3419
3420
3421 /* Return a pointer to the OMP_FOR GS.  */
3422
3423 static inline tree *
3424 gimple_omp_for_clauses_ptr (gimple gs)
3425 {
3426   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3427   return &gs->gimple_omp_for.clauses;
3428 }
3429
3430
3431 /* Set CLAUSES to be the list of clauses associated with OMP_FOR GS.  */
3432
3433 static inline void
3434 gimple_omp_for_set_clauses (gimple gs, tree clauses)
3435 {
3436   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3437   gs->gimple_omp_for.clauses = clauses;
3438 }
3439
3440
3441 /* Get the collapse count of OMP_FOR GS.  */
3442
3443 static inline size_t
3444 gimple_omp_for_collapse (gimple gs)
3445 {
3446   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3447   return gs->gimple_omp_for.collapse;
3448 }
3449
3450
3451 /* Return the index variable for OMP_FOR GS.  */
3452
3453 static inline tree
3454 gimple_omp_for_index (const_gimple gs, size_t i)
3455 {
3456   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3457   gcc_assert (i < gs->gimple_omp_for.collapse);
3458   return gs->gimple_omp_for.iter[i].index;
3459 }
3460
3461
3462 /* Return a pointer to the index variable for OMP_FOR GS.  */
3463
3464 static inline tree *
3465 gimple_omp_for_index_ptr (gimple gs, size_t i)
3466 {
3467   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3468   gcc_assert (i < gs->gimple_omp_for.collapse);
3469   return &gs->gimple_omp_for.iter[i].index;
3470 }
3471
3472
3473 /* Set INDEX to be the index variable for OMP_FOR GS.  */
3474
3475 static inline void
3476 gimple_omp_for_set_index (gimple gs, size_t i, tree index)
3477 {
3478   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3479   gcc_assert (i < gs->gimple_omp_for.collapse);
3480   gs->gimple_omp_for.iter[i].index = index;
3481 }
3482
3483
3484 /* Return the initial value for OMP_FOR GS.  */
3485
3486 static inline tree
3487 gimple_omp_for_initial (const_gimple gs, size_t i)
3488 {
3489   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3490   gcc_assert (i < gs->gimple_omp_for.collapse);
3491   return gs->gimple_omp_for.iter[i].initial;
3492 }
3493
3494
3495 /* Return a pointer to the initial value for OMP_FOR GS.  */
3496
3497 static inline tree *
3498 gimple_omp_for_initial_ptr (gimple gs, size_t i)
3499 {
3500   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3501   gcc_assert (i < gs->gimple_omp_for.collapse);
3502   return &gs->gimple_omp_for.iter[i].initial;
3503 }
3504
3505
3506 /* Set INITIAL to be the initial value for OMP_FOR GS.  */
3507
3508 static inline void
3509 gimple_omp_for_set_initial (gimple gs, size_t i, tree initial)
3510 {
3511   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3512   gcc_assert (i < gs->gimple_omp_for.collapse);
3513   gs->gimple_omp_for.iter[i].initial = initial;
3514 }
3515
3516
3517 /* Return the final value for OMP_FOR GS.  */
3518
3519 static inline tree
3520 gimple_omp_for_final (const_gimple gs, size_t i)
3521 {
3522   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3523   gcc_assert (i < gs->gimple_omp_for.collapse);
3524   return gs->gimple_omp_for.iter[i].final;
3525 }
3526
3527
3528 /* Return a pointer to the final value for OMP_FOR GS.  */
3529
3530 static inline tree *
3531 gimple_omp_for_final_ptr (gimple gs, size_t i)
3532 {
3533   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3534   gcc_assert (i < gs->gimple_omp_for.collapse);
3535   return &gs->gimple_omp_for.iter[i].final;
3536 }
3537
3538
3539 /* Set FINAL to be the final value for OMP_FOR GS.  */
3540
3541 static inline void
3542 gimple_omp_for_set_final (gimple gs, size_t i, tree final)
3543 {
3544   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3545   gcc_assert (i < gs->gimple_omp_for.collapse);
3546   gs->gimple_omp_for.iter[i].final = final;
3547 }
3548
3549
3550 /* Return the increment value for OMP_FOR GS.  */
3551
3552 static inline tree
3553 gimple_omp_for_incr (const_gimple gs, size_t i)
3554 {
3555   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3556   gcc_assert (i < gs->gimple_omp_for.collapse);
3557   return gs->gimple_omp_for.iter[i].incr;
3558 }
3559
3560
3561 /* Return a pointer to the increment value for OMP_FOR GS.  */
3562
3563 static inline tree *
3564 gimple_omp_for_incr_ptr (gimple gs, size_t i)
3565 {
3566   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3567   gcc_assert (i < gs->gimple_omp_for.collapse);
3568   return &gs->gimple_omp_for.iter[i].incr;
3569 }
3570
3571
3572 /* Set INCR to be the increment value for OMP_FOR GS.  */
3573
3574 static inline void
3575 gimple_omp_for_set_incr (gimple gs, size_t i, tree incr)
3576 {
3577   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3578   gcc_assert (i < gs->gimple_omp_for.collapse);
3579   gs->gimple_omp_for.iter[i].incr = incr;
3580 }
3581
3582
3583 /* Return the sequence of statements to execute before the OMP_FOR
3584    statement GS starts.  */
3585
3586 static inline gimple_seq
3587 gimple_omp_for_pre_body (gimple gs)
3588 {
3589   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3590   return gs->gimple_omp_for.pre_body;
3591 }
3592
3593
3594 /* Set PRE_BODY to be the sequence of statements to execute before the
3595    OMP_FOR statement GS starts.  */
3596
3597 static inline void
3598 gimple_omp_for_set_pre_body (gimple gs, gimple_seq pre_body)
3599 {
3600   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
3601   gs->gimple_omp_for.pre_body = pre_body;
3602 }
3603
3604
3605 /* Return the clauses associated with OMP_PARALLEL GS.  */
3606
3607 static inline tree
3608 gimple_omp_parallel_clauses (const_gimple gs)
3609 {
3610   GIMPLE_CHECK (gs, GIMPLE_OMP_PARALLEL);
3611   return gs->gimple_omp_parallel.clauses;
3612 }
3613
3614
3615 /* Return a pointer to the clauses associated with OMP_PARALLEL GS.  */
3616
3617 static inline tree *
3618 gimple_omp_parallel_clauses_ptr (gimple gs)
3619 {
3620   GIMPLE_CHECK (gs, GIMPLE_OMP_PARALLEL);
3621   return &gs->gimple_omp_parallel.clauses;
3622 }
3623
3624
3625 /* Set CLAUSES to be the list of clauses associated with OMP_PARALLEL
3626    GS.  */
3627
3628 static inline void
3629 gimple_omp_parallel_set_clauses (gimple gs, tree clauses)
3630 {
3631   GIMPLE_CHECK (gs, GIMPLE_OMP_PARALLEL);
3632   gs->gimple_omp_parallel.clauses = clauses;
3633 }
3634
3635
3636 /* Return the child function used to hold the body of OMP_PARALLEL GS.  */
3637
3638 static inline tree
3639 gimple_omp_parallel_child_fn (const_gimple gs)
3640 {
3641   GIMPLE_CHECK (gs, GIMPLE_OMP_PARALLEL);
3642   return gs->gimple_omp_parallel.child_fn;
3643 }
3644
3645 /* Return a pointer to the child function used to hold the body of
3646    OMP_PARALLEL GS.  */
3647
3648 static inline tree *
3649 gimple_omp_parallel_child_fn_ptr (gimple gs)
3650 {
3651   GIMPLE_CHECK (gs, GIMPLE_OMP_PARALLEL);
3652   return &gs->gimple_omp_parallel.child_fn;
3653 }
3654
3655
3656 /* Set CHILD_FN to be the child function for OMP_PARALLEL GS.  */
3657
3658 static inline void
3659 gimple_omp_parallel_set_child_fn (gimple gs, tree child_fn)
3660 {
3661   GIMPLE_CHECK (gs, GIMPLE_OMP_PARALLEL);
3662   gs->gimple_omp_parallel.child_fn = child_fn;
3663 }
3664
3665
3666 /* Return the artificial argument used to send variables and values
3667    from the parent to the children threads in OMP_PARALLEL GS.  */
3668
3669 static inline tree
3670 gimple_omp_parallel_data_arg (const_gimple gs)
3671 {
3672   GIMPLE_CHECK (gs, GIMPLE_OMP_PARALLEL);
3673   return gs->gimple_omp_parallel.data_arg;
3674 }
3675
3676
3677 /* Return a pointer to the data argument for OMP_PARALLEL GS.  */
3678
3679 static inline tree *
3680 gimple_omp_parallel_data_arg_ptr (gimple gs)
3681 {
3682   GIMPLE_CHECK (gs, GIMPLE_OMP_PARALLEL);
3683   return &gs->gimple_omp_parallel.data_arg;
3684 }
3685
3686
3687 /* Set DATA_ARG to be the data argument for OMP_PARALLEL GS.  */
3688
3689 static inline void
3690 gimple_omp_parallel_set_data_arg (gimple gs, tree data_arg)
3691 {
3692   GIMPLE_CHECK (gs, GIMPLE_OMP_PARALLEL);
3693   gs->gimple_omp_parallel.data_arg = data_arg;
3694 }
3695
3696
3697 /* Return the clauses associated with OMP_TASK GS.  */
3698
3699 static inline tree
3700 gimple_omp_task_clauses (const_gimple gs)
3701 {
3702   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3703   return gs->gimple_omp_parallel.clauses;
3704 }
3705
3706
3707 /* Return a pointer to the clauses associated with OMP_TASK GS.  */
3708
3709 static inline tree *
3710 gimple_omp_task_clauses_ptr (gimple gs)
3711 {
3712   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3713   return &gs->gimple_omp_parallel.clauses;
3714 }
3715
3716
3717 /* Set CLAUSES to be the list of clauses associated with OMP_TASK
3718    GS.  */
3719
3720 static inline void
3721 gimple_omp_task_set_clauses (gimple gs, tree clauses)
3722 {
3723   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3724   gs->gimple_omp_parallel.clauses = clauses;
3725 }
3726
3727
3728 /* Return the child function used to hold the body of OMP_TASK GS.  */
3729
3730 static inline tree
3731 gimple_omp_task_child_fn (const_gimple gs)
3732 {
3733   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3734   return gs->gimple_omp_parallel.child_fn;
3735 }
3736
3737 /* Return a pointer to the child function used to hold the body of
3738    OMP_TASK GS.  */
3739
3740 static inline tree *
3741 gimple_omp_task_child_fn_ptr (gimple gs)
3742 {
3743   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3744   return &gs->gimple_omp_parallel.child_fn;
3745 }
3746
3747
3748 /* Set CHILD_FN to be the child function for OMP_TASK GS.  */
3749
3750 static inline void
3751 gimple_omp_task_set_child_fn (gimple gs, tree child_fn)
3752 {
3753   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3754   gs->gimple_omp_parallel.child_fn = child_fn;
3755 }
3756
3757
3758 /* Return the artificial argument used to send variables and values
3759    from the parent to the children threads in OMP_TASK GS.  */
3760
3761 static inline tree
3762 gimple_omp_task_data_arg (const_gimple gs)
3763 {
3764   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3765   return gs->gimple_omp_parallel.data_arg;
3766 }
3767
3768
3769 /* Return a pointer to the data argument for OMP_TASK GS.  */
3770
3771 static inline tree *
3772 gimple_omp_task_data_arg_ptr (gimple gs)
3773 {
3774   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3775   return &gs->gimple_omp_parallel.data_arg;
3776 }
3777
3778
3779 /* Set DATA_ARG to be the data argument for OMP_TASK GS.  */
3780
3781 static inline void
3782 gimple_omp_task_set_data_arg (gimple gs, tree data_arg)
3783 {
3784   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3785   gs->gimple_omp_parallel.data_arg = data_arg;
3786 }
3787
3788
3789 /* Return the clauses associated with OMP_TASK GS.  */
3790
3791 static inline tree
3792 gimple_omp_taskreg_clauses (const_gimple gs)
3793 {
3794   if (gimple_code (gs) != GIMPLE_OMP_PARALLEL)
3795     GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3796   return gs->gimple_omp_parallel.clauses;
3797 }
3798
3799
3800 /* Return a pointer to the clauses associated with OMP_TASK GS.  */
3801
3802 static inline tree *
3803 gimple_omp_taskreg_clauses_ptr (gimple gs)
3804 {
3805   if (gimple_code (gs) != GIMPLE_OMP_PARALLEL)
3806     GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3807   return &gs->gimple_omp_parallel.clauses;
3808 }
3809
3810
3811 /* Set CLAUSES to be the list of clauses associated with OMP_TASK
3812    GS.  */
3813
3814 static inline void
3815 gimple_omp_taskreg_set_clauses (gimple gs, tree clauses)
3816 {
3817   if (gimple_code (gs) != GIMPLE_OMP_PARALLEL)
3818     GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3819   gs->gimple_omp_parallel.clauses = clauses;
3820 }
3821
3822
3823 /* Return the child function used to hold the body of OMP_TASK GS.  */
3824
3825 static inline tree
3826 gimple_omp_taskreg_child_fn (const_gimple gs)
3827 {
3828   if (gimple_code (gs) != GIMPLE_OMP_PARALLEL)
3829     GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3830   return gs->gimple_omp_parallel.child_fn;
3831 }
3832
3833 /* Return a pointer to the child function used to hold the body of
3834    OMP_TASK GS.  */
3835
3836 static inline tree *
3837 gimple_omp_taskreg_child_fn_ptr (gimple gs)
3838 {
3839   if (gimple_code (gs) != GIMPLE_OMP_PARALLEL)
3840     GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3841   return &gs->gimple_omp_parallel.child_fn;
3842 }
3843
3844
3845 /* Set CHILD_FN to be the child function for OMP_TASK GS.  */
3846
3847 static inline void
3848 gimple_omp_taskreg_set_child_fn (gimple gs, tree child_fn)
3849 {
3850   if (gimple_code (gs) != GIMPLE_OMP_PARALLEL)
3851     GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3852   gs->gimple_omp_parallel.child_fn = child_fn;
3853 }
3854
3855
3856 /* Return the artificial argument used to send variables and values
3857    from the parent to the children threads in OMP_TASK GS.  */
3858
3859 static inline tree
3860 gimple_omp_taskreg_data_arg (const_gimple gs)
3861 {
3862   if (gimple_code (gs) != GIMPLE_OMP_PARALLEL)
3863     GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3864   return gs->gimple_omp_parallel.data_arg;
3865 }
3866
3867
3868 /* Return a pointer to the data argument for OMP_TASK GS.  */
3869
3870 static inline tree *
3871 gimple_omp_taskreg_data_arg_ptr (gimple gs)
3872 {
3873   if (gimple_code (gs) != GIMPLE_OMP_PARALLEL)
3874     GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3875   return &gs->gimple_omp_parallel.data_arg;
3876 }
3877
3878
3879 /* Set DATA_ARG to be the data argument for OMP_TASK GS.  */
3880
3881 static inline void
3882 gimple_omp_taskreg_set_data_arg (gimple gs, tree data_arg)
3883 {
3884   if (gimple_code (gs) != GIMPLE_OMP_PARALLEL)
3885     GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3886   gs->gimple_omp_parallel.data_arg = data_arg;
3887 }
3888
3889
3890 /* Return the copy function used to hold the body of OMP_TASK GS.  */
3891
3892 static inline tree
3893 gimple_omp_task_copy_fn (const_gimple gs)
3894 {
3895   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3896   return gs->gimple_omp_task.copy_fn;
3897 }
3898
3899 /* Return a pointer to the copy function used to hold the body of
3900    OMP_TASK GS.  */
3901
3902 static inline tree *
3903 gimple_omp_task_copy_fn_ptr (gimple gs)
3904 {
3905   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3906   return &gs->gimple_omp_task.copy_fn;
3907 }
3908
3909
3910 /* Set CHILD_FN to be the copy function for OMP_TASK GS.  */
3911
3912 static inline void
3913 gimple_omp_task_set_copy_fn (gimple gs, tree copy_fn)
3914 {
3915   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3916   gs->gimple_omp_task.copy_fn = copy_fn;
3917 }
3918
3919
3920 /* Return size of the data block in bytes in OMP_TASK GS.  */
3921
3922 static inline tree
3923 gimple_omp_task_arg_size (const_gimple gs)
3924 {
3925   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3926   return gs->gimple_omp_task.arg_size;
3927 }
3928
3929
3930 /* Return a pointer to the data block size for OMP_TASK GS.  */
3931
3932 static inline tree *
3933 gimple_omp_task_arg_size_ptr (gimple gs)
3934 {
3935   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3936   return &gs->gimple_omp_task.arg_size;
3937 }
3938
3939
3940 /* Set ARG_SIZE to be the data block size for OMP_TASK GS.  */
3941
3942 static inline void
3943 gimple_omp_task_set_arg_size (gimple gs, tree arg_size)
3944 {
3945   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3946   gs->gimple_omp_task.arg_size = arg_size;
3947 }
3948
3949
3950 /* Return align of the data block in bytes in OMP_TASK GS.  */
3951
3952 static inline tree
3953 gimple_omp_task_arg_align (const_gimple gs)
3954 {
3955   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3956   return gs->gimple_omp_task.arg_align;
3957 }
3958
3959
3960 /* Return a pointer to the data block align for OMP_TASK GS.  */
3961
3962 static inline tree *
3963 gimple_omp_task_arg_align_ptr (gimple gs)
3964 {
3965   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3966   return &gs->gimple_omp_task.arg_align;
3967 }
3968
3969
3970 /* Set ARG_SIZE to be the data block align for OMP_TASK GS.  */
3971
3972 static inline void
3973 gimple_omp_task_set_arg_align (gimple gs, tree arg_align)
3974 {
3975   GIMPLE_CHECK (gs, GIMPLE_OMP_TASK);
3976   gs->gimple_omp_task.arg_align = arg_align;
3977 }
3978
3979
3980 /* Return the clauses associated with OMP_SINGLE GS.  */
3981
3982 static inline tree
3983 gimple_omp_single_clauses (const_gimple gs)
3984 {
3985   GIMPLE_CHECK (gs, GIMPLE_OMP_SINGLE);
3986   return gs->gimple_omp_single.clauses;
3987 }
3988
3989
3990 /* Return a pointer to the clauses associated with OMP_SINGLE GS.  */
3991
3992 static inline tree *
3993 gimple_omp_single_clauses_ptr (gimple gs)
3994 {
3995   GIMPLE_CHECK (gs, GIMPLE_OMP_SINGLE);
3996   return &gs->gimple_omp_single.clauses;
3997 }
3998
3999
4000 /* Set CLAUSES to be the clauses associated with OMP_SINGLE GS.  */
4001
4002 static inline void
4003 gimple_omp_single_set_clauses (gimple gs, tree clauses)
4004 {
4005   GIMPLE_CHECK (gs, GIMPLE_OMP_SINGLE);
4006   gs->gimple_omp_single.clauses = clauses;
4007 }
4008
4009
4010 /* Return the clauses associated with OMP_SECTIONS GS.  */
4011
4012 static inline tree
4013 gimple_omp_sections_clauses (const_gimple gs)
4014 {
4015   GIMPLE_CHECK (gs, GIMPLE_OMP_SECTIONS);
4016   return gs->gimple_omp_sections.clauses;
4017 }
4018
4019
4020 /* Return a pointer to the clauses associated with OMP_SECTIONS GS.  */
4021
4022 static inline tree *
4023 gimple_omp_sections_clauses_ptr (gimple gs)
4024 {
4025   GIMPLE_CHECK (gs, GIMPLE_OMP_SECTIONS);
4026   return &gs->gimple_omp_sections.clauses;
4027 }
4028
4029
4030 /* Set CLAUSES to be the set of clauses associated with OMP_SECTIONS
4031    GS.  */
4032
4033 static inline void
4034 gimple_omp_sections_set_clauses (gimple gs, tree clauses)
4035 {
4036   GIMPLE_CHECK (gs, GIMPLE_OMP_SECTIONS);
4037   gs->gimple_omp_sections.clauses = clauses;
4038 }
4039
4040
4041 /* Return the control variable associated with the GIMPLE_OMP_SECTIONS
4042    in GS.  */
4043
4044 static inline tree
4045 gimple_omp_sections_control (const_gimple gs)
4046 {
4047   GIMPLE_CHECK (gs, GIMPLE_OMP_SECTIONS);
4048   return gs->gimple_omp_sections.control;
4049 }
4050
4051
4052 /* Return a pointer to the clauses associated with the GIMPLE_OMP_SECTIONS
4053    GS.  */
4054
4055 static inline tree *
4056 gimple_omp_sections_control_ptr (gimple gs)
4057 {
4058   GIMPLE_CHECK (gs, GIMPLE_OMP_SECTIONS);
4059   return &gs->gimple_omp_sections.control;
4060 }
4061
4062
4063 /* Set CONTROL to be the set of clauses associated with the
4064    GIMPLE_OMP_SECTIONS in GS.  */
4065
4066 static inline void
4067 gimple_omp_sections_set_control (gimple gs, tree control)
4068 {
4069   GIMPLE_CHECK (gs, GIMPLE_OMP_SECTIONS);
4070   gs->gimple_omp_sections.control = control;
4071 }
4072
4073
4074 /* Set COND to be the condition code for OMP_FOR GS.  */
4075
4076 static inline void
4077 gimple_omp_for_set_cond (gimple gs, size_t i, enum tree_code cond)
4078 {
4079   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
4080   gcc_assert (TREE_CODE_CLASS (cond) == tcc_comparison);
4081   gcc_assert (i < gs->gimple_omp_for.collapse);
4082   gs->gimple_omp_for.iter[i].cond = cond;
4083 }
4084
4085
4086 /* Return the condition code associated with OMP_FOR GS.  */
4087
4088 static inline enum tree_code
4089 gimple_omp_for_cond (const_gimple gs, size_t i)
4090 {
4091   GIMPLE_CHECK (gs, GIMPLE_OMP_FOR);
4092   gcc_assert (i < gs->gimple_omp_for.collapse);
4093   return gs->gimple_omp_for.iter[i].cond;
4094 }
4095
4096
4097 /* Set the value being stored in an atomic store.  */
4098
4099 static inline void
4100 gimple_omp_atomic_store_set_val (gimple g, tree val)
4101 {
4102   GIMPLE_CHECK (g, GIMPLE_OMP_ATOMIC_STORE);
4103   g->gimple_omp_atomic_store.val = val;
4104 }
4105
4106
4107 /* Return the value being stored in an atomic store.  */
4108
4109 static inline tree
4110 gimple_omp_atomic_store_val (const_gimple g)
4111 {
4112   GIMPLE_CHECK (g, GIMPLE_OMP_ATOMIC_STORE);
4113   return g->gimple_omp_atomic_store.val;
4114 }
4115
4116
4117 /* Return a pointer to the value being stored in an atomic store.  */
4118
4119 static inline tree *
4120 gimple_omp_atomic_store_val_ptr (gimple g)
4121 {
4122   GIMPLE_CHECK (g, GIMPLE_OMP_ATOMIC_STORE);
4123   return &g->gimple_omp_atomic_store.val;
4124 }
4125
4126
4127 /* Set the LHS of an atomic load.  */
4128
4129 static inline void
4130 gimple_omp_atomic_load_set_lhs (gimple g, tree lhs)
4131 {
4132   GIMPLE_CHECK (g, GIMPLE_OMP_ATOMIC_LOAD);
4133   g->gimple_omp_atomic_load.lhs = lhs;
4134 }
4135
4136
4137 /* Get the LHS of an atomic load.  */
4138
4139 static inline tree
4140 gimple_omp_atomic_load_lhs (const_gimple g)
4141 {
4142   GIMPLE_CHECK (g, GIMPLE_OMP_ATOMIC_LOAD);
4143   return g->gimple_omp_atomic_load.lhs;
4144 }
4145
4146
4147 /* Return a pointer to the LHS of an atomic load.  */
4148
4149 static inline tree *
4150 gimple_omp_atomic_load_lhs_ptr (gimple g)
4151 {
4152   GIMPLE_CHECK (g, GIMPLE_OMP_ATOMIC_LOAD);
4153   return &g->gimple_omp_atomic_load.lhs;
4154 }
4155
4156
4157 /* Set the RHS of an atomic load.  */
4158
4159 static inline void
4160 gimple_omp_atomic_load_set_rhs (gimple g, tree rhs)
4161 {
4162   GIMPLE_CHECK (g, GIMPLE_OMP_ATOMIC_LOAD);
4163   g->gimple_omp_atomic_load.rhs = rhs;
4164 }
4165
4166
4167 /* Get the RHS of an atomic load.  */
4168
4169 static inline tree
4170 gimple_omp_atomic_load_rhs (const_gimple g)
4171 {
4172   GIMPLE_CHECK (g, GIMPLE_OMP_ATOMIC_LOAD);
4173   return g->gimple_omp_atomic_load.rhs;
4174 }
4175
4176
4177 /* Return a pointer to the RHS of an atomic load.  */
4178
4179 static inline tree *
4180 gimple_omp_atomic_load_rhs_ptr (gimple g)
4181 {
4182   GIMPLE_CHECK (g, GIMPLE_OMP_ATOMIC_LOAD);
4183   return &g->gimple_omp_atomic_load.rhs;
4184 }
4185
4186
4187 /* Get the definition of the control variable in a GIMPLE_OMP_CONTINUE.  */
4188
4189 static inline tree
4190 gimple_omp_continue_control_def (const_gimple g)
4191 {
4192   GIMPLE_CHECK (g, GIMPLE_OMP_CONTINUE);
4193   return g->gimple_omp_continue.control_def;
4194 }
4195
4196 /* The same as above, but return the address.  */
4197
4198 static inline tree *
4199 gimple_omp_continue_control_def_ptr (gimple g)
4200 {
4201   GIMPLE_CHECK (g, GIMPLE_OMP_CONTINUE);
4202   return &g->gimple_omp_continue.control_def;
4203 }
4204
4205 /* Set the definition of the control variable in a GIMPLE_OMP_CONTINUE.  */
4206
4207 static inline void
4208 gimple_omp_continue_set_control_def (gimple g, tree def)
4209 {
4210   GIMPLE_CHECK (g, GIMPLE_OMP_CONTINUE);
4211   g->gimple_omp_continue.control_def = def;
4212 }
4213
4214
4215 /* Get the use of the control variable in a GIMPLE_OMP_CONTINUE.  */
4216
4217 static inline tree
4218 gimple_omp_continue_control_use (const_gimple g)
4219 {
4220   GIMPLE_CHECK (g, GIMPLE_OMP_CONTINUE);
4221   return g->gimple_omp_continue.control_use;
4222 }
4223
4224
4225 /* The same as above, but return the address.  */
4226
4227 static inline tree *
4228 gimple_omp_continue_control_use_ptr (gimple g)
4229 {
4230   GIMPLE_CHECK (g, GIMPLE_OMP_CONTINUE);
4231   return &g->gimple_omp_continue.control_use;
4232 }
4233
4234
4235 /* Set the use of the control variable in a GIMPLE_OMP_CONTINUE.  */
4236
4237 static inline void
4238 gimple_omp_continue_set_control_use (gimple g, tree use)
4239 {
4240   GIMPLE_CHECK (g, GIMPLE_OMP_CONTINUE);
4241   g->gimple_omp_continue.control_use = use;
4242 }
4243
4244
4245 /* Return a pointer to the return value for GIMPLE_RETURN GS.  */
4246
4247 static inline tree *
4248 gimple_return_retval_ptr (const_gimple gs)
4249 {
4250   GIMPLE_CHECK (gs, GIMPLE_RETURN);
4251   gcc_assert (gimple_num_ops (gs) == 1);
4252   return gimple_op_ptr (gs, 0);
4253 }
4254
4255 /* Return the return value for GIMPLE_RETURN GS.  */
4256
4257 static inline tree
4258 gimple_return_retval (const_gimple gs)
4259 {
4260   GIMPLE_CHECK (gs, GIMPLE_RETURN);
4261   gcc_assert (gimple_num_ops (gs) == 1);
4262   return gimple_op (gs, 0);
4263 }
4264
4265
4266 /* Set RETVAL to be the return value for GIMPLE_RETURN GS.  */
4267
4268 static inline void
4269 gimple_return_set_retval (gimple gs, tree retval)
4270 {
4271   GIMPLE_CHECK (gs, GIMPLE_RETURN);
4272   gcc_assert (gimple_num_ops (gs) == 1);
4273   gcc_assert (retval == NULL_TREE
4274               || TREE_CODE (retval) == RESULT_DECL
4275               || is_gimple_val (retval));
4276   gimple_set_op (gs, 0, retval);
4277 }
4278
4279
4280 /* Returns true when the gimple statment STMT is any of the OpenMP types.  */
4281
4282 #define CASE_GIMPLE_OMP                         \
4283     case GIMPLE_OMP_PARALLEL:                   \
4284     case GIMPLE_OMP_TASK:                       \
4285     case GIMPLE_OMP_FOR:                        \
4286     case GIMPLE_OMP_SECTIONS:                   \
4287     case GIMPLE_OMP_SECTIONS_SWITCH:            \
4288     case GIMPLE_OMP_SINGLE:                     \
4289     case GIMPLE_OMP_SECTION:                    \
4290     case GIMPLE_OMP_MASTER:                     \
4291     case GIMPLE_OMP_ORDERED:                    \
4292     case GIMPLE_OMP_CRITICAL:                   \
4293     case GIMPLE_OMP_RETURN:                     \
4294     case GIMPLE_OMP_ATOMIC_LOAD:                \
4295     case GIMPLE_OMP_ATOMIC_STORE:               \
4296     case GIMPLE_OMP_CONTINUE
4297
4298 static inline bool
4299 is_gimple_omp (const_gimple stmt)
4300 {
4301   switch (gimple_code (stmt))
4302     {
4303     CASE_GIMPLE_OMP:
4304       return true;
4305     default:
4306       return false;
4307     }
4308 }
4309
4310
4311 /* Returns TRUE if statement G is a GIMPLE_NOP.  */
4312
4313 static inline bool
4314 gimple_nop_p (const_gimple g)
4315 {
4316   return gimple_code (g) == GIMPLE_NOP;
4317 }
4318
4319
4320 /* Return true if GS is a GIMPLE_RESX.  */
4321
4322 static inline bool
4323 is_gimple_resx (const_gimple gs)
4324 {
4325   return gimple_code (gs) == GIMPLE_RESX;
4326 }
4327
4328 /* Return the predictor of GIMPLE_PREDICT statement GS.  */
4329
4330 static inline enum br_predictor
4331 gimple_predict_predictor (gimple gs)
4332 {
4333   GIMPLE_CHECK (gs, GIMPLE_PREDICT);
4334   return (enum br_predictor) (gs->gsbase.subcode & ~GF_PREDICT_TAKEN);
4335 }
4336
4337
4338 /* Set the predictor of GIMPLE_PREDICT statement GS to PREDICT.  */
4339
4340 static inline void
4341 gimple_predict_set_predictor (gimple gs, enum br_predictor predictor)
4342 {
4343   GIMPLE_CHECK (gs, GIMPLE_PREDICT);
4344   gs->gsbase.subcode = (gs->gsbase.subcode & GF_PREDICT_TAKEN)
4345                        | (unsigned) predictor;
4346 }
4347
4348
4349 /* Return the outcome of GIMPLE_PREDICT statement GS.  */
4350
4351 static inline enum prediction
4352 gimple_predict_outcome (gimple gs)
4353 {
4354   GIMPLE_CHECK (gs, GIMPLE_PREDICT);
4355   return (gs->gsbase.subcode & GF_PREDICT_TAKEN) ? TAKEN : NOT_TAKEN;
4356 }
4357
4358
4359 /* Set the outcome of GIMPLE_PREDICT statement GS to OUTCOME.  */
4360
4361 static inline void
4362 gimple_predict_set_outcome (gimple gs, enum prediction outcome)
4363 {
4364   GIMPLE_CHECK (gs, GIMPLE_PREDICT);
4365   if (outcome == TAKEN)
4366     gs->gsbase.subcode |= GF_PREDICT_TAKEN;
4367   else
4368     gs->gsbase.subcode &= ~GF_PREDICT_TAKEN;
4369 }
4370
4371
4372 /* Return the type of the main expression computed by STMT.  Return
4373    void_type_node if the statement computes nothing.  */
4374
4375 static inline tree
4376 gimple_expr_type (const_gimple stmt)
4377 {
4378   enum gimple_code code = gimple_code (stmt);
4379
4380   if (code == GIMPLE_ASSIGN || code == GIMPLE_CALL)
4381     {
4382       tree type;
4383       /* In general we want to pass out a type that can be substituted
4384          for both the RHS and the LHS types if there is a possibly
4385          useless conversion involved.  That means returning the
4386          original RHS type as far as we can reconstruct it.  */
4387       if (code == GIMPLE_CALL)
4388         type = gimple_call_return_type (stmt);
4389       else
4390         switch (gimple_assign_rhs_code (stmt))
4391           {
4392           case POINTER_PLUS_EXPR:
4393             type = TREE_TYPE (gimple_assign_rhs1 (stmt));
4394             break;
4395
4396           default:
4397             /* As fallback use the type of the LHS.  */
4398             type = TREE_TYPE (gimple_get_lhs (stmt));
4399             break;
4400           }
4401       return type;
4402     }
4403   else if (code == GIMPLE_COND)
4404     return boolean_type_node;
4405   else
4406     return void_type_node;
4407 }
4408
4409
4410 /* Return a new iterator pointing to GIMPLE_SEQ's first statement.  */
4411
4412 static inline gimple_stmt_iterator
4413 gsi_start (gimple_seq seq)
4414 {
4415   gimple_stmt_iterator i;
4416
4417   i.ptr = gimple_seq_first (seq);
4418   i.seq = seq;
4419   i.bb = (i.ptr && i.ptr->stmt) ? gimple_bb (i.ptr->stmt) : NULL;
4420
4421   return i;
4422 }
4423
4424
4425 /* Return a new iterator pointing to the first statement in basic block BB.  */
4426
4427 static inline gimple_stmt_iterator
4428 gsi_start_bb (basic_block bb)
4429 {
4430   gimple_stmt_iterator i;
4431   gimple_seq seq;
4432   
4433   seq = bb_seq (bb);
4434   i.ptr = gimple_seq_first (seq);
4435   i.seq = seq;
4436   i.bb = bb;
4437
4438   return i;
4439 }
4440
4441
4442 /* Return a new iterator initially pointing to GIMPLE_SEQ's last statement.  */
4443
4444 static inline gimple_stmt_iterator
4445 gsi_last (gimple_seq seq)
4446 {
4447   gimple_stmt_iterator i;
4448
4449   i.ptr = gimple_seq_last (seq);
4450   i.seq = seq;
4451   i.bb = (i.ptr && i.ptr->stmt) ? gimple_bb (i.ptr->stmt) : NULL;
4452
4453   return i;
4454 }
4455
4456
4457 /* Return a new iterator pointing to the last statement in basic block BB.  */
4458
4459 static inline gimple_stmt_iterator
4460 gsi_last_bb (basic_block bb)
4461 {
4462   gimple_stmt_iterator i;
4463   gimple_seq seq;
4464
4465   seq = bb_seq (bb);
4466   i.ptr = gimple_seq_last (seq);
4467   i.seq = seq;
4468   i.bb = bb;
4469
4470   return i;
4471 }
4472
4473
4474 /* Return true if I is at the end of its sequence.  */
4475
4476 static inline bool
4477 gsi_end_p (gimple_stmt_iterator i)
4478 {
4479   return i.ptr == NULL;
4480 }
4481
4482
4483 /* Return true if I is one statement before the end of its sequence.  */
4484
4485 static inline bool
4486 gsi_one_before_end_p (gimple_stmt_iterator i)
4487 {
4488   return i.ptr != NULL && i.ptr->next == NULL;
4489 }
4490
4491
4492 /* Advance the iterator to the next gimple statement.  */
4493
4494 static inline void
4495 gsi_next (gimple_stmt_iterator *i)
4496 {
4497   i->ptr = i->ptr->next;
4498 }
4499
4500 /* Advance the iterator to the previous gimple statement.  */
4501
4502 static inline void
4503 gsi_prev (gimple_stmt_iterator *i)
4504 {
4505   i->ptr = i->ptr->prev;
4506 }
4507
4508 /* Return the current stmt.  */
4509
4510 static inline gimple
4511 gsi_stmt (gimple_stmt_iterator i)
4512 {
4513   return i.ptr->stmt;
4514 }
4515
4516 /* Return a block statement iterator that points to the first non-label
4517    statement in block BB.  */
4518
4519 static inline gimple_stmt_iterator
4520 gsi_after_labels (basic_block bb)
4521 {
4522   gimple_stmt_iterator gsi = gsi_start_bb (bb);
4523
4524   while (!gsi_end_p (gsi) && gimple_code (gsi_stmt (gsi)) == GIMPLE_LABEL)
4525     gsi_next (&gsi);
4526
4527   return gsi;
4528 }
4529
4530 /* Advance the iterator to the next non-debug gimple statement.  */
4531
4532 static inline void
4533 gsi_next_nondebug (gimple_stmt_iterator *i)
4534 {
4535   do
4536     {
4537       gsi_next (i);
4538     }
4539   while (!gsi_end_p (*i) && is_gimple_debug (gsi_stmt (*i)));
4540 }
4541
4542 /* Advance the iterator to the next non-debug gimple statement.  */
4543
4544 static inline void
4545 gsi_prev_nondebug (gimple_stmt_iterator *i)
4546 {
4547   do
4548     {
4549       gsi_prev (i);
4550     }
4551   while (!gsi_end_p (*i) && is_gimple_debug (gsi_stmt (*i)));
4552 }
4553
4554 /* Return a new iterator pointing to the first non-debug statement in
4555    basic block BB.  */
4556
4557 static inline gimple_stmt_iterator
4558 gsi_start_nondebug_bb (basic_block bb)
4559 {
4560   gimple_stmt_iterator i = gsi_start_bb (bb);
4561
4562   if (!gsi_end_p (i) && is_gimple_debug (gsi_stmt (i)))
4563     gsi_next_nondebug (&i);
4564
4565   return i;
4566 }
4567
4568 /* Return a new iterator pointing to the last non-debug statement in
4569    basic block BB.  */
4570
4571 static inline gimple_stmt_iterator
4572 gsi_last_nondebug_bb (basic_block bb)
4573 {
4574   gimple_stmt_iterator i = gsi_last_bb (bb);
4575
4576   if (!gsi_end_p (i) && is_gimple_debug (gsi_stmt (i)))
4577     gsi_prev_nondebug (&i);
4578
4579   return i;
4580 }
4581
4582 /* Return a pointer to the current stmt.
4583    
4584   NOTE: You may want to use gsi_replace on the iterator itself,
4585   as this performs additional bookkeeping that will not be done
4586   if you simply assign through a pointer returned by gsi_stmt_ptr.  */
4587
4588 static inline gimple *
4589 gsi_stmt_ptr (gimple_stmt_iterator *i)
4590 {
4591   return &i->ptr->stmt;
4592 }
4593
4594
4595 /* Return the basic block associated with this iterator.  */
4596
4597 static inline basic_block
4598 gsi_bb (gimple_stmt_iterator i)
4599 {
4600   return i.bb;
4601 }
4602
4603
4604 /* Return the sequence associated with this iterator.  */
4605
4606 static inline gimple_seq
4607 gsi_seq (gimple_stmt_iterator i)
4608 {
4609   return i.seq;
4610 }
4611
4612
4613 enum gsi_iterator_update
4614 {
4615   GSI_NEW_STMT,         /* Only valid when single statement is added, move
4616                            iterator to it.  */
4617   GSI_SAME_STMT,        /* Leave the iterator at the same statement.  */
4618   GSI_CONTINUE_LINKING  /* Move iterator to whatever position is suitable
4619                            for linking other statements in the same
4620                            direction.  */
4621 };
4622
4623 /* In gimple-iterator.c  */
4624 gimple_stmt_iterator gsi_start_phis (basic_block);
4625 gimple_seq gsi_split_seq_after (gimple_stmt_iterator);
4626 gimple_seq gsi_split_seq_before (gimple_stmt_iterator *);
4627 void gsi_replace (gimple_stmt_iterator *, gimple, bool);
4628 void gsi_insert_before (gimple_stmt_iterator *, gimple,
4629                         enum gsi_iterator_update);
4630 void gsi_insert_before_without_update (gimple_stmt_iterator *, gimple,
4631                                        enum gsi_iterator_update);
4632 void gsi_insert_seq_before (gimple_stmt_iterator *, gimple_seq,
4633                             enum gsi_iterator_update);
4634 void gsi_insert_seq_before_without_update (gimple_stmt_iterator *, gimple_seq,
4635                                            enum gsi_iterator_update);
4636 void gsi_insert_after (gimple_stmt_iterator *, gimple,
4637                        enum gsi_iterator_update);
4638 void gsi_insert_after_without_update (gimple_stmt_iterator *, gimple,
4639                                       enum gsi_iterator_update);
4640 void gsi_insert_seq_after (gimple_stmt_iterator *, gimple_seq,
4641                            enum gsi_iterator_update);
4642 void gsi_insert_seq_after_without_update (gimple_stmt_iterator *, gimple_seq,
4643                                           enum gsi_iterator_update);
4644 void gsi_remove (gimple_stmt_iterator *, bool);
4645 gimple_stmt_iterator gsi_for_stmt (gimple);
4646 void gsi_move_after (gimple_stmt_iterator *, gimple_stmt_iterator *);
4647 void gsi_move_before (gimple_stmt_iterator *, gimple_stmt_iterator *);
4648 void gsi_move_to_bb_end (gimple_stmt_iterator *, struct basic_block_def *);
4649 void gsi_insert_on_edge (edge, gimple);
4650 void gsi_insert_seq_on_edge (edge, gimple_seq);
4651 basic_block gsi_insert_on_edge_immediate (edge, gimple);
4652 basic_block gsi_insert_seq_on_edge_immediate (edge, gimple_seq);
4653 void gsi_commit_one_edge_insert (edge, basic_block *);
4654 void gsi_commit_edge_inserts (void);
4655 gimple gimple_call_copy_skip_args (gimple, bitmap);
4656
4657
4658 /* Convenience routines to walk all statements of a gimple function.
4659    Note that this is useful exclusively before the code is converted
4660    into SSA form.  Once the program is in SSA form, the standard
4661    operand interface should be used to analyze/modify statements.  */
4662 struct walk_stmt_info
4663 {
4664   /* Points to the current statement being walked.  */
4665   gimple_stmt_iterator gsi;
4666
4667   /* Additional data that the callback functions may want to carry
4668      through the recursion.  */
4669   void *info;
4670
4671   /* Pointer map used to mark visited tree nodes when calling
4672      walk_tree on each operand.  If set to NULL, duplicate tree nodes
4673      will be visited more than once.  */
4674   struct pointer_set_t *pset;
4675
4676   /* Indicates whether the operand being examined may be replaced
4677      with something that matches is_gimple_val (if true) or something
4678      slightly more complicated (if false).  "Something" technically
4679      means the common subset of is_gimple_lvalue and is_gimple_rhs,
4680      but we never try to form anything more complicated than that, so
4681      we don't bother checking.
4682
4683      Also note that CALLBACK should update this flag while walking the
4684      sub-expressions of a statement.  For instance, when walking the
4685      statement 'foo (&var)', the flag VAL_ONLY will initially be set
4686      to true, however, when walking &var, the operand of that
4687      ADDR_EXPR does not need to be a GIMPLE value.  */
4688   bool val_only;
4689
4690   /* True if we are currently walking the LHS of an assignment.  */
4691   bool is_lhs;
4692
4693   /* Optional.  Set to true by the callback functions if they made any
4694      changes.  */
4695   bool changed;
4696
4697   /* True if we're interested in location information.  */
4698   bool want_locations;
4699
4700   /* Operand returned by the callbacks.  This is set when calling
4701      walk_gimple_seq.  If the walk_stmt_fn or walk_tree_fn callback
4702      returns non-NULL, this field will contain the tree returned by
4703      the last callback.  */
4704   tree callback_result;
4705 };
4706
4707 /* Callback for walk_gimple_stmt.  Called for every statement found
4708    during traversal.  The first argument points to the statement to
4709    walk.  The second argument is a flag that the callback sets to
4710    'true' if it the callback handled all the operands and
4711    sub-statements of the statement (the default value of this flag is
4712    'false').  The third argument is an anonymous pointer to data
4713    to be used by the callback.  */
4714 typedef tree (*walk_stmt_fn) (gimple_stmt_iterator *, bool *,
4715                               struct walk_stmt_info *);
4716
4717 gimple walk_gimple_seq (gimple_seq, walk_stmt_fn, walk_tree_fn,
4718                         struct walk_stmt_info *);
4719 tree walk_gimple_stmt (gimple_stmt_iterator *, walk_stmt_fn, walk_tree_fn,
4720                        struct walk_stmt_info *);
4721 tree walk_gimple_op (gimple, walk_tree_fn, struct walk_stmt_info *);
4722
4723 #ifdef GATHER_STATISTICS
4724 /* Enum and arrays used for allocation stats.  Keep in sync with
4725    gimple.c:gimple_alloc_kind_names.  */
4726 enum gimple_alloc_kind
4727 {
4728   gimple_alloc_kind_assign,     /* Assignments.  */
4729   gimple_alloc_kind_phi,        /* PHI nodes.  */
4730   gimple_alloc_kind_cond,       /* Conditionals.  */
4731   gimple_alloc_kind_seq,        /* Sequences.  */
4732   gimple_alloc_kind_rest,       /* Everything else.  */
4733   gimple_alloc_kind_all
4734 };
4735
4736 extern int gimple_alloc_counts[];
4737 extern int gimple_alloc_sizes[];
4738
4739 /* Return the allocation kind for a given stmt CODE.  */
4740 static inline enum gimple_alloc_kind
4741 gimple_alloc_kind (enum gimple_code code)
4742 {
4743   switch (code)
4744     {
4745       case GIMPLE_ASSIGN:
4746         return gimple_alloc_kind_assign;
4747       case GIMPLE_PHI:
4748         return gimple_alloc_kind_phi;
4749       case GIMPLE_COND:
4750         return gimple_alloc_kind_cond;
4751       default:
4752         return gimple_alloc_kind_rest;
4753     }
4754 }
4755 #endif /* GATHER_STATISTICS */
4756
4757 extern void dump_gimple_statistics (void);
4758
4759 #endif  /* GCC_GIMPLE_H */