commit | 0d81062a8ffabf3561e9d6cc758b8250b2f607d3 | [log] [tgz] |
---|---|---|
author | bjacob <benoitjacob@google.com> | Thu Jun 01 14:32:37 2023 -0400 |
committer | GitHub <noreply@github.com> | Thu Jun 01 14:32:37 2023 -0400 |
tree | 6c309112c47a9900c3c44b39c17168ee5bd6ad2a | |
parent | 9cf4f917d6f4e762c726265310dd46658a0655af [diff] |
Fixes and simplifications to CPU-data handling (#13881) In DispatchABI.cpp: * Was not checking if CPU feature bits in the schema applied to the target architecture. * Was not checking if CPU feature bits belonged to field 0 even though the current code only handles that. Other fields are currently unused but at least now we will get an assert failure if that changes. * Was building a vector of bits, then creating one `LLVM::OrOp`for each bit. Instead, why not OR those bits in C++ and create a single `LLVM::OrOp` with the resulting OR-ed value? * Was not checking that the first character of each feature string was a `'+'` before dropping it. * Was room for simplification in how the schema was used. Additionally, folding into this PR a simplification to `iree-cpuinfo` (a standalone tool to report the host CPU's features exactly as detected by IREE). It was quadratic-time, as it unnecessarily called `iree_cpu_lookup_data_by_key` for each feature.
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.