« All posts

In-Depth Look at MLIR: Object Model, Dialects, and Transform Dialect

An in-depth exploration of MLIR; insights on object models, dialects, and the transform dialect.

A new article on MLIR provides a comprehensive overview for engineers familiar with compilers but not deeply versed in MLIR. It starts from the object model, covering the dialect system and the transition from tensor algebra to hardware. The transform dialect, where schedules are treated as first-class IR, stands out for its diffing and verification capabilities. An example demonstrates lowering an MLP block to real sm_90 PTX, alongside a custom dialect created in 28 lines of TableGen that generates 259 lines of C++.