GCC Middle and Back End API Reference
graphite.c File Reference

Functions

static void print_global_statistics ()
static void print_graphite_scop_statistics ()
static void print_graphite_statistics ()
static bool graphite_initialize ()
static void graphite_finalize ()
void graphite_transform_loops ()
static unsigned int graphite_transforms ()
static bool gate_graphite_transforms ()
gimple_opt_passmake_pass_graphite ()
gimple_opt_passmake_pass_graphite_transforms ()

Variables

CloogState * cloog_state
isl_ctx * the_isl_ctx

Function Documentation

static bool gate_graphite_transforms ( )
static
     Enable -fgraphite pass if any one of the graphite optimization flags
     is turned on.  

Referenced by make_pass_graphite().

static void graphite_finalize ( )
static
   Finalize graphite: perform CFG cleanup when NEED_CFG_CLEANUP_P is
   true.  
static bool graphite_initialize ( )
static
   Initialize graphite: when there are no loops returns false.  
         FIXME: This limit on the number of basic blocks of a function
         should be removed when the SCOP detection is faster.  
static void graphite_transform_loops ( )
   Perform a set of linear transforms on the loops of the current
   function.  
     If a function is parallel it was most probably already run through graphite
     once. No need to run again.  
static unsigned int graphite_transforms ( )
static

Referenced by make_pass_graphite().

gimple_opt_pass* make_pass_graphite_transforms ( )
static void print_global_statistics ( )
static
   Print global statistics to FILE.  
         Ignore artificial surrounding loop.  

References basic_block_def::count, gsi_end_p(), gsi_next(), gsi_start_bb(), loop::header, basic_block_def::index, basic_block_def::loop_father, and basic_block_def::succs.

static void print_graphite_scop_statistics ( )
static
static void print_graphite_statistics ( )
static
   Print statistics for SCOPS to FILE.  

References cfun, and number_of_loops().


Variable Documentation

CloogState* cloog_state
@verbatim 

Gimple Represented as Polyhedra. Copyright (C) 2006-2013 Free Software Foundation, Inc. Contributed by Sebastian Pop sebas.nosp@m.tian.nosp@m..pop@.nosp@m.inri.nosp@m.a.fr.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

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/.

   This pass converts GIMPLE to GRAPHITE, performs some loop
   transformations and then converts the resulting representation back
   to GIMPLE.

   An early description of this pass can be found in the GCC Summit'06
   paper "GRAPHITE: Polyhedral Analyses and Optimizations for GCC".
   The wiki page http://gcc.gnu.org/wiki/Graphite contains pointers to
   the related work.

   One important document to read is CLooG's internal manual:
   http://repo.or.cz/w/cloog-ppl.git?a=blob_plain;f=doc/cloog.texi;hb=HEAD
   that describes the data structure of loops used in this file, and
   the functions that are used for transforming the code.  
isl_ctx* the_isl_ctx