HomePhabricator

[mlir] Make Python bindings installable.

Authored by stellaraccident on Oct 9 2020, 3:50 PM.

Description

[mlir] Make Python bindings installable.

  • Links against libMLIR.so if the project is built for DYLIBs.
  • Puts things in the right place in build and install time python/ trees so that RPaths line up.
  • Adds install actions to install both the extension and sources.
  • Copies py source files to the build directory to match (consistent layout between build/install time and one place to point a PYTHONPATH for tests and interactive use).
  • Finally, "import mlir" from an installed LLVM just works.

Differential Revision: https://reviews.llvm.org/D89167

Details

Committed
stellaraccidentOct 12 2020, 3:17 PM
Differential Revision
D89167: [mlir] Make Python bindings installable.
Parents
rGa324d8f964bf: [AArch64] Add tests for 128-bit shift variations.
Branches
Unknown
Tags
Unknown