This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add Python bindings for IntegerSet
ClosedPublic

Authored by ftynse on Jan 26 2021, 4:26 AM.

Details

Summary

This follows up on the introduction of C API for the same object and is similar
to AffineExpr and AffineMap.

Diff Detail

Event Timeline

ftynse created this revision.Jan 26 2021, 4:26 AM
ftynse requested review of this revision.Jan 26 2021, 4:26 AM
stellaraccident accepted this revision.Jan 26 2021, 7:55 AM

Unrelated: the IRModules.cpp file is getting quite large and slow to compile. Any objection to splitting it into a few pieces?

mlir/lib/Bindings/Python/IRModules.cpp
4367

I believe the eq method should return False on mismatched types, not throw. There is a simple overload that does it: see other examples in this file.

4415

Nit: shouldn't pt args be snake case? (Here and below)

mlir/test/Bindings/Python/ir_integer_set.py
37

Check intended? (Here and below)

This revision is now accepted and ready to land.Jan 26 2021, 7:55 AM
ftynse marked 3 inline comments as done.Jan 26 2021, 8:31 AM

Unrelated: the IRModules.cpp file is getting quite large and slow to compile. Any objection to splitting it into a few pieces?

I was going to propose the same thing.

ftynse updated this revision to Diff 319307.Jan 26 2021, 8:32 AM

Address review

This revision was landed with ongoing or failed builds.Jan 26 2021, 8:33 AM
This revision was automatically updated to reflect the committed changes.