This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Presburger] support IntegerRelation::convertIdKind
ClosedPublic

Authored by arjunp on Mar 21 2022, 9:18 AM.

Diff Detail

Event Timeline

arjunp created this revision.Mar 21 2022, 9:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2022, 9:18 AM
arjunp requested review of this revision.Mar 21 2022, 9:18 AM
Groverkss added inline comments.Mar 21 2022, 3:47 PM
mlir/include/mlir/Analysis/Presburger/IntegerRelation.h
393–395

Can we just have convertIdKind? I don't see the reason to have convertToLocal if we have a more general function here.

Groverkss requested changes to this revision.Mar 21 2022, 3:47 PM
This revision now requires changes to proceed.Mar 21 2022, 3:47 PM
arjunp updated this revision to Diff 417277.Mar 22 2022, 6:29 AM

clang-format

mlir/include/mlir/Analysis/Presburger/IntegerRelation.h
393–395

Seems like a common use case, and making a default parameter for the other one doesn't make sense to me.

Groverkss accepted this revision.Mar 23 2022, 3:12 AM
Groverkss added inline comments.
mlir/lib/Analysis/Presburger/IntegerRelation.cpp
1135–1137

Can you put a comment here on why we have to do this swapping? The reasoning IIRC is that there can be some information attached to identifiers which we need to carry over.

This revision is now accepted and ready to land.Mar 23 2022, 3:12 AM
arjunp updated this revision to Diff 417561.Mar 23 2022, 4:11 AM
  • add comments
  • clang-format
This revision was landed with ongoing or failed builds.Mar 23 2022, 4:12 AM
This revision was automatically updated to reflect the committed changes.