2020-10-10 00:41:21 +08:00
|
|
|
include(LLVM-Build)
|
|
|
|
|
2016-09-07 04:16:19 +08:00
|
|
|
# `Demangle', `Support' and `TableGen' libraries are added on the top-level
|
|
|
|
# CMakeLists.txt
|
2011-02-19 06:06:14 +08:00
|
|
|
|
2013-01-02 17:10:48 +08:00
|
|
|
add_subdirectory(IR)
|
2017-08-22 06:57:06 +08:00
|
|
|
add_subdirectory(FuzzMutate)
|
2020-09-01 19:21:18 +08:00
|
|
|
add_subdirectory(FileCheck)
|
2020-08-12 02:44:22 +08:00
|
|
|
add_subdirectory(InterfaceStub)
|
2013-03-26 10:25:37 +08:00
|
|
|
add_subdirectory(IRReader)
|
2011-02-19 06:06:14 +08:00
|
|
|
add_subdirectory(CodeGen)
|
2017-06-07 11:48:56 +08:00
|
|
|
add_subdirectory(BinaryFormat)
|
2011-02-19 06:06:14 +08:00
|
|
|
add_subdirectory(Bitcode)
|
2019-07-04 06:40:07 +08:00
|
|
|
add_subdirectory(Bitstream)
|
2019-12-21 00:23:31 +08:00
|
|
|
add_subdirectory(DWARFLinker)
|
2020-04-20 18:39:32 +08:00
|
|
|
add_subdirectory(Extensions)
|
[OpenMP][NFCI] Introduce llvm/IR/OpenMPConstants.h
Summary:
The new OpenMPConstants.h is a location for all OpenMP related constants
(and helpers) to live.
This patch moves the directives there (the enum OpenMPDirectiveKind) and
rewires Clang to use the new location.
Initially part of D69785.
Reviewers: kiranchandramohan, ABataev, RaviNarayanaswamy, gtbercea, grokos, sdmitriev, JonChesterfield, hfinkel, fghanim
Subscribers: jholewinski, ppenzin, penzn, llvm-commits, cfe-commits, jfb, guansong, bollu, hiraditya, mgorny
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D69853
2019-11-05 12:00:49 +08:00
|
|
|
add_subdirectory(Frontend)
|
2011-02-19 06:06:14 +08:00
|
|
|
add_subdirectory(Transforms)
|
|
|
|
add_subdirectory(Linker)
|
|
|
|
add_subdirectory(Analysis)
|
2013-09-25 07:52:22 +08:00
|
|
|
add_subdirectory(LTO)
|
2011-02-19 06:06:14 +08:00
|
|
|
add_subdirectory(MC)
|
2018-12-17 16:08:31 +08:00
|
|
|
add_subdirectory(MCA)
|
2011-02-19 06:06:14 +08:00
|
|
|
add_subdirectory(Object)
|
2016-03-02 03:15:06 +08:00
|
|
|
add_subdirectory(ObjectYAML)
|
2012-12-05 08:29:32 +08:00
|
|
|
add_subdirectory(Option)
|
2019-03-06 04:45:17 +08:00
|
|
|
add_subdirectory(Remarks)
|
2011-09-14 03:42:23 +08:00
|
|
|
add_subdirectory(DebugInfo)
|
2011-02-19 06:06:14 +08:00
|
|
|
add_subdirectory(ExecutionEngine)
|
|
|
|
add_subdirectory(Target)
|
|
|
|
add_subdirectory(AsmParser)
|
2014-02-01 07:46:14 +08:00
|
|
|
add_subdirectory(LineEditor)
|
2014-03-22 01:24:48 +08:00
|
|
|
add_subdirectory(ProfileData)
|
2015-03-07 17:02:36 +08:00
|
|
|
add_subdirectory(Passes)
|
2018-12-04 03:30:52 +08:00
|
|
|
add_subdirectory(TextAPI)
|
2017-05-14 06:06:46 +08:00
|
|
|
add_subdirectory(ToolDrivers)
|
2017-01-11 14:39:09 +08:00
|
|
|
add_subdirectory(XRay)
|
2019-07-12 06:08:35 +08:00
|
|
|
if (LLVM_INCLUDE_TESTS)
|
|
|
|
add_subdirectory(Testing)
|
|
|
|
endif()
|
2017-07-26 09:21:55 +08:00
|
|
|
add_subdirectory(WindowsManifest)
|
2020-10-10 00:41:21 +08:00
|
|
|
|
|
|
|
set(LLVMCONFIGLIBRARYDEPENDENCIESINC "${LLVM_BINARY_DIR}/tools/llvm-config/LibraryDependencies.inc")
|
|
|
|
|
2020-11-13 22:49:27 +08:00
|
|
|
# Special components which don't have any source attached but aggregate other
|
|
|
|
# components
|
|
|
|
add_llvm_component_group(all-targets LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD})
|
|
|
|
add_llvm_component_group(Engine)
|
|
|
|
|
|
|
|
# The native target may not be enabled when cross compiling
|
|
|
|
if(TARGET ${LLVM_NATIVE_ARCH})
|
|
|
|
add_llvm_component_group(Native LINK_COMPONENTS ${LLVM_NATIVE_ARCH})
|
|
|
|
add_llvm_component_group(NativeCodeGen LINK_COMPONENTS ${LLVM_NATIVE_ARCH}CodeGen)
|
|
|
|
else()
|
|
|
|
add_llvm_component_group(Native)
|
|
|
|
add_llvm_component_group(NativeCodeGen)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Component post-processing
|
2020-10-10 00:41:21 +08:00
|
|
|
LLVMBuildResolveComponentsLink()
|
|
|
|
LLVMBuildGenerateCFragment(OUTPUT ${LLVMCONFIGLIBRARYDEPENDENCIESINC})
|