print declarations for variables declared inside the scop
commita9c418fd320aa44305c26e4a8b2e4c8caca74b79
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 16 Oct 2012 06:33:37 +0000 (16 08:33 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 12 Nov 2012 11:25:31 +0000 (12 12:25 +0100)
treec0a71a91750d5f2d9bfc8e866c6593448645b634
parent2cda8cda81e39a74d1def9292b8afaaed2c6d8cb
print declarations for variables declared inside the scop

For GPU code generation, we only declare those variables that
are still visible after the scop.  Those that are only visible
inside the scop are only used on the GPU.
For CPU code generation, we need to declare both type of variables,
but make sure that the variables that are not visible after
the scop remain that way.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
cpu.c
cuda.c
print.c
print.h