2025 US LLVM Developers Meeting: Automating the search aspects of compiler engineerin @LLVMPROJ
2025 US LLVM Developers Meeting: Automating the search aspects of compiler engineerin  @LLVMPROJ
Uploaded November 2025 | Updated November 2026, 17 hours ago
2025 US LLVM Developers' Meeting

llvm.org/devmtg/2025-10

------

Title: Automating the search aspects of compiler engineering: IR for auto-tuning & beyond

Speaker: Rolf Morel

------

Slides: llvm.org/devmtg/2025-10/slides/technical_talks/morel.pdf

-----

This talk is about automating the mechanical bits of your job. The main ingredients:
1) encoding plans for pipeline/schedule-manipulations into an IR for pipelines/schedules, and
2) having tools automatically perform the optimization-through-considering-alternatives loop.

Consider an average compiler engineer's plan for an average day:
* Out of all possible optimizations, first try optimization F. Evaluate. If perf isn't there...
* Then tweak F's knobs. Evaluating each time.
* Try optimization G next. Evaluate.
* Then tweak G's knobs. Evaluate.
* Now try F;G. Tweak knobs. Evaluate.
* Then G;F. Tweak knobs. Evaluate.

Most of this is pretty repetitive and hence mechanizable. Except for formulating the plan - this is where you as an engineer are essential.

We build on MLIR's Transform-dialect [0], which exposes fine-grained transformations as operations which compose into schedules. (SSA-values fed into and produced by ops control transform ordering; parameters, i.e. attributes, are tweakable knobs.) We introduce transform ops with non-deterministic choice semantics. For example, an op's parameter can be the result of our new op which represents non-det selection among valid options. We go further: an op which chooses among regions to represent a choice between alternative sub-schedules. Further still: we employ SSA to encode that choices are tied together. E.g., we can encode that a sub-schedule later on should only be selected if a particular sub-schedule was chosen early on.

We demonstrate one approach to dealing with the non-determinism: a driver that obtains all choices - and their dependencies and constraints - and throws them to a solver. The solver selects a viable overall configuration which we use to rewrite the schedule so it no longer has non-determinism (to our knowledge, the first instance of a useful schedule IR rewrite). Thus obtained deterministic schedules are then automatically applied to payloads to obtain perf numbers, which we feed back into the solver for it to learn about the parameter space. The driver runs in a loop until a stopping criteria has been reached (e.g. until you come back into work in the morning).

Finally, we emphasize we go beyond
* auto-tuning, as we "reify" choices into (transform) IR and tune more than just parameters,
* auto-scheduling (systems which automatically compose transforms), as we allow the engineer to effectively specify templates with composition choices at just the places they would have considered in the course of the day.

In short, our approach enables both expressiveness and controllable tractability.

-----

Videos Edited by Bash Films: BashFilms.com
2025 US LLVM Developers Meeting: Automating the search aspects of compiler engineerin2025 EuroLLVM - How to bring your Neural Network into Upstream MLIR Dialects2025 AsiaLLVM - Improvements to LoopInterchange to accelerate vectorization2026 EuroLLVM - Apple GPU Support in Mojo2026 EuroLLVM - Compact Unwind Information for ELF2025 AsiaLLVM - Reflection of standard attributes in Clang2025 EuroLLVM - Bridging LLVM and SPIR-V for Heterogeneous Computing2025 EuroLLVM - How to trust your peephole rewrites: automatically verifying for arbitrary width!2026 EuroLLVM - Coverage directed codebase reduction for the procedural generation of LIT tests2025 AsiaLLVM - Improving LLVM Backend Development with a New TableGen Language Server2026 EuroLLVM - Whats new in LLDB on Windows2025 EuroLLVM - Advances in Function Merging and Symbolication
LLVM |

2025 US LLVM Developers' Meeting: Automating the search aspects of compiler engineerin

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER