Fix several issues with compiler extensions
authorserge-sans-paille <sguelton@redhat.com>
Fri, 10 Jan 2020 09:05:30 +0000 (10:05 +0100)
committerserge-sans-paille <sguelton@redhat.com>
Fri, 10 Jan 2020 09:10:20 +0000 (10:10 +0100)
commit346de9b67228f42eb9b55fa3b426b5dedfdb1d40
treed7c3e318b3af41b1d65bf2863bb4c795d382394b
parentabfa27e4f04dd84774bcfe15783942e21be391a5
Fix several issues with compiler extensions

- Update documentation now that the move to monorepo has been made
- Do not tie compiler extension testing to LLVM_BUILD_EXAMPLES
- No need to specify LLVM libraries for plugins
- Add NO_MODULE option to match Polly specific requirements (i.e. building the
  module *and* linking it statically)
- Issue a warning when building the compiler extension with
  LLVM_BYE_LINK_INTO_TOOLS=ON, as it modifies the behavior of clang, which only
  makes sense for testing purpose.

Still mark llvm/test/Feature/load_extension.ll as XFAIL because of a
ManagedStatic dependency that's going to be fixed in a seperate commit.

Differential Revision: https://reviews.llvm.org/D72327
llvm/cmake/modules/AddLLVM.cmake
llvm/examples/Bye/CMakeLists.txt
llvm/test/lit.cfg.py
polly/lib/CMakeLists.txt