'Perform addrspace conversion according to the NVVM spec'

def insert_addrspace_conv(self, builder, ptr, addrspace):

    lmod = builder.module
    base_type = ptr.type.pointee
    conv = nvvmutils.insert_addrspace_conv(lmod, base_type, addrspace)
    return builder.call(conv, [ptr])
