Is there an equivalent to cross-language link time optimization via LLVM?

Yes, Enzyme works at the LLVM level, which means it couldn’t care less about the frontend language: as long as it receives LLVM IR/bitcode, it can do anything. And Enzyme is “just” an optimisation pass, so the same applies to other passes.

If you want a more positive example:

1 Like