[PATCH 0/7] Some adjustments to Graphite-OpenCL
Sebastian Pop
sebpop@gmail.com
Tue Dec 28 05:59:00 GMT 2010
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 that contains the codes of the enum and
the associated OpenCL function names.
And 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
More information about the Gcc-patches
mailing list