This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][PRESBURGER] Parse multiple integerSets.
Needs RevisionPublic

Authored by pashu123 on Apr 13 2022, 12:27 AM.

Details

Summary

This patch adds functionality to parse multiple integer-sets of the form

multiple-integer-sets
    ::= dim-and-symbol-id-lists `:`
    '(' affine-constraint-conjunction ')' (`,` '(' affine-constraint-conjunction ')')*
    affine-constraint-conjunction ::= affine-constraint (`,`
                                       affine-constraint)*

For e.g., "(x,y) : (x + y - 4 >= 0), (x - 2 >= 0)".

Diff Detail

Event Timeline

pashu123 created this revision.Apr 13 2022, 12:27 AM
Herald added a reviewer: aartbik. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
pashu123 requested review of this revision.Apr 13 2022, 12:27 AM
rriddle requested changes to this revision.EditedApr 13 2022, 12:40 PM

What is the intended use case of this? It isn't clear to me that we should expand the parser API in this way.

This revision now requires changes to proceed.Apr 13 2022, 12:40 PM

@rriddle I guess the primary reason is for test cases and benchmarking. If you could suggest some other way to add this, that would be great.