[PATCH] D61446: Generalize the pass registration mechanism used by Polly to any third-party tool

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 08:34:43 PST 2019


Meinersbur added a comment.

In D61446#1763278 <https://reviews.llvm.org/D61446#1763278>, @serge-sans-paille wrote:

> @Meinersbur I have a strange symbol issue when activating the GPu part: https://github.com/serge-sans-paille/llvm-project/pull/2/checks?check_run_id=324901896#step:5:4888
>  Any hint?


I mentioned this already here: https://groups.google.com/d/msg/polly-dev/vxumPMhrSEs/uE7OfPojCwAJ

Polly uses `llvm::Linker`, which is not used in `opt` and hence thrown out when statically linking the `opt` executable. Try `-DLLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON`.

Note this never worked before, so you don't need to bother for this patch. It's what I think is a flaw in the plugin system with statically linked executables.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61446/new/

https://reviews.llvm.org/D61446





More information about the llvm-commits mailing list