llvm-project/llvm
Mircea Trofin 62841415e6 [llvm] Added support for stand-alone cmake object libraries.
Summary:
Currently, add_llvm_library would create an OBJECT library alongside
of a STATIC / SHARED library, but losing the link interface (its
elements would become dependencies instead). To support scenarios
where linking an object library also brings in its usage
requirements, this patch adds support for 'stand-alone' OBJECT
libraries - i.e. without an accompanying SHARED/STATIC library, and
maintaining the link interface defined by the user.

This is useful for cases where, for example, we want to build a part
of a component separately. Using a STATIC target would incur the risk
that symbols not referenced in the consumer would be dropped (which may
be undesirable).

The current application is the ML part of Analysis. It should be part
of the Analysis component, so it may reference other analyses; and (in
upcoming changes) it has dependencies on optional libraries.

Reviewers: karies, davidxl, beanz, phosek, smeenai

Subscribers: mgorny, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81447
2020-06-24 08:18:42 -07:00
..
benchmarks
bindings
cmake [llvm] Added support for stand-alone cmake object libraries. 2020-06-24 08:18:42 -07:00
docs [AMDGPU] Update AMD GPU processor information 2020-06-23 18:47:56 -04:00
examples [docs/examples] As part of using inclusive language within the llvm 2020-06-20 00:51:18 -07:00
include Cloning.h - reduce AliasAnalysis.h include to forward declarations. NFC. 2020-06-24 15:48:10 +01:00
lib [VectorCombine] give invalid index value a name; NFC 2020-06-24 11:10:36 -04:00
projects
resources
runtimes [CMake] Fix runtimes build for host Windows (default target) 2020-06-20 10:44:22 +02:00
test [VectorCombine] add tests for extract + cmp + binop; NFC 2020-06-24 11:10:36 -04:00
tools Cloning.h - reduce AliasAnalysis.h include to forward declarations. NFC. 2020-06-24 15:48:10 +01:00
unittests Cloning.h - reduce AliasAnalysis.h include to forward declarations. NFC. 2020-06-24 15:48:10 +01:00
utils [gn build] Port 96d4ccf00c 2020-06-24 08:17:48 +00:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt Change CMake so that we only look for Z3 when LLVM_ENABLE_Z3_SOLVER is enabled 2020-06-23 14:49:56 -04:00
CODE_OWNERS.TXT Make myself code owner of InferAddressSpaces 2020-06-08 21:26:01 -04:00
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.