omega.h: Don't include config.h...
authorAndrew MacLeod <amacleod@redhat.com>
Mon, 13 Jul 2015 15:41:54 +0000 (15:41 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Mon, 13 Jul 2015 15:41:54 +0000 (15:41 +0000)
* omega.h: Don't include config.h, don't include params.h again if
omega.h has already been included.
* graphite-poly.h: Include sese.h.
* graphite.c: Don't include sese.h, remove needless includes and
minimize includes outside #ifdef HAVE_isl block.
* graphite-blocking.c: Don't include sese.h, remove needless includes,
and wrap entire file in #ifdef HAVE_isl
* graphite-dependences.c: Likewise.
* graphite-interchange.c: Likewise.
* graphite-isl-ast-to-gimple.c: Likewise.
* graphite-optimize-isl.c: Likewise.
* graphite-poly.c: Likewise.
* graphite-scop-detection.c: Likewise.
* graphite-sese-to-poly.c: Likewise.

From-SVN: r225741

12 files changed:
gcc/ChangeLog
gcc/graphite-blocking.c
gcc/graphite-dependences.c
gcc/graphite-interchange.c
gcc/graphite-isl-ast-to-gimple.c
gcc/graphite-optimize-isl.c
gcc/graphite-poly.c
gcc/graphite-poly.h
gcc/graphite-scop-detection.c
gcc/graphite-sese-to-poly.c
gcc/graphite.c
gcc/omega.h

index f600ce3db0ce71d46df7adb20b8ee97ec75451e2..3e66a1d25694528fa5bcba0e3edf3c5114cf04c1 100644 (file)
@@ -1,3 +1,20 @@
+2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
+
+       * omega.h: Don't include config.h, don't include params.h again if
+       omega.h has already been included.
+       * graphite-poly.h: Include sese.h.
+       * graphite.c: Don't include sese.h, remove needless includes and 
+       minimize includes outside #ifdef HAVE_isl block.
+       * graphite-blocking.c: Don't include sese.h, remove needless includes,
+       and wrap entire file in #ifdef HAVE_isl
+       * graphite-dependences.c: Likewise.
+       * graphite-interchange.c: Likewise.
+       * graphite-isl-ast-to-gimple.c: Likewise.
+       * graphite-optimize-isl.c: Likewise.
+       * graphite-poly.c: Likewise.
+       * graphite-scop-detection.c: Likewise.
+       * graphite-sese-to-poly.c: Likewise.
+
 2015-07-13  Tom de Vries  <tom@codesourcery.com>
 
        * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
index 9ee733e83b092e0ffa39ab53b548c714ef92c9a4..73d7c59748c43f22fe30c2b833ec27904f977d06 100644 (file)
@@ -31,32 +31,21 @@ along with GCC; see the file COPYING3.  If not see
 #include <isl/map.h>
 #include <isl/union_map.h>
 #include <isl/constraint.h>
-#endif
 
 #include "system.h"
 #include "coretypes.h"
-#include "alias.h"
 #include "backend.h"
 #include "cfghooks.h"
 #include "tree.h"
 #include "gimple.h"
-#include "hard-reg-set.h"
-#include "options.h"
 #include "fold-const.h"
-#include "dominance.h"
-#include "internal-fn.h"
 #include "gimple-iterator.h"
 #include "tree-ssa-loop.h"
 #include "dumpfile.h"
 #include "cfgloop.h"
-#include "tree-chrec.h"
 #include "tree-data-ref.h"
-#include "sese.h"
-
-#ifdef HAVE_isl
 #include "graphite-poly.h"
 
-
 /* Strip mines with a factor STRIDE the scattering (time) dimension
    around PBB at depth TIME_DEPTH.
 
index 79b69a79cb1c38beb9e94046c18c1dbbf3af6a1b..50fe73efd00e479dc913f64befe5c21f844d449a 100644 (file)
@@ -30,31 +30,22 @@ along with GCC; see the file COPYING3.  If not see
 #include <isl/union_map.h>
 #include <isl/flow.h>
 #include <isl/constraint.h>
-#endif
 
 #include "system.h"
 #include "coretypes.h"
-#include "alias.h"
 #include "backend.h"
 #include "cfghooks.h"
 #include "tree.h"
 #include "gimple.h"
-#include "hard-reg-set.h"
-#include "options.h"
 #include "fold-const.h"
-#include "internal-fn.h"
 #include "gimple-iterator.h"
 #include "tree-ssa-loop.h"
 #include "tree-pass.h"
 #include "cfgloop.h"
-#include "tree-chrec.h"
 #include "tree-data-ref.h"
-#include "tree-scalar-evolution.h"
-#include "sese.h"
-
-#ifdef HAVE_isl
 #include "graphite-poly.h"
 
+
 isl_union_map *
 scop_get_dependences (scop_p scop)
 {
@@ -632,4 +623,4 @@ graphite_legal_transform (scop_p scop)
   return res;
 }
 
-#endif
+#endif /* HAVE_isl */
index 0f0580b0332d9dca7045f53ab858d1df75b16dde..aee51a8fa059972bbfb2fc76f283900aa03dd544 100644 (file)
@@ -42,31 +42,22 @@ extern "C" {
 #if !defined(HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE) && defined(__cplusplus)
 }
 #endif
-#endif
 
 #include "system.h"
 #include "coretypes.h"
-#include "alias.h"
 #include "backend.h"
 #include "cfghooks.h"
 #include "tree.h"
 #include "gimple.h"
-#include "hard-reg-set.h"
-#include "options.h"
 #include "fold-const.h"
-#include "internal-fn.h"
 #include "gimple-iterator.h"
 #include "tree-ssa-loop.h"
 #include "dumpfile.h"
 #include "cfgloop.h"
-#include "tree-chrec.h"
 #include "tree-data-ref.h"
-#include "tree-scalar-evolution.h"
-#include "sese.h"
-
-#ifdef HAVE_isl
 #include "graphite-poly.h"
 
+
 /* XXX isl rewrite following comment */
 /* Builds a linear expression, of dimension DIM, representing PDR's
    memory access:
@@ -657,5 +648,5 @@ scop_do_interchange (scop_p scop)
 }
 
 
-#endif
+#endif /* HAVE_isl */
 
index e9da68014095f1eacf4c981f80387797b73b14cc..b32781a5b7894c9f213fb30e4a9e92e377d3aa05 100644 (file)
@@ -37,33 +37,25 @@ extern "C" {
 #if !defined(HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE) && defined(__cplusplus)
 }
 #endif
-#endif
 
 #include "system.h"
 #include "coretypes.h"
-#include "alias.h"
 #include "backend.h"
 #include "cfghooks.h"
 #include "tree.h"
 #include "gimple.h"
-#include "hard-reg-set.h"
-#include "options.h"
 #include "fold-const.h"
-#include "internal-fn.h"
 #include "gimple-iterator.h"
 #include "tree-ssa-loop.h"
 #include "tree-pass.h"
 #include "cfgloop.h"
 #include "tree-data-ref.h"
-#include "sese.h"
+#include "graphite-poly.h"
 #include "tree-ssa-loop-manip.h"
 #include "tree-scalar-evolution.h"
 #include "gimple-ssa.h"
 #include "tree-into-ssa.h"
 #include <map>
-
-#ifdef HAVE_isl
-#include "graphite-poly.h"
 #include "graphite-isl-ast-to-gimple.h"
 
 /* This flag is set when an error occurred during the translation of
@@ -1094,4 +1086,4 @@ graphite_regenerate_ast_isl (scop_p scop)
 
   return !graphite_regenerate_error;
 }
-#endif
+#endif  /* HAVE_isl */
index 3be82b502c0e61f13bb9810dd1c49bec0f7abb53..f4904017efdd72bfb94fb4fd361597b428543674 100644 (file)
@@ -31,29 +31,18 @@ along with GCC; see the file COPYING3.  If not see
 #include <isl/band.h>
 #include <isl/aff.h>
 #include <isl/options.h>
-#endif
 
 #include "system.h"
 #include "coretypes.h"
-#include "alias.h"
 #include "backend.h"
 #include "cfghooks.h"
 #include "tree.h"
 #include "gimple.h"
-#include "hard-reg-set.h"
-#include "options.h"
 #include "fold-const.h"
-#include "internal-fn.h"
 #include "gimple-iterator.h"
 #include "tree-ssa-loop.h"
-#include "dumpfile.h"
 #include "cfgloop.h"
-#include "tree-chrec.h"
 #include "tree-data-ref.h"
-#include "tree-scalar-evolution.h"
-#include "sese.h"
-
-#ifdef HAVE_isl
 #include "graphite-poly.h"
 
 static isl_union_set *
@@ -623,4 +612,4 @@ optimize_isl (scop_p scop)
   return true;
 }
 
