| commit | f8efefed13364fe29fd36dc137c84529fc6707ba | [log] [tgz] |
|---|---|---|
| author | bjacob <benoitjacob@google.com> | Tue Feb 28 15:28:31 2023 -0500 |
| committer | GitHub <noreply@github.com> | Tue Feb 28 20:28:31 2023 +0000 |
| tree | 7c0ca1ec31fc10df36a08053e3da6d31dcfc9ec8 | |
| parent | 26fc3994d95e55b6c5bb4f760d64470cea67b5da [diff] |
Rework `cpu.c` to make room for x86 path (#12395) The main change is to switch the nesting of the `#if`'s. This used to be first `#if` on platform/OS, then `#if` on CPU architecture. But actually the fact that the platform/OS needs to be involved is a ARM-ism; it is the CPU architecture that drives the higher level approach. And structuring the code this way makes it possible to later split it into separate files for each architecture (not doing it for now because this opens questions of what we do with the Bazel+CMake build system, so deferring that until there's a concrete need). And even for the existing code, having the `#if` on CPU architecture at the top results in simplification as a couple of platform/OS-centric functions don't need a fallback anymore now that they only exist within a CPU-architecture-specific section. Also flattened some helpers, IMO making code more readable. Also renamed cpu_data identifiers to be shorter.
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.