Refactor the GPGPU codegen in IslCodeGeneration