Allow return statements for GPU-only kernels
Created by: pxl-th
It's a bit annoying to not be able to use return statements. Currently you have to do something like this, but it looks weird:
@kernel function ker!(args...)
i = @index(Global)
_ker!(i, args...)
end
function _ker!(i, args...)
...
end