opencl backend: print kernel file using single printer
commit4bf6d46ef7f5e887222f8aafeda9bd2fdc421dc9
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Wed, 13 Aug 2014 16:25:23 +0000 (13 17:25 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 14 Aug 2014 06:49:40 +0000 (14 08:49 +0200)
tree7be0b80573757021f982630c136c370a8e449e6f
parentc037c5808a4ce4a81e14c3b490dbae1362464e6f
opencl backend: print kernel file using single printer

opencl_print_kernel() was creating and releasing an isl printer on each
invocation.  This makes postprocessing the kernel file contents a bit
difficult, which we need to do in a future commit.

Instead of writing directly to the kernel file, we now buffer the kernel
file contents using an isl string printer, and write it after all work
has been done.

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
opencl.c