-#endif
+#endif  /* HAVE_isl */
index d62b2afe21ebeb90d76d5b43c0c4b0479355f099..bcd08d8c5d68965202a8f541b51af5c6697a5e30 100644 (file)
@@ -41,31 +41,20 @@ extern "C" {
 #if !defined(HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE) && defined(__cplusplus)
 }
 #endif
-#endif
 
 #include "system.h"
 #include "coretypes.h"
-#include "diagnostic-core.h"
-#include "alias.h"
 #include "backend.h"
+#include "diagnostic-core.h"
 #include "cfghooks.h"
 #include "tree.h"
 #include "gimple.h"
-#include "hard-reg-set.h"
-#include "options.h"
 #include "fold-const.h"
-#include "internal-fn.h"
 #include "gimple-iterator.h"
 #include "tree-ssa-loop.h"
-#include "dumpfile.h"
 #include "gimple-pretty-print.h"
 #include "cfgloop.h"
-#include "tree-chrec.h"
 #include "tree-data-ref.h"
-#include "tree-scalar-evolution.h"
-#include "sese.h"
-
-#ifdef HAVE_isl
 #include "graphite-poly.h"
 
 #define OPENSCOP_MAX_STRING 256
@@ -1206,5 +1195,5 @@ reverse_loop_for_pbbs (scop_p scop, vec<poly_bb_p> pbbs, int depth)
 }
 
 
