This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Add target control to UnifyAliasedResourcePass
ClosedPublic

Authored by antiagainst on Oct 27 2022, 11:11 AM.

Details

Summary

The UnifyAliasedResourcePass is actually only necessary for
targeting Apple GPUs via MoltenVK, where we need to translate
SPIR-V into MSL. The translation has limitations--no support
of aliased resources. So introducing a control to disable
this pass if targeting other platforms.

Diff Detail

Event Timeline

antiagainst created this revision.Oct 27 2022, 11:11 AM
antiagainst requested review of this revision.Oct 27 2022, 11:11 AM
kuhar accepted this revision.Oct 27 2022, 11:30 AM

LGTM

This revision is now accepted and ready to land.Oct 27 2022, 11:30 AM
This revision was landed with ongoing or failed builds.Oct 27 2022, 11:36 AM
This revision was automatically updated to reflect the committed changes.