opencl backend: print max macro definition if and when needed
commitb89e3c1a99162ff37292c6071013d1009f623b61
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 3 Feb 2016 15:18:21 +0000 (3 16:18 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 15 Feb 2016 09:36:29 +0000 (15 10:36 +0100)
tree70f14d309a7c585144c9e80b87e3176e61f0ced5
parent52508112fa292f2c79c18209dbb043ffade37420
opencl backend: print max macro definition if and when needed

Commit fd0e714 (opencl backend: avoid uninitialized cl_mem objects,
Wed May 7 12:56:20 2014 +0100) introduced a call to
isl_ast_op_type_print_macro to print a macro definition for
isl_ast_op_max because the max may end up getting used
in allocate_device_array.
Presumably the call was put there to avoid the macro definition
getting printed several times.  Now that macro definitions are
only printed once, the call can be moved to allocate_device_array and
it can be performed only when it is actually needed.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
opencl.c