From patchwork Tue Aug 17 18:20:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Pop X-Patchwork-Id: 61950 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 7FA4AB70A9 for ; Wed, 18 Aug 2010 04:21:02 +1000 (EST) Received: (qmail 10882 invoked by alias); 17 Aug 2010 18:20:57 -0000 Received: (qmail 10745 invoked by uid 22791); 17 Aug 2010 18:20:56 -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_CF, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-pv0-f175.google.com (HELO mail-pv0-f175.google.com) (74.125.83.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Aug 2010 18:20:49 +0000 Received: by mail-pv0-f175.google.com with SMTP id 6so2508481pvg.20 for ; Tue, 17 Aug 2010 11:20:48 -0700 (PDT) Received: by 10.142.154.5 with SMTP id b5mr6074153wfe.209.1282069248538; Tue, 17 Aug 2010 11:20:48 -0700 (PDT) Received: from napoca ([163.181.251.115]) by mx.google.com with ESMTPS id y16sm10025187wff.14.2010.08.17.11.20.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Aug 2010 11:20:47 -0700 (PDT) Received: by napoca (sSMTP sendmail emulation); Tue, 17 Aug 2010 13:20:43 -0500 From: Sebastian Pop To: gcc-patches@gcc.gnu.org Cc: gcc-graphite@googlegroups.com, Sebastian Pop Subject: [PATCH 4/5] Add documentation for -fgraphite-read and -fgraphite-write. Date: Tue, 17 Aug 2010 13:20:23 -0500 Message-Id: <1282069224-21268-5-git-send-email-sebpop@gmail.com> In-Reply-To: <1282069224-21268-1-git-send-email-sebpop@gmail.com> References: <1282069224-21268-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 2010-08-14 Riyadh Baghdadi * doc/invoke.texi (debugging options): Update documentation. (-floop-interchange): Same. (-flopp-strip-mine): Same. (-floop-block): Same. (-fgraphite-read): Add documentation. (-fgraphite-write): Same. --- gcc/ChangeLog.graphite | 9 +++++++++ gcc/doc/invoke.texi | 24 +++++++++++++++++++++--- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index 78f6a1c..29619f7 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,5 +1,14 @@ 2010-08-14 Riyadh Baghdadi + * doc/invoke.texi (debugging options): Update documentation. + (-floop-interchange): Same. + (-flopp-strip-mine): Same. + (-floop-block): Same. + (-fgraphite-read): Add documentation. + (-fgraphite-write): Same. + +2010-08-14 Riyadh Baghdadi + * toplev.c (process_options): Disable graphite loop optimization options when -fgraphite-read flag is used. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index d8c0c22..5e90bfb 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -310,6 +310,7 @@ Objective-C and Objective-C++ Dialects}. -feliminate-dwarf2-dups -feliminate-unused-debug-types @gol -feliminate-unused-debug-symbols -femit-class-debug-always @gol -fenable-icf-debug @gol +-fgraphite-read -fgraphite-write @gol -fmem-report -fpre-ipa-mem-report -fpost-ipa-mem-report -fprofile-arcs @gol -frandom-seed=@var{string} -fsched-verbose=@var{n} @gol -fsel-sched-verbose -fsel-sched-dump-cfg -fsel-sched-pipelining-verbose @gol @@ -6793,7 +6794,8 @@ potentially creating at each access a cache miss. This optimization applies to all the languages supported by GCC and is not limited to Fortran. To use this code transformation, GCC has to be configured with @option{--with-ppl} and @option{--with-cloog} to enable the -Graphite loop transformation infrastructure. +Graphite loop transformation infrastructure. This option is disabled +when @option{-fgraphite-read} is used. @item -floop-strip-mine Perform loop strip mining transformations on loops. Strip mining @@ -6818,7 +6820,8 @@ ENDDO This optimization applies to all the languages supported by GCC and is not limited to Fortran. To use this code transformation, GCC has to be configured with @option{--with-ppl} and @option{--with-cloog} to -enable the Graphite loop transformation infrastructure. +enable the Graphite loop transformation infrastructure. This option is +disabled when @option{-fgraphite-read} is used. @item -floop-block Perform loop blocking transformations on loops. Blocking strip mines @@ -6851,7 +6854,8 @@ that can be kept in the caches. This optimization applies to all the languages supported by GCC and is not limited to Fortran. To use this code transformation, GCC has to be configured with @option{--with-ppl} and @option{--with-cloog} to enable the Graphite loop transformation -infrastructure. +infrastructure. This option is disabled when @option{-fgraphite-read} +is used. @item -fgraphite-identity @opindex fgraphite-identity @@ -6862,6 +6866,20 @@ GIMPLE -> GRAPHITE -> GIMPLE transformation. Some minimal optimizations are also performed by the code generator CLooG, like index splitting and dead code elimination in loops. +@item -fgraphite-read +@opindex fgraphite-read +Enable graphite to read a scop from an external file. Each scop in +the program is described in a separate file. This flag disables all +graphite loop optimizations (@option{-floop-block}, +@option{-floop-strip-mine}, and @option{-floop-iterchange}). + +@item -fgraphite-write +@opindex fgraphite-write +Enable graphite to dump a scop to an external file. Each scop in the +program is described in a separate file. For a program @code{file.c} +that has 3 scops, the dumped files are named @code{file.0.graphite}, +@code{file.1.graphite}, and @code{file.2.graphite}. + @item -floop-parallelize-all Use the Graphite data dependence analysis to identify loops that can be parallelized. Parallelize all the loops that can be analyzed to