This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Presburger] Cleanup getMaybeValues in FACV
ClosedPublic

Authored by Groverkss on May 14 2022, 2:10 PM.

Details

Summary

This patch cleans up multiple getMaybeValue functions to take an IdKind instead
of special functions.

Diff Detail

Event Timeline

Groverkss created this revision.May 14 2022, 2:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 14 2022, 2:10 PM
Groverkss requested review of this revision.May 14 2022, 2:10 PM
arjunp accepted this revision.May 16 2022, 7:41 AM

Not sure how to think of the tradeoff between having this runtime Idkind::Local check and the minor duplication. On the other hand, with more IdKinds like range, etc., it probably becomes worth it to deduplicate.

This revision is now accepted and ready to land.May 16 2022, 7:41 AM
This revision was landed with ongoing or failed builds.May 17 2022, 9:15 PM
This revision was automatically updated to reflect the committed changes.