This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Query target environment for mapping memory space
ClosedPublic

Authored by raikonenfnu on Sep 20 2022, 2:40 PM.

Details

Summary

Checks spirv::TargetEnv from op to see if it contains either Kernel or Shader capabilities.
If it does, then it will set the memory space mapping accordingly.

Diff Detail

Event Timeline

raikonenfnu created this revision.Sep 20 2022, 2:40 PM
raikonenfnu requested review of this revision.Sep 20 2022, 2:40 PM
antiagainst accepted this revision.Sep 20 2022, 2:47 PM
This revision is now accepted and ready to land.Sep 20 2022, 2:47 PM
raikonenfnu retitled this revision from [mlir][spirv] Queries target environment for mapping to [mlir][spirv] Query target environment for mapping memory space.
raikonenfnu edited the summary of this revision. (Show Details)

Updated commit message