convert shared memory pointers into generic CUDA address space
cudalib.sharedmemory(typ,N) returns a &typ that points to N instances of typ in shared memory.
The value returned is now a generic pointer that can be used to address shared memory.
cuda compile takes an optional flag to dump the result for debugging.
Merge branch 'master' of github.com:zdevito/terra