ModularM
Modular2y ago
2 replies
Darkmatter

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.
Was this page helpful?