This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 0/7] Some adjustments to Graphite-OpenCL
- From: Sebastian Pop <sebpop at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: gcc-graphite at googlegroups dot com, amonakov at ispras dot ru, kayrick at ispras dot ru, Sebastian Pop <sebpop at gmail dot com>
- Date: Mon, 27 Dec 2010 23:57:54 -0600
- Subject: [PATCH 0/7] Some adjustments to Graphite-OpenCL
Hi,
I went over the code of Graphite-OpenCL again and I made some more
changes. The first patch removes all the forward declarations of
static functions:
Sort topologically static functions.
Then the following two patches are formatting adjustments:
Fix formating problems.
Fix formatting.
I remarked that there was some fragile code using integers to identify
the function names in a static array. This is fixed by this patch:
Use the enum OPENCL_FUNCTIONS as indices of opencl_function_names.
that uses a separate .def file with the codes of the enum and the
associated OpenCL function names that will be used to initialize the
array.
And then some more cleanups:
Move code out of ifdef HAVE_cloog section.
Don't include sys/time.h.
Use FOR_EACH_VEC_ELT.
I committed all these patches to the graphite branch.
Sebastian
gcc/ChangeLog.graphite | 45 +
gcc/Makefile.in | 2 +-
gcc/graphite-opencl-codegen.c | 1699 +++++++++++++++++---------------
gcc/graphite-opencl-functions.def | 41 +
gcc/graphite-opencl-meta-clast.c | 158 +++-
gcc/graphite-opencl.c | 1953 +++++++++++++++++++------------------
gcc/graphite-opencl.h | 12 +-
7 files changed, 2129 insertions(+), 1781 deletions(-)
create mode 100644 gcc/graphite-opencl-functions.def