tree: 1d09fc6bc2904ea0cf5e5d3a417bf505ab1edbf4 [path history] [tgz]
  1. bindings/
  2. plugins/
  3. src/
  4. .clang-format
  5. BUILD.bazel
  6. CMakeLists.txt
  7. lit.cfg.py
  8. pyproject.toml
  9. README.md
  10. setup.py
  11. version.json
compiler/README.md

IREE Compiler

This directory contains the IREE compiler sources.

Standalone Python Builds

The included setup.py file can be used to build Python binaries or directly install the IREE compiler API. Do note that the compiler is quite heavy and unless you are developing it and on a significant machine, you will want to use released binaries.

There are two ways to build/install Python packages:

  • Directly from the source tree (this is how official releases are done).
  • From the build directory while developing.

It is recommended to use your favorite method for managing virtual environemnts instead of modifying the system installation.

Only relatively recent versions of pip are supported. Always use the latest via pip install --upgrade pip.

You can build either from the source or build tree (assumes that CMake has been configured and the project built). The latter is typically used by project developers who are already setup for development and want to incrementally generate Python packages without rebuilding.

To build a wheel that can be installed on the same Python version and OS:

python -m pip wheel compiler/

To directly install:

python -m pip install compiler/