afrighetto
(Antonio Frighetto)
1
Hello,
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.
Thank you.
Do you mean re-exposing Clang's -fpass-plugin through the Swift driver, or do you mean something specific to Swift?
Doug
afrighetto
(Antonio Frighetto)
3
Do you mean re-exposing Clang's -fpass-plugin through the Swift driver, or do you mean something specific to Swift?
Yes, I mean providing the Swift driver (and frontend) with Clang's -fpass-plugin option (mimic Clang's behaviour). Sorry for not clarifying it better.