mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-16 13:01:21 +08:00
move ILS include to system.h
This moves ISL system header includes to system.h. * system.h (INCLUDE_ISL): New guarded include. * graphite-dependences.c: Use it. * 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. * graphite.c: Likewise. * graphite.h: Drop the includes here.
This commit is contained in:
parent
4222fd8e94
commit
deda4625f1
@ -19,7 +19,7 @@ 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/>. */
|
||||
|
||||
#define USES_ISL
|
||||
#define INCLUDE_ISL
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
@ -18,7 +18,7 @@ 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/>. */
|
||||
|
||||
#define USES_ISL
|
||||
#define INCLUDE_ISL
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
@ -18,7 +18,7 @@ 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/>. */
|
||||
|
||||
#define USES_ISL
|
||||
#define INCLUDE_ISL
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
@ -19,7 +19,7 @@ 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/>. */
|
||||
|
||||
#define USES_ISL
|
||||
#define INCLUDE_ISL
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
@ -19,7 +19,7 @@ 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/>. */
|
||||
|
||||
#define USES_ISL
|
||||
#define INCLUDE_ISL
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
@ -18,7 +18,7 @@ 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/>. */
|
||||
|
||||
#define USES_ISL
|
||||
#define INCLUDE_ISL
|
||||
|
||||
#include "config.h"
|
||||
|
||||
@ -46,15 +46,6 @@ along with GCC; see the file COPYING3. If not see
|
||||
#include "tree-scalar-evolution.h"
|
||||
#include "domwalk.h"
|
||||
#include "tree-ssa-propagate.h"
|
||||
|
||||
#include <isl/constraint.h>
|
||||
#include <isl/set.h>
|
||||
#include <isl/map.h>
|
||||
#include <isl/union_map.h>
|
||||
#include <isl/constraint.h>
|
||||
#include <isl/aff.h>
|
||||
#include <isl/val.h>
|
||||
|
||||
#include "graphite.h"
|
||||
|
||||
/* Return an isl identifier for the polyhedral basic block PBB. */
|
||||
|
@ -27,7 +27,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
The wiki page http://gcc.gnu.org/wiki/Graphite contains pointers to
|
||||
the related work. */
|
||||
|
||||
#define USES_ISL
|
||||
#define INCLUDE_ISL
|
||||
|
||||
#include "config.h"
|
||||
#include "system.h"
|
||||
|
@ -23,22 +23,6 @@ along with GCC; see the file COPYING3. If not see
|
||||
#define GCC_GRAPHITE_POLY_H
|
||||
|
||||
#include "sese.h"
|
||||
#include <isl/options.h>
|
||||
#include <isl/ctx.h>
|
||||
#include <isl/val.h>
|
||||
#include <isl/set.h>
|
||||
#include <isl/union_set.h>
|
||||
#include <isl/map.h>
|
||||
#include <isl/union_map.h>
|
||||
#include <isl/aff.h>
|
||||
#include <isl/constraint.h>
|
||||
#include <isl/flow.h>
|
||||
#include <isl/ilp.h>
|
||||
#include <isl/schedule.h>
|
||||
#include <isl/ast_build.h>
|
||||
#include <isl/schedule_node.h>
|
||||
#include <isl/id.h>
|
||||
#include <isl/space.h>
|
||||
|
||||
typedef struct poly_dr *poly_dr_p;
|
||||
|
||||
|
23
gcc/system.h
23
gcc/system.h
@ -736,6 +736,27 @@ extern int vsnprintf (char *, size_t, const char *, va_list);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef INCLUDE_ISL
|
||||
#ifdef HAVE_isl
|
||||
#include <isl/options.h>
|
||||
#include <isl/ctx.h>
|
||||
#include <isl/val.h>
|
||||
#include <isl/set.h>
|
||||
#include <isl/union_set.h>
|
||||
#include <isl/map.h>
|
||||
#include <isl/union_map.h>
|
||||
#include <isl/aff.h>
|
||||
#include <isl/constraint.h>
|
||||
#include <isl/flow.h>
|
||||
#include <isl/ilp.h>
|
||||
#include <isl/schedule.h>
|
||||
#include <isl/ast_build.h>
|
||||
#include <isl/schedule_node.h>
|
||||
#include <isl/id.h>
|
||||
#include <isl/space.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Redefine abort to report an internal error w/o coredump, and
|
||||
reporting the location of the error in the source file. */
|
||||
extern void fancy_abort (const char *, int, const char *)
|
||||
@ -866,12 +887,10 @@ extern void fancy_abort (const char *, int, const char *)
|
||||
etc don't spuriously fail. */
|
||||
#ifdef IN_GCC
|
||||
|
||||
#ifndef USES_ISL
|
||||
#undef calloc
|
||||
#undef strdup
|
||||
#undef strndup
|
||||
#pragma GCC poison calloc strdup strndup
|
||||
#endif
|
||||
|
||||
#if !defined(FLEX_SCANNER) && !defined(YYBISON)
|
||||
#undef malloc
|
||||
|
Loading…
x
Reference in New Issue
Block a user