This is an archive of the discontinued LLVM Phabricator instance.

[mlir][ODS] Add support for variadic regions.
ClosedPublic

Authored by rriddle on Apr 3 2020, 11:17 PM.

Details

Summary

This revision adds support for marking the last region as variadic in the ODS region list with the VariadicRegion directive.

Diff Detail

Event Timeline

rriddle created this revision.Apr 3 2020, 11:17 PM
mehdi_amini added inline comments.Apr 4 2020, 11:46 AM
mlir/test/Dialect/LLVMIR/global.mlir
83

Is this a requirement because of the verifier change?

rriddle marked 2 inline comments as done.Apr 4 2020, 12:18 PM
rriddle added inline comments.
mlir/test/Dialect/LLVMIR/global.mlir
83

Yes, the number of regions is verified earlier now.

mehdi_amini accepted this revision.Apr 4 2020, 1:34 PM
This revision is now accepted and ready to land.Apr 4 2020, 1:34 PM
This revision was automatically updated to reflect the committed changes.
rriddle marked an inline comment as done.