commit | af14b98abde398c96832bb84c58cd08db69c2180 | [log] [tgz] |
---|---|---|
author | bjacob <benoitjacob@google.com> | Wed Sep 13 15:53:27 2023 -0400 |
committer | GitHub <noreply@github.com> | Wed Sep 13 15:53:27 2023 -0400 |
tree | 115a39824dd012e2a9aab81738d09bbada8c4826 | |
parent | 731386735808a18351eeb480b78b8c1686f815c3 [diff] |
Tentatively work around MSVC compiler bug in CPUID (#14968) The `noinline` is a tentative work-around for what might be a MSVC miscompile. The symptom is that MSVC builds incorrectly report some CPU features as supported. This only happens for CPU feature bits in the EDX output register, which would make sense if the compiler omitted to save that output register after CPUID instructions. The other things done in this PR are: 1. Use `memcpy` for proper bit-casting, don't just cast `uint32_t` to `int` and back: that is UB when not in `int` range, which happens concretely here with compile-time constant values (hence the compiler can actually see that's UB): `eax=0x80000000u`). 2. Drop some futile `inline` keywords.
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.