Recently the new feature was landed: Model MemRefType memory space as Attribute (https://reviews.llvm.org/D96145). It allows to use more descriptive type for memory space instead of raw integer. SPIR-V Dialect can leverage this feature to directly use "local", "private", "global" memory spaces as strings/enums instead of mapping to/from raw integers.
Recently the new feature was landed: Model MemRefType memory space as Attribute (https://reviews.llvm.org/D96145). It allows to use more descriptive type for memory space instead of raw integer. SPIR-V Dialect can leverage this feature to directly use "local", "private", "global" memory spaces as strings/enums instead of mapping to/from raw integers.