commit | cac390debbe49523e6d1255021c15cdd5223eeb8 | [log] [tgz] |
---|---|---|
author | Scott Todd <scott.todd0@gmail.com> | Tue Jan 21 20:27:51 2025 -0800 |
committer | GitHub <noreply@github.com> | Tue Jan 21 20:27:51 2025 -0800 |
tree | 859a4758dcce6d4c741ba6e1a0e1af4d45666545 | |
parent | 525389c12ba50bf122841f6b7086865e6c4c7664 [diff] |
Fix or work around gcc-14 warnings/errors. (#19758) Fixing or working around a few "warnings as errors" on gcc-14 (released May 2024). These are also causing the aarch64 nightly distribution builds to fail. Note that we also have some new warnings as errors coming in clang-20 (not yet released): https://clang.llvm.org/docs/ReleaseNotes.html#improvements-to-clang-s-diagnostics. ### dangling-reference Not sure how we want to handle these. We have a bunch of code in IREE and torch-mlir that uses temporaries in loop headers, which this warning does not like. For now just disabling the warning. ``` /iree/compiler/src/iree/compiler/API/Internal/Diagnostics.cpp: In function 'std::optional<mlir::CallSiteLoc> mlir::iree_compiler::embed::{anonymous}::getCallSiteLoc(mlir::Location)': /iree/compiler/src/iree/compiler/API/Internal/Diagnostics.cpp:30:57: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 30 | for (auto subLoc : cast<FusedLoc>(loc).getLocations()) { | ^ /iree/compiler/src/iree/compiler/API/Internal/Diagnostics.cpp:30:56: note: the temporary was destroyed at the end of the full expression 'llvm::cast<mlir::FusedLoc, mlir::Location>(loc).mlir::FusedLoc::getLocations()' 30 | for (auto subLoc : cast<FusedLoc>(loc).getLocations()) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ ``` ### template-id-cdtor These looked legit and were easy enough to fix. ``` /iree/compiler/src/iree/compiler/Dialect/LinalgExt/Transforms/ConvertConv2DToWinograd.cpp:159:33: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor] 159 | ConvertConvToWinograd<ConvOp>(MLIRContext *context, bool replaceAllConvs, | ^~~~~~~~~~~ /iree/compiler/src/iree/compiler/Dialect/LinalgExt/Transforms/ConvertConv2DToWinograd.cpp:159:33: note: remove the '< >' ```
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.
Releases notes are published on GitHub releases.
Package | Release status |
---|---|
GitHub release (stable) | |
GitHub release (nightly) | |
Python iree-base-compiler | |
Python iree-base-runtime |
Operating system | Build status |
---|---|
Linux | |
macOS | |
macOS | |
Windows |
For the full list of workflows see https://iree.dev/developers/general/github-actions/.
See our website for more information.
Community meeting recordings: IREE YouTube channel
Date | Title | Recording | Slides |
---|---|---|---|
2021-06-09 | IREE Runtime Design Tech Talk | recording | slides |
2020-08-20 | IREE CodeGen (MLIR Open Design Meeting) | recording | slides |
2020-03-18 | Interactive HAL IR Walkthrough | recording | |
2020-01-31 | End-to-end MLIR Workflow in IREE (MLIR Open Design Meeting) | recording | slides |
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.