Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 540 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 540 Bytes

MLIR Interpreter (Multi-Level Interpreter)

Out-of-Tree Interpreter for executing MLIR code. Based on work originally published by @lchien

Building

mkdir build && cd build
cmake -G Ninja -DLLVM_DIR=/path/to/llvm/install/prefix -DMLIR_DIR=/path/to/mlir/install/prefix -DCMAKE_EXPORT_COMPILE_COMMANDS=On ../

Testing

  • mli executable takes in a .mlir file and runs the interpreter on it.

Example: build/src/mli <path-to-mlir-file> --args=5,10