summaryrefslogtreecommitdiff
path: root/gcc/graphite-cloog-compat.h
Commit message (Collapse)AuthorAgeFilesLines
* PR bootstrap/48102jakub2011-03-141-3/+3
| | | | | | | | * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170933 138bc75d-0d04-0410-961f-82ee72b054a4
* New flag: -fgraphite-dump-cloog.spop2010-09-301-0/+2
| | | | | | | | | | | | | | | | | | | | Introduce a new flag: -fgraphite-dump-cloog. If enabled, graphite dumps each SCoP into a CLooG input file for further debugging. The naming follows the naming scheme of -fgraphite-write: <basename>.<scopnumber>.cloog The file is dumped into the current working directory. 2010-09-16 Andreas Simbuerger <simbuerg@fim.uni-passau.de> * common.opt (fgraphite-dump-cloog): New flag. * doc/invoke.texi (-fgraphite-dump-cloog): Documented. * graphite-clast-to-gimple.c (init_cloog_input_file): New. (build_cloog_prog): Dump CLooG input file when flag_graphite_dump_cloog is set. * graphite-cloog-compat.h (cloog_program_dump_cloog): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164808 138bc75d-0d04-0410-961f-82ee72b054a4
* Add necessary accessors for CloogMatrix (CLOOG_ORG).spop2010-09-301-0/+10
| | | | | | | | | 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de> * graphite-cloog-compat.h (cloog_matrix_ncolumns): New. (cloog_matrix_nrows): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164776 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove cloog_initialize and cloog_finalize when using official CLooG releases.spop2010-08-111-0/+5
| | | | | | | | | | | | | | | | | | 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 <simbuerg@fim.uni-passau.de> * 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/trunk@163166 138bc75d-0d04-0410-961f-82ee72b054a4
* Adapt to new CloogScattering abstraction, introduced in official CLooG ↵spop2010-08-111-10/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | versions (CLOOG_ORG). 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> * graphite-clast-to-gimple.c (free_scattering): Change CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering (CLOOG_ORG). (build_cloog_prog): Same. * graphite-cloog-compat.h (cloog_domain): Removed. (cloog_scattering): New. (cloog_set_domain): Removed. (cloog_set_scattering): New. (cloog_next_domain): Removed. (cloog_next_scattering): New. (cloog_set_next_domain): Removed. (cloog_set_next_scattering): New. (CloogScatteringList): New. (CloogScattering): New. (cloog_scattering_free): New. (new_Cloog_Scattering_from_ppl_Polyhedron): New. * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163165 138bc75d-0d04-0410-961f-82ee72b054a4
* Introduce compatibility to newer CLooG's CloogState and mask the use with ↵spop2010-08-111-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | macros where possible. 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> * graphite-clast-to-gimple.c (build_cloog_prog): Extend with CloogState. (set_cloog_options): Same. (print_clast_stmt): Same. (scop_to_clast): Same. (print_generated_program): Same. (gloog): Same. * graphite-clast-to-gimple.h: Include graphite-cloog-util.h. (scop_to_clast): Extend with CloogState. * graphite-cloog-util.c: Include graphite-cloog-compat.h (new_Cloog_Domain_from_ppl_Polyhedron): Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG). (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState. (new_Cloog_Domain_from_ppl_Polyhedron): Same. * graphite-cloog-util.h (build_cloog_prog): Same. * graphite-cloog-copat.h (build_cloog_prog): New. (CloogState): New. (cloog_state_malloc): New. (cloog_state_free): New. (cloog_loop_malloc): New. (cloog_options_malloc): New. (cloog_statement_alloc): New. (cloog_domain_from_cloog_matrix): New. (new_Cloog_Domain_from_ppl_Pointset_Powerset): New. (new_Cloog_Domain_from_ppl_Polyhedron): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163164 138bc75d-0d04-0410-961f-82ee72b054a4
* Adapt to new CLAST structure within upstream CLooG version and retain ↵spop2010-08-111-0/+12
| | | | | | | | | | | | | | | | | | | | | compatibility to CLooG Legacy. 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter type of NAME now depends on used CLooG version. (clast_to_gcc_expression): Replace expr_* with clast_expr_*. (gcc_type_for_clast_expr): Same. (print_clast_stmt): Replace pprint with clast_pprint. * graphite-cloog-compat.h: Provide compatibility macros for CLooG Legacy. (clast_name_p): New. (clast_expr_term): New. (clast_expr_red): New. (clast_expr_bin): New. (clast_pprint): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163163 138bc75d-0d04-0410-961f-82ee72b054a4
* Make CLooG options compatible to newer CLooG releases and pass options to ↵spop2010-08-111-0/+12
| | | | | | | | | | | | | | | | | build_cloog_prog (CLOOG_ORG). 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options compatible to newer CLooG releases (CLOOG_ORG). (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG). (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG). * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy. (build_cloog_prog) : New. (cloog_program_extract_scalars): New. (cloog_program_scatter): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163162 138bc75d-0d04-0410-961f-82ee72b054a4
* Reintroduce necessary CLooG accessors to graphite. Masked by CLOOG_ORG.spop2010-08-111-0/+210
2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h conditionally (CLOOG_ORG). * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h. (cloog_statement_usr): New. (cloog_domain): Same. (cloog_set_domain): Same. (cloog_next_domain): Same. (cloog_set_next_domain): Same. (cloog_program_nb_scattdims): Same. (cloog_program_set_nb_scattdims): Same. (cloog_program_names): Same. (cloog_program_set_names): Same. (cloog_program_set_context): Same. (cloog_program_set_loop): Same. (cloog_program_blocklist): Same. (cloog_program_set_blocklist): Same. (cloog_program_scaldims): Same. (cloog_program_set_scaldims): Same. (cloog_names_nb_parameters): Same. (cloog_names_set_nb_parameters): Same. (cloog_names_parameters): Same. (cloog_names_set_parameters): Same. (cloog_names_set_nb_iterators): Same. (cloog_names_set_iterators): Same. (cloog_names_set_nb_scattering): Same. (cloog_names_set_scattering): Same. (cloog_statement_set_usr): Same. (cloog_loop_set_next): Same. (cloog_loop_set_domain): Same. (cloog_loop_set_block): Same. (cloog_block_list_next): Same. (cloog_block_list_set_next): (cloog_block_list_set_block): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163161 138bc75d-0d04-0410-961f-82ee72b054a4