Add wrappers for local and constant memory.