Add createKernelCopy function

This function is use to create LLVM IR for copy statement in a kernel
when shared memory or private memory code generation is enabled.