Integrate LLVM to llvm/llvm-project@3ef8b8cd3ba3 (#25382)

Bumps `third_party/llvm-project` from 8c8449e58ba8 (+ carried revert) to
upstream 3ef8b8cd3ba3 (832 commits). No commits are carried on top of
upstream anymore.

**LLVM branch:** `sm-iree-integrates/llvm-20261130` at 3ef8b8cd3ba3. It
is currently only in my fork
(https://github.com/L-roro/llvm-project/tree/sm-iree-integrates/llvm-20261130)
because I don't have write access to `iree-org/llvm-project`. **Could a
maintainer please mirror it to `iree-org/llvm-project`?** CI can't check
out the submodule until then. The branch is plain upstream `main`, so
from any up-to-date LLVM checkout:

```bash
git push https://github.com/iree-org/llvm-project.git 3ef8b8cd3ba3ccb7c1bf051f2a241bef3910d3e2:refs/heads/sm-iree-integrates/llvm-20261130
```

## Dropped revert

Drops the carried revert of llvm/llvm-project@d71acc8f3779 ("[mlir]
Avoid eager invalidation in `DeadnessCache`", llvm/llvm-project#244443).
#25349 fixed the Flow pattern the revert was added for.

Explanation -> While the pattern rewriter is running, it keeps a list of
the IR it has just created or changed. If code deletes some of that IR
behind its back, without telling the rewriter, the list points to freed
memory and the compiler can crash.

With the revert gone, ASan found more patterns that delete
rewriter-created blocks behind the rewriter's back, causing
heap-use-after-free in `DeadnessCache::flushInvalidations()`.
Additionally, three places (PCF structural lowering, PCF bufferization,
BitcastUnsupportedElementTypes) used the same risky pattern and, even
though they did not trigger ASan (because they are not being used inside
a greedy rewriter), I moved them to the same helper.

## Other adaptations

- llvm/llvm-project@c4675ee7d4d9 ("[mlir][arith] Only fold
truncf(sitofp(x)) to sitofp(x) when the first conversion is exact",
llvm/llvm-project#233536):
`convert_qdq_to_integer_math_scale_range.mlir` now expects `sitofp i32
to f32` + `truncf` for the f16 result.
- The same change no longer folds `sitofp i64 to f64` + `truncf f64 to
f32` in host code. and `ArithToVM` had no `truncf` lowering. Added one:
`vm.trunc.f64.f32` with the f64 extension, a no-op when the VM truncates
f64 to f32. Also had to fix the `vm.trunc.f64.f32` constant folder,
which was never used before and called `convertToFloat()` on an f64
value (which, despite the name, does not convert between formats; it
only reads a value that is already single precision so we need to round
the f64 value to f32 explicitly).
- With that lowering, `test_maxpool_2d_same_lower` and
`test_maxpool_2d_same_upper` now compile and match expected outputs, so
they are removed from `expected_compile_failures` in the ONNX configs CI
runs (cpu_llvm_sync O0/O2, hip rdna3 O3, hip rdna4 O3).

Assisted-by: Claude Code

Signed-off-by: L-roro <rodriguez@roofline.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
23 files changed
tree: 1bd9bdded102278821b8df2d45c7d1e46bfe3873
  1. .github/
  2. build_tools/
  3. compiler/
  4. core/
  5. docs/
  6. experimental/
  7. integrations/
  8. lib/
  9. llvm-external-projects/
  10. runtime/
  11. samples/
  12. tests/
  13. third_party/
  14. tools/
  15. .bazel_to_cmake.cfg.py
  16. .bazelignore
  17. .bazelrc
  18. .bazelversion
  19. .clang-format
  20. .git-blame-ignore-revs
  21. .gitattributes
  22. .gitignore
  23. .gitmodules
  24. .pre-commit-config.yaml
  25. .yamllint.yml
  26. AUTHORS
  27. BUILD.bazel
  28. CITATION.cff
  29. CMakeLists.txt
  30. configure_bazel.py
  31. CONTRIBUTING.md
  32. GOVERNANCE.md
  33. LICENSE
  34. MAINTAINERS.md
  35. MODULE.bazel
  36. pytest.ini
  37. README.md
  38. RELEASING.md
README.md

IREE: Intermediate Representation Execution Environment

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 Discord Status pre-commit OpenSSF Best Practices

Project news

Project status

Release status

Releases notes are published on GitHub releases.

PackageRelease status
GitHub release (stable)GitHub Release
GitHub release (nightly)GitHub Release
iree-base-compilerPyPI version
iree-base-runtimePyPI version

For more details on the release process, see https://iree.dev/developers/general/release-management/.

Build status

CI PkgCI

Nightly build status

Operating systemBuild status
LinuxCI - Linux arm64 clang
macOSCI - macOS arm64 clang

For the full list of workflows see https://iree.dev/developers/general/github-actions/.

Communication channels

Related project channels

  • MLIR topic within LLVM Discourse: IREE is enabled by and heavily relies on MLIR. IREE sometimes is referred to in certain MLIR discussions. Useful if you are also interested in MLIR evolution.

Architecture overview

IREE Architecture IREE Architecture

See our website for more information.

Presentations and talks

Community meeting recordings: IREE YouTube channel

DateTitleRecordingSlides
2025-06-10Data-Tiling in IREE: Achieving High Performance Through Compiler Design (AsiaLLVM)recordingslides
2025-05-17Introduction to GPU architecture and IREE's GPU CodeGen Pipelinerecordingslides
2025-02-12The Long Tail of AI: SPIR-V in IREE and MLIR (Vulkanised)recordingslides
2024-10-01Unveiling the Inner Workings of IREE: An MLIR-Based Compiler for Diverse Hardwarerecording
2021-06-09IREE Runtime Design Tech Talkrecordingslides
2020-08-20IREE CodeGen (MLIR Open Design Meeting)recordingslides
2020-03-18Interactive HAL IR Walkthroughrecording
2020-01-31End-to-end MLIR Workflow in IREE (MLIR Open Design Meeting)recordingslides

License

IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.