commit | 6e825ae7a65f8984e901cb548dfa01ebce8eadc1 | [log] [tgz] |
---|---|---|
author | MaheshRavishankar <1663364+MaheshRavishankar@users.noreply.github.com> | Mon Oct 25 13:37:52 2021 -0700 |
committer | GitHub <noreply@github.com> | Mon Oct 25 13:37:52 2021 -0700 |
tree | 0b112b63fa05208ab93f75e8acfde5ac3de8ff2f | |
parent | 95a0478a36da253f2a27b1c17f8d16d4b34baa63 [diff] |
Move `LoweringConfigAttr` and `TranslationInfoAttr` to `AttrDef`. (#7385) Previously these were defined using StructAttr which is limited in its capabilities. Moving them to AttrDef allows this to be more robust and verifiable. Also allows specification of custom builder methods that remove a lot of the bioler plate. In addition to the above, this change also adds a new attribute, CompilationInfoAttr. This is the attribute that when added to operations like linalg.matmul/linalg.*conv* (or their mhlo/tosa couterparts) use the information from the specified attribute instead of the default heuristics. This allows an external search to search for better values than the defaults used. While there are some preliminary verifies in place, additional verifiers are needed to ensure that the user-provided attribute has all the information needed (and in a consistent manner) to achieve correct compilation. In addition, all these attributes are moved from the HAL dialect into a new IREECodegenDialect added to compiler/Codegen/Dialect. This change also brings in some code from D111594 to allow for this to land without having to wait for that patch to land.
IREE (Intermediate Representation Execution Environment, pronounced as “eerie”) is an MLIR-based end-to-end compiler and runtime that lowers Machine Learning (ML) models to a unified IR that scales up to meet the needs of the datacenter and down to satisfy the constraints and special considerations of mobile and edge deployments.
See our website for project details, user guides, and instructions on building from source.
IREE is still in its early phase. We have settled down on the overarching infrastructure and are actively improving various software components as well as project logistics. It is still quite far from ready for everyday use and is made available without any support at the moment. With that said, we welcome any kind of feedback on any communication channels!
See our website for more information.
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.