[PATCH] D61446: Generalize the pass registration mechanism used by Polly to any third-party tool
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 11 08:14:34 PDT 2019
serge-sans-paille updated this revision to Diff 204073.
serge-sans-paille marked 3 inline comments as done.
serge-sans-paille added a comment.
@beanz : In addition to your suggested changes, I've renamed the cmake utility into `add_llvm_pass_plugin` to match other functions from `AddLLVM.cmake`
@Meinersbur : thanks a lot for the polly layout explanation. I've slighlty updated your suggection like this:
PollyCore.a:
RegisterPasses.o
polly_static_entry_point.cpp
LLVMPolly.so (for use with -load mechanism)
RegisterPasses.o
polly_plugin_entry_point.cpp
initialization is done in both cases through a static initializer in `RegisterPasses.cpp`. `llvmGetPassPluginInfo` is only available in `polly_plugin_entry_point.cpp`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61446/new/
https://reviews.llvm.org/D61446
Files:
clang/tools/driver/CMakeLists.txt
clang/tools/driver/cc1_main.cpp
llvm/CMakeLists.txt
llvm/cmake/modules/AddLLVM.cmake
llvm/docs/WritingAnLLVMPass.rst
llvm/include/llvm/Config/llvm-config.h.cmake
llvm/tools/CMakeLists.txt
llvm/tools/bugpoint/CMakeLists.txt
llvm/tools/bugpoint/bugpoint.cpp
llvm/tools/opt/CMakeLists.txt
llvm/tools/opt/NewPMDriver.cpp
llvm/tools/opt/opt.cpp
llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
polly/include/polly/RegisterPasses.h
polly/lib/CMakeLists.txt
polly/lib/Polly.cpp
polly/lib/Support/RegisterPasses.cpp
polly/test/Unit/lit.site.cfg.in
polly/test/lit.site.cfg.in
polly/test/update_check.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61446.204073.patch
Type: text/x-patch
Size: 21084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190611/083cd293/attachment.bin>
More information about the llvm-commits
mailing list