commit | 807da25704b2605177cefb449d2df9901674f166 | [log] [tgz] |
---|---|---|
author | qcolombet <quentin.colombet@gmail.com> | Mon Jun 12 10:59:46 2023 +0200 |
committer | GitHub <noreply@github.com> | Mon Jun 12 10:59:46 2023 +0200 |
tree | 19e024aedd51dc8d10c3ba4e96c9fe8bf3a50bef | |
parent | cc43680728795cb7aa87999ffecca8ec10bed682 [diff] |
[ConvertToLLVM] Don't choke on alloc of memref of index (#14002) Prior to this patch the compiler would crash on alloc of memrefs of index on shared memory, because we would try to get the bitwidth of the index type as if it was an integer or a floating point type. The bitwidth of the index type is actually carried by the datalayout of the module. Update the code to query the datalayout to get the bitwidth. Note: This particular pattern is called as part of convert-to-nvvm. In that pass we actually lower the index type to an integer type, but we do it after having lowered the `alloc`s from shared memory, i.e., where the code is choking.
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.