Hi all,
I put together a small Cookiecutter template for generating out-of-tree MLIR projects that are focused on building a custom optimizer (dialect + passes + mlir-opt-style driver):
GitHub | mlir-optimizer-template
The goal is to make it easy to spin up a clean project that:
- defines a dialect
- registers passes
- builds a standalone optimizer binary
- includes example IR and basic testing scaffolding
- builds against an existing MLIR installation
There are a few standalone dialect templates out there, but I wanted something slightly more aimed toward: āIām building a research optimizer or experimental compiler and want structure immediately.ā
1 Like
Cool; nice follow-up to the classic https://github.com/jmgorius/mlir-standalone-template
From: Cameron Durbin notifications@llvm.discoursemail.com
Date: Tuesday, March 3, 2026 at 9:06 AM
To: Muthu Annamalai mannamalai@cornami.com
Subject: [EXTERNAL] [LLVM] [MLIR] Cookiecutter template for out-of-tree MLIR optimizer projects
Hi all,
I put together a small Cookiecutter template for generating out-of-tree MLIR projects that are focused on building a custom optimizer (dialect + passes + mlir-opt-style driver):
GitHub | mlir-optimizer-template
The goal is to make it easy to spin up a clean project that:
- defines a dialect
- registers passes
- builds a standalone optimizer binary
- includes example IR and basic testing scaffolding
- builds against an existing MLIR installation
There are a few standalone dialect templates out there, but I wanted something slightly more aimed toward: āIām building a research optimizer or experimental compiler and want structure immediately.ā
Visit Topic or reply to this email to respond.
To unsubscribe from these emails, click here.