2 /**-------------------------------------------------------------------**
4 **-------------------------------------------------------------------**
6 **-------------------------------------------------------------------**
7 ** First version: october 26th 2001 **
8 **-------------------------------------------------------------------**/
11 /******************************************************************************
12 * CLooG : the Chunky Loop Generator (experimental) *
13 ******************************************************************************
15 * Copyright (C) 2001-2005 Cedric Bastoul *
17 * This is free software; you can redistribute it and/or modify it under the *
18 * terms of the GNU General Public License as published by the Free Software *
19 * Foundation; either version 2 of the License, or (at your option) any later *
22 * This software is distributed in the hope that it will be useful, but *
23 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *
24 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License *
27 * You should have received a copy of the GNU General Public License along *
28 * with software; if not, write to the Free Software Foundation, Inc., *
29 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
31 * CLooG, the Chunky Loop Generator *
32 * Written by Cedric Bastoul, Cedric.Bastoul@inria.fr *
34 ******************************************************************************/
37 #ifndef CLOOG_PPRINT_H
38 #define CLOOG_PPRINT_H
39 #if defined(__cplusplus)
45 # define MAX_STRING_VAL 32
46 # define INDENT_STEP 2
47 # define ONE_TIME_LOOP -1
49 # define EQTYPE_CONSTANT 1
50 # define EQTYPE_PUREITEM 2
51 # define EQTYPE_EXAFFINE 3
54 # define LANGUAGE_FORTRAN 1
58 * CloogInfos structure:
59 * this structure contains all the informations necessary for pretty printing,
60 * they come from the original CloogProgram structure (language, names), from
61 * genereral options (options) or are built only for pretty printing (stride).
62 * This structure is mainly there to reduce the number of function parameters,
63 * since most pprint.c functions need most of its field.
66 { Value
* stride
; /**< The stride for each iterator. */
67 int language
; /**< 1 to generate FORTRAN, 0 for C otherwise. */
68 int nb_scattdims
; /**< Scattering dimension number. */
69 int * scaldims
; /**< Boolean array saying whether a given
70 * scattering dimension is scalar or not.
72 CloogNames
* names
; /**< Names of iterators and parameters. */
73 CloogOptions
* options
; /**< Options on CLooG's behaviour. */
75 typedef struct clooginfos CloogInfos
;
78 /******************************************************************************
80 ******************************************************************************/
81 char * pprint_line(CloogMatrix
*, CloogMatrix
*, int, int, CloogInfos
*) ;
82 char * pprint_minmax(CloogMatrix
*, CloogMatrix
*, int, int, int, CloogInfos
*);
85 /******************************************************************************
86 * Structure display function *
87 ******************************************************************************/
88 void pprint(FILE *, CloogLoop
*, CloogMatrix
*, int, int, int, CloogInfos
*) ;
91 #if defined(__cplusplus)
94 #endif /* define _H */