This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Presburger] reintroduce int64_t versions of floorDiv, ceilDiv in mlir::presburger namespace
ClosedPublic

Authored by arjunp on Jul 14 2022, 4:41 PM.

Details

Summary

This is useful because MPInt.h defines identically-named functions that
operate on MPInts, which would otherwie become the only candidates of
overload resolution when calling e.g. ceilDiv from the mlir::presburger
namespace (iff MPInt.h is included). So to access the 64-bit overloads, an
explict call to mlir::ceilDiv would be required. This patch adds using
declarations allowing overload resolution to transparently call the right
function.

Diff Detail

Event Timeline

arjunp created this revision.Jul 14 2022, 4:41 PM
arjunp requested review of this revision.Jul 14 2022, 4:41 PM
This revision is now accepted and ready to land.Jul 15 2022, 8:49 AM
This revision was landed with ongoing or failed builds.Jul 15 2022, 9:29 AM
This revision was automatically updated to reflect the committed changes.