youben11 / toy-compiler

MLIR project for debugging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

toy-compiler

Minimal project to reproduce an issue reported here

Building the project

You first need to build LLVM on your machine with Python bindings ON, and have exported the PYTHONPATH to use them.

$ mkdir build
$ export LLVM_PROJECT=/path/to/your/llvm
$ make build
$ make python
$ export PYTHONPATH=$PYTHONPATH:$PWD/build/python

then you can run the test_python.py script, and should get an error that the custom dialect type can't be used inside a MemRef.

About

MLIR project for debugging


Languages

Language:CMake 46.2%Language:C++ 33.1%Language:C 11.4%Language:Python 8.1%Language:Makefile 1.3%