nir_lower_io: Add addr_format_is_offset helper