This data structure is used by the Zig language code generation and therefore must be kept in sync with the compiler implementation.
pub const AddressSpace = enum(u5)
pub const AddressSpace = enum(u5) {
// CPU address spaces.
generic,
gs,
fs,
ss,
// x86_16 extra address spaces.
/// Allows addressing the entire address space by storing both segment and offset.
far,
// GPU address spaces.
global,
constant,
param,
shared,
local,
input,
output,
uniform,
push_constant,
storage_buffer,
physical_storage_buffer,
// AVR address spaces.
flash,
flash1,
flash2,
flash3,
flash4,
flash5,
// Propeller address spaces.
/// This address space only addresses the cog-local ram.
cog,
/// This address space only addresses shared hub ram.
hub,
/// This address space only addresses the "lookup" ram
lut,
// Web Assembly
externref,
funcref,
}