commit | 1c47067b9f7356dcadfbdc882dd78b852f8fb5ee | [log] [tgz] |
---|---|---|
author | Ben Vanik <benvanik@google.com> | Mon Nov 22 09:22:47 2021 -0800 |
committer | GitHub <noreply@github.com> | Mon Nov 22 09:22:47 2021 -0800 |
tree | fa0aaebff50dfa188a41d1ab3122dc922ad924e7 | |
parent | 122afeb4eb9afce62e2643f814d829289b22e366 [diff] |
Adding alignment analysis and propagation into codegen. (#7714) This adds stream.alignment attributes to !stream.binding and index operands in dispatch functions and stream.values attributes to integer operands. The alignment on bindings indicates the base binding offset alignment while the alignment on index operands indicates the alignment of any offset into a binding they may represent. The values are all potential values that may be passed in the operand when knowable. The final piece required is to use this information in the codegen backends, however the memref.assume_alignment op doesn't seem to do anything today. This would in theory plumb the information through but there are likely better ways to use this information: ``` auto alignment = baseBuffer.calculateAlignment(); b.create<memref::AssumeAlignmentOp>(op->getLoc(), baseBuffer, alignment.value()); ```
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.