Update IDToValue to replace host memory base with kernel arguments
Add eraseSharedMemoryBases

This function is used to erase all the allocated shared memory from the
host module after the complete of the GPGPU code generation.