This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Split out Python bindings entry point into a separate file
ClosedPublic

Authored by ftynse on Apr 22 2021, 8:33 AM.

Details

Summary

This will allow the bindings to be built as a library and reused in out-of-tree
projects that want to provide bindings on top of MLIR bindings.

Diff Detail

Event Timeline

ftynse created this revision.Apr 22 2021, 8:33 AM
ftynse requested review of this revision.Apr 22 2021, 8:33 AM
stellaraccident accepted this revision.Apr 22 2021, 8:45 AM

Mind starting a discourse thread on what the end state is? The circt folks and I were discussing this and would be good to have some shared understanding. There are also some (very) thorny issues that get opened with some of the options.

This revision is now accepted and ready to land.Apr 22 2021, 8:45 AM
mikeurbach accepted this revision.Apr 27 2021, 12:47 PM

The diff shown by phab confused me at first, but I think this looks good.

mlir/lib/Bindings/Python/IRModule.cpp
1

nit: looks like the comment was updated here but not the filename

ftynse marked an inline comment as done.Apr 29 2021, 2:15 AM