opencl.c: move up some functions
opencl.c: move up some functions

This will allow these functions to be called from inside
print_host_code in the next commit.

Signed-off-by: Sven Verdoolaege <e5350bbed4977f5eb8ae1dc6abd9ae59d21ace75@kotnet.org>

nicolasvasilache/ppcg,nicolasvasilache/ppcg,Meinersbur/ppcg,Meinersbur/ppcg