-#endif
+#endif  /* HAVE_isl */
 
index afc0121f6115e4fa488feb8dd09100f814db7b85..7ffd18eb495caed17a8b0fcbc7842ad7f8cd4bbc 100644 (file)
@@ -22,6 +22,8 @@ along with GCC; see the file COPYING3.  If not see
 #ifndef GCC_GRAPHITE_POLY_H
 #define GCC_GRAPHITE_POLY_H
 
+#include "sese.h"
+
 typedef struct poly_dr *poly_dr_p;
 
 typedef struct poly_bb *poly_bb_p;
index 46a55347eeba1e63b368a5faa39d0396aab0c35b..47e0da046e14885b837e2cc8e318f714b069b12c 100644 (file)
@@ -28,20 +28,15 @@ along with GCC; see the file COPYING3.  If not see
 #include <isl/set.h>
 #include <isl/map.h>
 #include <isl/union_map.h>
-#endif
 
 #include "system.h"
 #include "coretypes.h"
-#include "alias.h"
 #include "backend.h"
 #include "cfghooks.h"
 #include "tree.h"
 #include "gimple.h"
-#include "hard-reg-set.h"
 #include "ssa.h"
-#include "options.h"
 #include "fold-const.h"
-#include "internal-fn.h"
 #include "gimple-iterator.h"
 #include "tree-ssa-loop-manip.h"
 #include "tree-ssa-loop-niter.h"
@@ -49,15 +44,11 @@ along with GCC; see the file COPYING3.  If not see
 #include "tree-into-ssa.h"
 #include "tree-ssa.h"
 #include "cfgloop.h"
-#include "tree-chrec.h"
 #include "tree-data-ref.h"
 #include "tree-scalar-evolution.h"
 #include "tree-pass.h"
-#include "sese.h"
-#include "tree-ssa-propagate.h"
-
-#ifdef HAVE_isl
 #include "graphite-poly.h"
+#include "tree-ssa-propagate.h"
 #include "graphite-scop-detection.h"
 
 /* Forward declarations.  */
@@ -1637,4 +1628,4 @@ dot_scop (scop_p scop)
 #endif
 }
 
