1 /* Header for dependency analysis
2 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010
3 Free Software Foundation, Inc.
4 Contributed by Paul Brook
6 This file is part of GCC.
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
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
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/>. */
22 /****************************** Enums *********************************/
25 NOT_ELEMENTAL
, /* Not elemental case: normal dependency check. */
26 ELEM_CHECK_VARIABLE
, /* Test whether variables overlap. */
27 ELEM_DONT_CHECK_VARIABLE
/* Test whether variables overlap only if used
32 /*********************** Functions prototypes **************************/
34 bool gfc_ref_needs_temporary_p (gfc_ref
*);
35 bool gfc_full_array_ref_p (gfc_ref
*, bool *);
36 gfc_expr
*gfc_get_noncopying_intrinsic_argument (gfc_expr
*);
37 int gfc_check_fncall_dependency (gfc_expr
*, sym_intent
, gfc_symbol
*,
38 gfc_actual_arglist
*, gfc_dep_check
);
39 int gfc_check_dependency (gfc_expr
*, gfc_expr
*, bool);
40 int gfc_is_same_range (gfc_array_ref
*, gfc_array_ref
*, int, int);
41 int gfc_expr_is_one (gfc_expr
*, int);
43 int gfc_dep_resolver(gfc_ref
*, gfc_ref
*, gfc_reverse
*);
44 int gfc_are_equivalenced_arrays (gfc_expr
*, gfc_expr
*);
46 bool gfc_are_identical_variables (gfc_expr
*, gfc_expr
*);