This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][SPIRV] Control attributes parsing/printing for loop and selection
ClosedPublic

Authored by georgemitenkov on Jul 20 2020, 7:55 AM.

Details

Summary

This patch handles loopControl and selectionControl in parsing and
printing. In order to reuse the functionality, and avoid handling cases when
{ of the region is parsed as a dictionary attribute, control keyword was
introduced.None is a default control attribute.

This functionality can be later extended to spv.func.

Diff Detail

Event Timeline

georgemitenkov created this revision.Jul 20 2020, 7:55 AM
antiagainst requested changes to this revision.Jul 23 2020, 4:14 PM

Awesome! Can we also support (de)serialization for this?

This revision now requires changes to proceed.Jul 23 2020, 4:14 PM

Added support of (de)serialization of loop and selection control.

antiagainst accepted this revision.Jul 28 2020, 6:31 PM
This revision is now accepted and ready to land.Jul 28 2020, 6:31 PM