-#endif
+#endif  /* HAVE_isl */
index 6ab44d9d195a205e3f8e41c988f21701caa2b7df..506424799e5b7e68a71180ea36bf461719d44afc 100644 (file)
@@ -39,20 +39,15 @@ extern "C" {
 #if !defined(HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE) && defined(__cplusplus)
 }
 #endif
-#endif
 
 #include "system.h"
 #include "coretypes.h"
-#include "alias.h"
 #include "backend.h"
 #include "cfghooks.h"
 #include "tree.h"
 #include "gimple.h"
-#include "rtl.h"
 #include "ssa.h"
-#include "options.h"
 #include "fold-const.h"
-#include "internal-fn.h"
 #include "gimple-iterator.h"
 #include "gimplify.h"
 #include "gimplify-me.h"
@@ -63,25 +58,11 @@ extern "C" {
 #include "tree-into-ssa.h"
 #include "tree-pass.h"
 #include "cfgloop.h"
-#include "tree-chrec.h"
 #include "tree-data-ref.h"
 #include "tree-scalar-evolution.h"
 #include "domwalk.h"
-#include "sese.h"
-#include "tree-ssa-propagate.h"
-
-#ifdef HAVE_isl
-#include "flags.h"
-#include "insn-config.h"
-#include "expmed.h"
-#include "dojump.h"
-#include "explow.h"
-#include "calls.h"
-#include "emit-rtl.h"
-#include "varasm.h"
-#include "stmt.h"
-#include "expr.h"
 #include "graphite-poly.h"
+#include "tree-ssa-propagate.h"
 #include "graphite-sese-to-poly.h"
 
 
@@ -3187,4 +3168,4 @@ build_poly_scop (scop_p scop)
      representation.  */
   POLY_SCOP_P (scop) = true;
 }
-#endif
+#endif  /* HAVE_isl */
index 7a3536b8ea886907be12031f46c4fa49a0b70435..a81ef6aba6860cb86a105aa6e3e350c0d6ff2552 100644 (file)
@@ -46,33 +46,25 @@ along with GCC; see the file COPYING3.  If not see
 
 #include "system.h"
 #include "coretypes.h"
-#include "diagnostic-core.h"
-#include "alias.h"
 #include "backend.h"
+#include "diagnostic-core.h"
+#include "cfgloop.h"
+#include "tree-pass.h"
+
+#ifdef HAVE_isl
 #include "cfghooks.h"
 #include "tree.h"
 #include "gimple.h"
-#include "hard-reg-set.h"
-#include "options.h"
 #include "fold-const.h"
-#include "internal-fn.h"
 #include "gimple-iterator.h"
 #include "tree-cfg.h"
 #include "tree-ssa-loop.h"
-#include "tree-dump.h"
-#include "cfgloop.h"
-#include "tree-chrec.h"
 #include "tree-data-ref.h"
 #include "tree-scalar-evolution.h"
-#include "sese.h"
+#include "graphite-poly.h"
 #include "dbgcnt.h"
 #include "tree-parloops.h"
-#include "tree-pass.h"
 #include "tree-cfgcleanup.h"
-
-#ifdef HAVE_isl
-
-#include "graphite-poly.h"
 #include "graphite-scop-detection.h"
 #include "graphite-isl-ast-to-gimple.h"
 #include "graphite-sese-to-poly.h"
index 052fb638fd6418ce0c912920bd5d3dc2f8997aef..33361b863636dd64d462152680a6e7e71281698c 100644 (file)
@@ -24,12 +24,12 @@ You should have received a copy of the GNU General Public License
 along with GCC; see the file COPYING3.  If not see
 <http://www.gnu.org/licenses/>.  */
 
-#include "config.h"
-#include "params.h"
 
 #ifndef GCC_OMEGA_H
 #define GCC_OMEGA_H
 
+#include "params.h"
+
 #define OMEGA_MAX_VARS PARAM_VALUE (PARAM_OMEGA_MAX_VARS)
 #define OMEGA_MAX_GEQS PARAM_VALUE (PARAM_OMEGA_MAX_GEQS)
 #define OMEGA_MAX_EQS PARAM_VALUE (PARAM_OMEGA_MAX_EQS)