While working on our downstream project based on LLVM, we have identified the need to dynamically load LLVM passes during compilation. Apple Clang offers this possibility via -fpass-plugin option, which allows the driver to forward the plugin to LLVM. However, it seems that the Swift frontend/driver doesn't have a comparable feature.
I believe introducing a similar option to the Swift compiler might be beneficial, yet, before considering a patch in this direction, I would be grateful for a feedback from the community.