We have an out-of-tree MLIR dialect and want to test our dialect with mlir-opt
. We don’t want to compile the whole MLIR project (since this makes it hard to distribute the dialect). Is it possible for us to leverage mlir-opt
in this case? Thanks!
In general you build your own mlir-opt
for testing your dialect / your project.
1 Like
I follow the practice here: llvm-project/mlir/examples/standalone/standalone-opt at release/14.x · llvm/llvm-project · GitHub
Your out-of-tree project depends on MLIR and not the other way round. So your original question doesn’t read meaningful at all.
Hey! Thanks for the comment. I was wondering if it is possible to link shared libraries to mlir-opt. But now I decide to build my own mlir-opt as Mehdi suggested.