Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared Library Build Option #33

Open
monowaranjum opened this issue Nov 27, 2023 · 2 comments
Open

Shared Library Build Option #33

monowaranjum opened this issue Nov 27, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@monowaranjum
Copy link

Hi, Thank you so much for the tutorial series. It is really great and helped me a lot to understand a few core concepts of MLIR framework.

I was wondering if you can also include a tutorial where you show the way to build the passes as standalone shared library and show the process to call load the dialect and the pass library from command line using mlir-opt. I think this would be a great addition to the already great tutorial series.

Thanks in advance.

@j2kun
Copy link
Owner

j2kun commented Nov 27, 2023

I was not aware this is possible. Where did you hear about it?

@monowaranjum
Copy link
Author

monowaranjum commented Nov 28, 2023

Hi. Thank you for the response. Here is the way it works in LLVM :

opt -load <shared-lib-of-some-pass.so> --<name-of-the-pass-registered-in-passmanager> <other-options> <input-ir-file>

Here is what was proposed similar for MLIR:

https://discourse.llvm.org/t/rfc-load-pass-plugin-for-mlir-opt/65049

Here is what I see when I run mlir-opt --help | grep plugin.

image

So I thought that this functionality may have been added. But I can not find any code example or documentation of this feature.

I built MLIR from source based on this commit: 28b27c1b10ae8d1f5b4fb9df691e8cf0da9be3f6

@j2kun j2kun added the enhancement New feature or request label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants