torch-mlir/external/iree-dialects
Sean Silva 0b7dbf5f81 Initial import of iree-dialects.
We plan on using these dialects "natively" as part of the npcomp backend
contract, and provide feedback to evolve them in IREE. Roughly speaking,
we can consider these dialects as "what's missing from upstream that we
think belongs in the general abstraction layer that npcomp's backend
contract targets".

We integrate them by just copying the relevant directory from the IREE
source tree (with `build_tools/update_iree_dialects.sh`). This avoids
adding IREE as a submodule, which is way too heavyweight (including
IREE itself, another copy of LLVM, TensorFlow, ...) and would give the
false impression of a source dependency rather than the lightweight (and
eventually versioned/stabilized) IR-level compatibility that we strive
for.
2021-08-11 13:00:04 -07:00
..
build_tools Initial import of iree-dialects. 2021-08-11 13:00:04 -07:00
include Initial import of iree-dialects. 2021-08-11 13:00:04 -07:00
lib Initial import of iree-dialects. 2021-08-11 13:00:04 -07:00
python Initial import of iree-dialects. 2021-08-11 13:00:04 -07:00
test Initial import of iree-dialects. 2021-08-11 13:00:04 -07:00
.gitignore Initial import of iree-dialects. 2021-08-11 13:00:04 -07:00
BUILD Initial import of iree-dialects. 2021-08-11 13:00:04 -07:00
CMakeLists.txt Initial import of iree-dialects. 2021-08-11 13:00:04 -07:00
README.md Initial import of iree-dialects. 2021-08-11 13:00:04 -07:00

README.md

IREE Dialects Project

Sources for IREE's public dialects (containing ops/types/attributes that are unique to IREE and can appear in compiler inputs).

This project is intended to be used via LLVM's external projects setup:

  • -DLLVM_EXTERNAL_PROJECTS=iree-dialects
  • -DLLVM_EXTERNAL_IREE_DIALECTS_SOURCE_DIR={this_directory}

It depends on the mlir project.