Create pointer constants of the correct type for their address space.
Allow pointer types to be constants.
Teach InstCombine not to fold comparisons to null if the inttoptr result size doesn't match the pointer size.