Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.49 KB

File metadata and controls

53 lines (37 loc) · 1.49 KB

Verified Intermediate Representation

VeIR is a compiler infrastructure written in Lean that offers both an MLIR-style imperative design and (optional) ITP-level verification. VeIR connects with MLIR via the MLIR textual format, making it easy to combine MLIR and VeIR tooling.

VeIR Features Complete Verified
MLIR core data structures (block, operation, region) 🔒
define dialects ✅ (basic)
pass infrastructure
peephole rewriter
peephole rewriter (declarative)
interpreter framework

Testing

Our testing framework is split into two parts: unit tests written in Lean and FileCheck tests for the command line tool veir-opt.

Unit Tests

Run the unit tests with:

lake test

FileCheck Tests

FileCheck tests require uv to be installed.

First, install dependencies:

uv sync

Then run the tests:

uv run lit Test/ -v

Running the benchmarks

lake exe run-benchmarks add-fold-worklist