This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Use functors for default memory space mappings
ClosedPublic

Authored by antiagainst on Aug 8 2022, 9:42 AM.

Details

Summary

This makes it easier to use as a utility function to query the
mappings, including the reverse.

Diff Detail

Event Timeline

antiagainst created this revision.Aug 8 2022, 9:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2022, 9:42 AM
antiagainst requested review of this revision.Aug 8 2022, 9:42 AM
kuhar accepted this revision.Aug 9 2022, 8:48 AM

LGTM

mlir/include/mlir/Conversion/MemRefToSPIRV/MemRefToSPIRV.h
30

nit: maybe mapMemorySpaceToStorageClassForVulkan -> mapMemorySpaceToVulkanStorageClass?
similar below

This revision is now accepted and ready to land.Aug 9 2022, 8:48 AM
antiagainst marked an inline comment as done.Aug 9 2022, 11:36 AM
This revision was landed with ongoing or failed builds.Aug 9 2022, 11:39 AM
This revision was automatically updated to reflect the committed changes.