OpenScop  0.9.0
scop.h
Go to the documentation of this file.
1 
2  /*+-----------------------------------------------------------------**
3  ** OpenScop Library **
4  **-----------------------------------------------------------------**
5  ** scop.h **
6  **-----------------------------------------------------------------**
7  ** First version: 30/04/2008 **
8  **-----------------------------------------------------------------**
9 
10 
11  *****************************************************************************
12  * OpenScop: Structures and formats for polyhedral tools to talk together *
13  *****************************************************************************
14  * ,___,,_,__,,__,,__,,__,,_,__,,_,__,,__,,___,_,__,,_,__, *
15  * / / / // // // // / / / // // / / // / /|,_, *
16  * / / / // // // // / / / // // / / // / / / /\ *
17  * |~~~|~|~~~|~~~|~~~|~~~|~|~~~|~|~~~|~~~|~~~|~|~~~|~|~~~|/_/ \ *
18  * | G |C| P | = | L | P |=| = |C| = | = | = |=| = |=| C |\ \ /\ *
19  * | R |l| o | = | e | l |=| = |a| = | = | = |=| = |=| L | \# \ /\ *
20  * | A |a| l | = | t | u |=| = |n| = | = | = |=| = |=| o | |\# \ \ *
21  * | P |n| l | = | s | t |=| = |d| = | = | = | | |=| o | | \# \ \ *
22  * | H | | y | | e | o | | = |l| | | = | | | | G | | \ \ \ *
23  * | I | | | | e | | | | | | | | | | | | | \ \ \ *
24  * | T | | | | | | | | | | | | | | | | | \ \ \ *
25  * | E | | | | | | | | | | | | | | | | | \ \ \ *
26  * | * |*| * | * | * | * |*| * |*| * | * | * |*| * |*| * | / \* \ \ *
27  * | O |p| e | n | S | c |o| p |-| L | i | b |r| a |r| y |/ \ \ / *
28  * '---'-'---'---'---'---'-'---'-'---'---'---'-'---'-'---' '--' *
29  * *
30  * Copyright (C) 2008 University Paris-Sud 11 and INRIA *
31  * *
32  * (3-clause BSD license) *
33  * Redistribution and use in source and binary forms, with or without *
34  * modification, are permitted provided that the following conditions *
35  * are met: *
36  * *
37  * 1. Redistributions of source code must retain the above copyright notice, *
38  * this list of conditions and the following disclaimer. *
39  * 2. Redistributions in binary form must reproduce the above copyright *
40  * notice, this list of conditions and the following disclaimer in the *
41  * documentation and/or other materials provided with the distribution. *
42  * 3. The name of the author may not be used to endorse or promote products *
43  * derived from this software without specific prior written permission. *
44  * *
45  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR *
46  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES *
47  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. *
48  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, *
49  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT *
50  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, *
51  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY *
52  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
53  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF *
54  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
55  * *
56  * OpenScop Library, a library to manipulate OpenScop formats and data *
57  * structures. Written by: *
58  * Cedric Bastoul <Cedric.Bastoul@u-psud.fr> and *
59  * Louis-Noel Pouchet <Louis-Noel.pouchet@inria.fr> *
60  * *
61  *****************************************************************************/
62 
63 
64 /*+****************************************************************************
65  * THIS FILE HAS BEEN AUTOMATICALLY GENERATED FROM scop.h.in BY configure *
66  ******************************************************************************/
67 
68 
69 #ifndef OSL_SCOP_H
70 # define OSL_SCOP_H
71 
72 # include <unistd.h>
73 
74 # define OSL_RELEASE "0.9.0"
75 
76 # include <osl/relation.h>
77 # include <osl/interface.h>
78 # include <osl/generic.h>
79 # include <osl/statement.h>
80 
81 
82 # if defined(__cplusplus)
83 extern "C"
84  {
85 # endif
86 
87 
97 struct osl_scop {
98  int version;
99  char * language;
105  void * usr;
107  struct osl_scop * next;
108 };
109 typedef struct osl_scop osl_scop_t;
110 typedef struct osl_scop * osl_scop_p;
111 
112 
113 /*+***************************************************************************
114  * Structure display function *
115  *****************************************************************************/
116 void osl_scop_idump(FILE *, osl_scop_p, int);
117 void osl_scop_dump(FILE *, osl_scop_p);
118 void osl_scop_print(FILE *, osl_scop_p);
119 
120 // SCoPLib Compatibility
121 void osl_scop_print_scoplib(FILE *, osl_scop_p);
122 
123 
124 /*****************************************************************************
125  * Reading function *
126  *****************************************************************************/
127 osl_scop_p osl_scop_pread(FILE *, osl_interface_p, int);
128 osl_scop_p osl_scop_read(FILE *);
129 
130 
131 /*+***************************************************************************
132  * Memory allocation/deallocation function *
133  *****************************************************************************/
134 osl_scop_p osl_scop_malloc();
135 void osl_scop_free(osl_scop_p);
136 
137 
138 /*+***************************************************************************
139  * Processing functions *
140  *****************************************************************************/
141 void osl_scop_add(osl_scop_p *, osl_scop_p);
142 size_t osl_scop_number(osl_scop_p);
143 osl_scop_p osl_scop_clone(osl_scop_p);
144 int osl_scop_equal(osl_scop_p, osl_scop_p);
145 int osl_scop_integrity_check(osl_scop_p);
146 int osl_scop_check_compatible_scoplib(osl_scop_p);
147 int osl_scop_get_nb_parameters(osl_scop_p);
149 void osl_scop_get_attributes(osl_scop_p,
150  int *, int *, int *, int *, int *);
151 void osl_scop_normalize_scattering(osl_scop_p);
152 
153 osl_names_p osl_scop_names(osl_scop_p scop);
154 
155 # if defined(__cplusplus)
156  }
157 # endif
158 
159 #endif /* define OSL_SCOP_H */
osl_relation_p context
Definition: scop.h:100
osl_scop_p osl_scop_clone(osl_scop_p)
Definition: scop.c:635
void osl_scop_register_extension(osl_scop_p, osl_interface_p)
Definition: scop.c:864
void * usr
Definition: scop.h:105
osl_interface_p registry
Definition: scop.h:103
void osl_scop_normalize_scattering(osl_scop_p)
Definition: scop.c:943
size_t osl_scop_number(osl_scop_p)
Definition: scop.c:616
char * language
Definition: scop.h:99
void osl_scop_free(osl_scop_p)
Definition: scop.c:570
void osl_scop_get_attributes(osl_scop_p, int *, int *, int *, int *, int *)
Definition: scop.c:899
int osl_scop_check_compatible_scoplib(osl_scop_p)
Definition: scop.c:779
osl_scop_p osl_scop_pread(FILE *, osl_interface_p, int)
Definition: scop.c:421
int osl_scop_integrity_check(osl_scop_p)
Definition: scop.c:734
void osl_scop_add(osl_scop_p *, osl_scop_p)
Definition: scop.c:601
osl_scop_p osl_scop_read(FILE *)
Definition: scop.c:525
osl_scop_p osl_scop_malloc()
Definition: scop.c:547
osl_generic_p parameters
Definition: scop.h:101
void osl_scop_idump(FILE *, osl_scop_p, int)
Definition: scop.c:95
void osl_scop_print(FILE *, osl_scop_p)
Definition: scop.c:218
void osl_scop_dump(FILE *, osl_scop_p)
Definition: scop.c:181
int osl_scop_equal(osl_scop_p, osl_scop_p)
Definition: scop.c:675
int version
Definition: scop.h:98
struct osl_scop * osl_scop_p
Definition: scop.h:110
void osl_scop_print_scoplib(FILE *, osl_scop_p)
Definition: scop.c:311
struct osl_scop * next
Definition: scop.h:107
int osl_scop_get_nb_parameters(osl_scop_p)
Definition: scop.c:843
osl_names_p osl_scop_names(osl_scop_p scop)
Definition: scop.c:193
osl_statement_p statement
Definition: scop.h:102
Definition: scop.h:97
osl_generic_p extension
Definition: scop.h:104