Stream: t-compiler

Topic: load Polly as plugin

Alexander Droste (Sep 30 2019 at 17:30, on Zulip):

Hi all!

Is it possible to load compiler plugins through rustc in some way? For reference , Clang allows for clang -Xclang -load -Xclang whereas opt provides opt -load in order to enable optimization passes provided through plugins. (link to Polly:

Alexander Droste (Sep 30 2019 at 17:49, on Zulip):

Running rustc -C llvm-args=--help | grep load , it seems the --load flag is stripped (as opposed to --load being available when running opt --help). Is there a specific reason for that?

gnzlbg (Oct 01 2019 at 09:24, on Zulip):

You can try to look in the GitHub issues / PRs about Polly - some people put quite a bit of effort integrating it into rustc

Alexander Droste (Oct 01 2019 at 10:22, on Zulip):

Thanks, yeah I did see that. Though, for me still question is why not allow for compiler plugins in general. That seems like a low hanging fruit without adding a lot of maintenance cost to the Rust compiler. (Also interesting to see the discussion on the LLVM mailing list on that: where Polly will not become part of mainline soon .)

Last update: May 24 2020 at 23:40UTC