[PATCH] D33515: Fix the ManagedStatic list ordering when using DynamicLibrary::addPermanentLibrary.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 25 12:40:12 PDT 2017
efriedma added a comment.
> addGlobalExtension is documented to be used by plugins, where you are using it for a statically linked lib.
polly has historically worked as a plugin. In this context, polly isn't technically a "plugin" in the sense that it's not dynamically loaded, but it works like a plugin in every other sense (using the same extension points a plugin would use to integrate with LLVM).
> Add an argument to RegisterStandardPasses that will choose a call to addGlobalExtension or addExtension.
addGlobalExtension is static, addExtension is not; I don't follow how this would work.
> Make RegisterManagedStatic and llvm_shutdown explicitly re-initialize/destroy the DynamicLibrary state.
This should work.
https://reviews.llvm.org/D33515
More information about the llvm-commits
mailing list