commit | 32057462c50865767d4bb4c34a69dc2d3fc34c4e | [log] [tgz] |
---|---|---|
author | Stella Laurenzo <stellaraccident@gmail.com> | Mon Jul 25 13:28:03 2022 -0700 |
committer | GitHub <noreply@github.com> | Mon Jul 25 13:28:03 2022 -0700 |
tree | e39f7a26e7b338f30c08069aa7b555ab3e9e5851 | |
parent | 9efad13a8ca1fede30f3ad292275defd2a87e655 [diff] |
Use the new memref->util->vm path. (#9883) * Use the new memref->util->vm path. This was a little more involved than anticipated: * A number of type conversion issues and A->B->C issues in the patterns were fixed (only show up in type conversion settings). * The memref->util buffer path introduces initializers for rodata constants, whereas the old one short-circuited these directly to vm rodata. This highlighted missing VM support for optimizing such cases, and it was an issue because VMVX does not support initializers. We may want to fix that last part, but how I have it at least gets the conversion to the same IR as before once it runs through the pipeline. * The above alternate path highlighted a bad VM folding pattern which was not accounting for initializers and just folding to null (even though it had a value). Deleted (the new pass applies this optimization when it is correct to do so). * Still more that can be done, but this at least gets us to deleting the original and switching. * Linearize VMVX buffers to 1D, disallowing 0D. Aside from being one less thing to reason about, this interops with the invariants of the memref flattener and now lowers properly with the memref->util->vm flow. * Enable last remaining test that was blocked on 0D.
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.