arey is a custom MLIR dialect for debugging MLIR Programs.
It provides simple ops like arey.print, arey.assert etc to make your life easier when hunting bugs.
Think of it as printf debugging made first-class in MLIR.
arey.print– printf-style debugging, inserted exactly where you write it.arey.assert– runtime assertions with custom messages.
You’ll need a working build of LLVM + MLIR first.
Follow the MLIR getting started guide to build them.
Then build arey:
# Clone this repo
git clone https://github.com/your-username/arey
cd arey
# Create build directory
mkdir build
cd build
# Configure with CMake
cmake ..
# Build the project
makeIf everything works, you’ll get a demo binary at:
./bin/arey-opt