This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][SPIRV] Added storage class constraint on global variable
ClosedPublic

Authored by georgemitenkov on Jul 28 2020, 12:44 AM.

Details

Summary

Added a check for 'Function' storage class in spv.globalVariable
verifier since it only can be used with spv.Variable.

Diff Detail

Event Timeline

georgemitenkov requested review of this revision.Jul 28 2020, 12:59 AM
antiagainst accepted this revision.Jul 28 2020, 5:51 PM
This revision is now accepted and ready to land.Jul 28 2020, 5:51 PM