LLVM Discussion Forums

Modular compilation support?

Hello,

Very simple question here: does MLIR offer some support to modular compilation? I saw that it provides a notion of module. However:

  1. How can I import a module (its symbols) into another?
  2. What are the constructs allowing this?
  3. Is there some default mapping of modules to files?

I’d like to know what best practices are here.

Best,
Dumitru

Anything related to this seems to be entirely dependent on the content of the module: it is very specific to the type of IR you’re modeling.