Skip to content

VimalWill/MLIR-Sample-Pass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLIR SAMPLE PASS

Sample template for MLIR-based pass for type-check. it checks the functions "args" are in INT-8 data-type.

Build Instructions

assuming the environment already build with MLIR

$ export MLIR_DIR=~/llvm-project/build/lib/cmake/mlir
$ mkdir build && cd build 
$ cmake ..
$ make -j32 

finally, the logic can be tested as following,

./bin/sample-opt ../test/invalid.mlir --sample-typecheck

About

Sample Template for MLIR Pass

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published