13 switch (addressSpace) {
14 case gpu::AddressSpace::Global:
15 return spirv::StorageClass::CrossWorkgroup;
16 case gpu::AddressSpace::Workgroup:
17 return spirv::StorageClass::Workgroup;
18 case gpu::AddressSpace::Private:
19 return spirv::StorageClass::Private;
21 llvm_unreachable(
"Unhandled storage class");
Include the generated interface declarations.
spirv::StorageClass addressSpaceToStorageClass(gpu::AddressSpace addressSpace)