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

Transforming to LLVM IR #365

Open
edg-l opened this issue Nov 21, 2023 · 5 comments
Open

Transforming to LLVM IR #365

edg-l opened this issue Nov 21, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@edg-l
Copy link
Contributor

edg-l commented Nov 21, 2023

Do you know if its possible to use mlir-translate programatically within rust?

What i want to know is how to convert MLIR, all already transformed to llvm dialect, to llvm ir for use within the llvm api, e.g to compile to assembly, without using any tool like mlir-translate.

https://mlir.llvm.org/docs/Tutorials/Toy/Ch-6/#emitting-llvm-ir

My guess is the c api doesnt have this method?

opened this llvm/llvm-project#73008

@edg-l
Copy link
Contributor Author

edg-l commented Nov 22, 2023

I opened this pr on llvm llvm/llvm-project#73117

@raviqqe raviqqe added the enhancement New feature or request label Nov 23, 2023
@raviqqe
Copy link
Owner

raviqqe commented Nov 23, 2023

Yeah, we can definitely add the feature when the LLVM side supports it.

@edg-l
Copy link
Contributor Author

edg-l commented Nov 23, 2023

The pr got merged, so this will probably be in llvm 18

@gavrilikhin-d
Copy link

So is it supported by melior now?

@raviqqe
Copy link
Owner

raviqqe commented Jul 20, 2024

No, I don't think we made the change yet.

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

3 participants