IT lexicon › Programming › MLIR

MLIR

Programming På svenska → Updated: 2026-11-05
More info
Creator
Chris Lattner et al. (Google)
Released
Type
Compiler infrastructure
License
Apache 2.0 with LLVM exception
Website

A framework for building intermediate representations, where each level of abstraction is its own dialect and lowering between them happens step by step.

LLVM IR sits at roughly the level of C. Anything more abstract — tensor operations, loop nests, hardware-specific primitives — had to be modelled by each project on its own before lowering to LLVM, so everyone built a private IR with private bugs. MLIR, presented by Chris Lattner and colleagues at Google in 2019 and contributed to the LLVM project the same year, turns that rebuilding into a reusable mechanism.

A dialect defines its own operations and types, and all dialects share the SSA structure, the tooling and the pass infrastructure. One program can mix several levels at once and be lowered a piece at a time. TensorFlow, Mojo, IREE and OpenAI's Triton are built on it. "Multi-level" is no exaggeration; neither is the observation that the dialects now need a map of their own.

← Back to the lexicon