pass ppcg_scop to generate_*
commit8c4af29e639b24582dbfb56f61d0f434c18aa87c
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 16 Oct 2012 18:22:01 +0000 (16 20:22 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 12 Nov 2012 11:25:31 +0000 (12 12:25 +0100)
treeefe8472d2b571f8a5206529774bf970fe159df02
parentba16270e3abd3d9bd51eaa80a93039eb1ac3f1da
pass ppcg_scop to generate_*

generate_cpu would already construct a ppcg_scop.  Move the construction
out of generate_cpu and pass the same ppcg_scop to generate_cuda.
This allows us to perform some optimizations only once and have them
take effect for both targets.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Makefile.am
cpu.c
cpu.h
cuda.c
cuda.h
gpu.c
gpu.h
ppcg.c
ppcg.h [new file with mode: 0644]