Is there any documentation for Mojo MLIR dialect(s)?

I have embarked on a perhaps foolish quest make calling into C easier by using mlir-translate to import LLVM IR (since clang isn't MLIR ready yet). This does involve a bit of -fdebug-macro as well, and converting those into constants for Mojo. While I can infer some things from error messages, proper documentation would make this much easier. The intention is to make liberal use of inline MLIR for function bodies, and then do my best to translate structs, function signatures, and constants.
1 Reply
Darkmatter
Darkmatter4mo ago
This will look closer to Zig's translate-c than Rust's bindgen, just with much rougher function bodies.
Want results from more Discord servers?
Add your server