This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Add support for empty IVs to affine.parallel
ClosedPublic

Authored by flaub on May 20 2021, 7:10 PM.

Details

Summary

Allow support for specifying empty IVs in an affine.parallel.

For example:

affine.parallel () = () to () {
  affine.yield
}

Diff Detail

Event Timeline

flaub created this revision.May 20 2021, 7:10 PM
flaub requested review of this revision.May 20 2021, 7:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2021, 7:10 PM
flaub edited the summary of this revision. (Show Details)May 20 2021, 7:10 PM
bondhugula accepted this revision.May 21 2021, 10:54 PM

LGTM. Just a request to update documentation.

mlir/test/Dialect/Affine/ops.mlir
187–189

I think the documentation needs to be updated to say this is allowed.

This revision is now accepted and ready to land.May 21 2021, 10:54 PM
jbruestle accepted this revision.May 23 2021, 3:06 PM
flaub updated this revision to Diff 348119.May 26 2021, 4:08 PM

Update docs

This revision was automatically updated to reflect the committed changes.