1/* Header for statement translation functions
2 Copyright (C) 2002-2023 Free Software Foundation, Inc.
3 Contributed by Paul Brook
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 3, or (at your option) any later
10version.
11
12GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or
14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15for more details.
16
17You should have received a copy of the GNU General Public License
18along with GCC; see the file COPYING3. If not see
19<http://www.gnu.org/licenses/>. */
20
21/* Statement translators (gfc_trans_*) return a fully translated tree.
22 Calls gfc_trans_*. */
23tree gfc_trans_code (gfc_code *);
24
25/* Wrapper function used to pass a check condition for implied DO loops. */
26tree gfc_trans_code_cond (gfc_code *, tree);
27
28/* All other gfc_trans_* should only need be called by gfc_trans_code */
29
30/* trans-expr.cc */
31tree gfc_trans_assign (gfc_code *);
32tree gfc_trans_pointer_assign (gfc_code *);
33tree gfc_trans_init_assign (gfc_code *);
34tree gfc_trans_class_init_assign (gfc_code *);
35
36/* trans-stmt.cc */
37tree gfc_trans_cycle (gfc_code *);
38tree gfc_trans_critical (gfc_code *);
39tree gfc_trans_exit (gfc_code *);
40tree gfc_trans_label_assign (gfc_code *);
41tree gfc_trans_label_here (gfc_code *);
42tree gfc_trans_goto (gfc_code *);
43tree gfc_trans_entry (gfc_code *);
44tree gfc_trans_pause (gfc_code *);
45tree gfc_trans_stop (gfc_code *, bool);
46tree gfc_trans_call (gfc_code *, bool, tree, tree, bool);
47tree gfc_trans_return (gfc_code *);
48tree gfc_trans_if (gfc_code *);
49tree gfc_trans_arithmetic_if (gfc_code *);
50tree gfc_trans_block_construct (gfc_code *);
51tree gfc_trans_do (gfc_code *, tree);
52tree gfc_trans_do_concurrent (gfc_code *);
53tree gfc_trans_do_while (gfc_code *);
54tree gfc_trans_select (gfc_code *);
55tree gfc_trans_select_type (gfc_code *);
56tree gfc_trans_select_rank (gfc_code *);
57tree gfc_trans_sync (gfc_code *, gfc_exec_op);
58tree gfc_trans_lock_unlock (gfc_code *, gfc_exec_op);
59tree gfc_trans_event_post_wait (gfc_code *, gfc_exec_op);
60tree gfc_trans_fail_image (gfc_code *);
61tree gfc_trans_forall (gfc_code *);
62tree gfc_trans_form_team (gfc_code *);
63tree gfc_trans_change_team (gfc_code *);
64tree gfc_trans_end_team (gfc_code *);
65tree gfc_trans_sync_team (gfc_code *);
66tree gfc_trans_where (gfc_code *);
67tree gfc_trans_allocate (gfc_code *);
68tree gfc_trans_deallocate (gfc_code *);
69
70/* trans-openmp.cc */
71tree gfc_trans_omp_directive (gfc_code *);
72void gfc_trans_omp_declare_simd (gfc_namespace *);
73void gfc_trans_omp_declare_variant (gfc_namespace *);
74tree gfc_trans_oacc_directive (gfc_code *);
75tree gfc_trans_oacc_declare (gfc_namespace *);
76
77/* trans-io.cc */
78tree gfc_trans_open (gfc_code *);
79tree gfc_trans_close (gfc_code *);
80tree gfc_trans_read (gfc_code *);
81tree gfc_trans_write (gfc_code *);
82tree gfc_trans_iolength (gfc_code *);
83tree gfc_trans_backspace (gfc_code *);
84tree gfc_trans_endfile (gfc_code *);
85tree gfc_trans_inquire (gfc_code *);
86tree gfc_trans_rewind (gfc_code *);
87tree gfc_trans_flush (gfc_code *);
88
89tree gfc_trans_transfer (gfc_code *);
90tree gfc_trans_dt_end (gfc_code *);
91tree gfc_trans_wait (gfc_code *);
92

source code of gcc/fortran/trans-stmt.h