Replies: 1 comment 5 replies
-
Hi Jules, glad to hear from you.
yes, it is built and linked with Beaver's native library and I am still figuring out how to properly separate it.
is this separate C-libary linking your LLVM libraries? or it is calling |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @jackalcooper! I stumbled on this project as I'm working on similar stuff, in Julia. I'm much less far along, though, and this repository is extremely helpful and wonderfully documented. Thanks!
Specifically, I'm also looking into using an out-of-tree/exterior dialect in combination with the C api.
I've built the standalone example dialect and generated a separate C-libary, when I try to use this dialect from within Julia I run into trouble.
Did you ever run into similar issues, it seems like both CAPI's try to load a different builtin dialect?
I noticed that in your code,
mlirGetDialectHandle__elixir__
is actually part of the CAPI module itself. Does that mean this dialect is included in a monolithic MLIR build?I actually got around this issue by replacing all calls to
API.*
methods withStandalone.*
. This works, but extensibility is lost. e.g. when a second standalone dialect is introducedAnotherStandalone
, I can't just call into this module since this module is not aware of the firstStandalone
dialect.I'm curious to hear your thoughts!
Jules
Beta Was this translation helpful? Give feedback.
All reactions