From patchwork Mon Aug 2 20:20:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Pop X-Patchwork-Id: 60661 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 217BAB70AF for ; Tue, 3 Aug 2010 06:29:58 +1000 (EST) Received: (qmail 4715 invoked by alias); 2 Aug 2010 20:25:18 -0000 Received: (qmail 4330 invoked by uid 22791); 2 Aug 2010 20:25:11 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, TW_SV, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-gw0-f47.google.com (HELO mail-gw0-f47.google.com) (74.125.83.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 Aug 2010 20:24:56 +0000 Received: by mail-gw0-f47.google.com with SMTP id 15so1553111gwb.20 for ; Mon, 02 Aug 2010 13:24:56 -0700 (PDT) Received: by 10.151.15.10 with SMTP id s10mr1080887ybi.371.1280780695952; Mon, 02 Aug 2010 13:24:55 -0700 (PDT) Received: from napoca (cpe-70-120-196-107.austin.res.rr.com [70.120.196.107]) by mx.google.com with ESMTPS id t2sm4390054yba.14.2010.08.02.13.24.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 02 Aug 2010 13:24:55 -0700 (PDT) Received: by napoca (sSMTP sendmail emulation); Mon, 02 Aug 2010 15:24:52 -0500 From: Sebastian Pop To: gcc-patches@gcc.gnu.org Cc: Tobias Grosser , gcc-graphite Subject: [PATCH 62/65] Remove cloog_initialize and cloog_finalize when using official CLooG releases. Date: Mon, 2 Aug 2010 15:20:35 -0500 Message-Id: <1280780438-17543-63-git-send-email-sebpop@gmail.com> In-Reply-To: <1280780438-17543-1-git-send-email-sebpop@gmail.com> References: <1280780438-17543-1-git-send-email-sebpop@gmail.com> X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org From: spop This requires to initialize the Parma Polyhedra Library by graphite, as newer CLooG versions are not bound to a PPL backend. 2010-07-27 Andreas Simbuerger * graphite.c (graphite_initialize): Do not initialize CLooG and initialize the Parma Polyhedra Library manually when using CLOOG_ORG. (graphite_finalize): Do not finalize CLooG and finalize the Parma Polyhedra Library manually when using CLOOG_ORG. * graphite-cloog-compat.h (cloog_initialize): Hide function when using CLOOG_ORG. (cloog_finalize): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/graphite@162609 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 19 +++++++++++++++++++ gcc/ChangeLog.graphite | 11 +++++++++++ gcc/graphite-cloog-compat.h | 5 +++++ gcc/graphite.c | 8 ++++++++ 4 files changed, 43 insertions(+), 0 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dfa57af..bdc5f26 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,24 @@ 2010-08-02 Andreas Simbuerger + * graphite-cloog-util.c (oppose_constraint): + Extend loop counter's value range (CLOOG_ORG). + (cloog_matrix_to_ppl_constraint): Same. + (new_Constraint_System_from_Cloog_matrix): Same. + * graphite-cloog-compat.h (matrix_num_type): New. + +2010-08-02 Andreas Simbuerger + + * graphite.c (graphite_initialize): Do not initialize + CLooG and initialize the Parma Polyhedra Library + manually when using CLOOG_ORG. + (graphite_finalize): Do not finalize CLooG and finalize + the Parma Polyhedra Library manually when using CLOOG_ORG. + * graphite-cloog-compat.h (cloog_initialize): Hide function + when using CLOOG_ORG. + (cloog_finalize): Same. + +2010-08-02 Andreas Simbuerger + * graphite-clast-to-gimple.c (free_scattering): Change CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering (CLOOG_ORG). diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index 4916f91..7a7b02c 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,5 +1,16 @@ 2010-07-27 Andreas Simbuerger + * graphite.c (graphite_initialize): Do not initialize + CLooG and initialize the Parma Polyhedra Library + manually when using CLOOG_ORG. + (graphite_finalize): Do not finalize CLooG and finalize + the Parma Polyhedra Library manually when using CLOOG_ORG. + * graphite-cloog-compat.h (cloog_initialize): Hide function + when using CLOOG_ORG. + (cloog_finalize): Same. + +2010-07-18 Andreas Simbuerger + * graphite-clast-to-gimple.c (free_scattering): Change CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering (CLOOG_ORG). diff --git a/gcc/graphite-cloog-compat.h b/gcc/graphite-cloog-compat.h index 56b6bb3..c39b18e 100644 --- a/gcc/graphite-cloog-compat.h +++ b/gcc/graphite-cloog-compat.h @@ -29,6 +29,11 @@ typedef const struct clast_expr *clast_name_p; typedef const char *clast_name_p; #endif +#ifdef CLOOG_ORG +#define cloog_initialize() +#define cloog_finalize() +#endif + #ifndef CLOOG_ORG /* CloogOptions compatibility. */ diff --git a/gcc/graphite.c b/gcc/graphite.c index 4bb4344..12dbd0c 100644 --- a/gcc/graphite.c +++ b/gcc/graphite.c @@ -61,6 +61,7 @@ along with GCC; see the file COPYING3. If not see #include "cloog/cloog.h" #include "ppl_c.h" +#include "graphite-cloog-compat.h" #include "graphite-ppl.h" #include "graphite.h" #include "graphite-poly.h" @@ -200,6 +201,8 @@ print_graphite_statistics (FILE* file, VEC (scop_p, heap) *scops) static bool graphite_initialize (void) { + int ppl_initialized; + if (number_of_loops () <= 1 /* FIXME: This limit on the number of basic blocks of a function should be removed when the SCOP detection is faster. */ @@ -213,6 +216,10 @@ graphite_initialize (void) recompute_all_dominators (); initialize_original_copy_tables (); + + ppl_initialized = ppl_initialize (); + gcc_assert (ppl_initialized == 0); + cloog_initialize (); if (dump_file && dump_flags) @@ -237,6 +244,7 @@ graphite_finalize (bool need_cfg_cleanup_p) } cloog_finalize (); + ppl_finalize (); free_original_copy_tables (); if (dump_file && dump_flags)