As of rL329273, LLVM has a mechanism to load new-pm plugins in opt. Use
this API in Polly.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Hi Philip,
I am not sure what this means. Is this something that can already be tested? Or is this tested by the change in test/lit.site.cfg.in?
Best,
Tobias
The tests for this I added in a follow-up revision D45493, which, as you can see, is quite large. I wanted to keep the functional change here and the mechanical changes to the tests separate for better review.
So, this change here cannot be tested on its own.
OK. Then this LGTM.
Personally, I would add a minimal test cases that shows this works. But this is probably subjective. Feel free to add one or not.
test/lit.site.cfg.in | ||
---|---|---|
47–50 ↗ | (On Diff #141830) | Don't -load and -load-pass-plugin conflict? If the so is loaded twice into the address space, shoudn't some global symbols or cl::opt initializer clash? |
test/lit.site.cfg.in | ||
---|---|---|
47–50 ↗ | (On Diff #141830) | They don't! That's the beauty of this. Both mechanisms are built on top of DynamicLibrary, which guarantees that you can safely load the same shared library twice. |
test/lit.site.cfg.in | ||
---|---|---|
47–50 ↗ | (On Diff #141830) | Cool, I didn't know that. |