2020-10-09 18:41:21 +02:00
|
|
|
include(LLVM-Build)
|
|
|
|
|
2016-09-06 22:16:19 +02:00
|
|
|
# `Demangle', `Support' and `TableGen' libraries are added on the top-level
|
|
|
|
# CMakeLists.txt
|
2011-02-18 23:06:14 +01:00
|
|
|
|
2013-01-02 10:10:48 +01:00
|
|
|
add_subdirectory(IR)
|
2017-08-22 00:57:06 +02:00
|
|
|
add_subdirectory(FuzzMutate)
|
2020-09-01 13:21:18 +02:00
|
|
|
add_subdirectory(FileCheck)
|
2020-08-11 20:44:22 +02:00
|
|
|
add_subdirectory(InterfaceStub)
|
2013-03-26 03:25:37 +01:00
|
|
|
add_subdirectory(IRReader)
|
2011-02-18 23:06:14 +01:00
|
|
|
add_subdirectory(CodeGen)
|
2017-06-07 05:48:56 +02:00
|
|
|
add_subdirectory(BinaryFormat)
|
2011-02-18 23:06:14 +01:00
|
|
|
add_subdirectory(Bitcode)
|
2019-07-04 00:40:07 +02:00
|
|
|
add_subdirectory(Bitstream)
|
2019-12-20 17:23:31 +01:00
|
|
|
add_subdirectory(DWARFLinker)
|
2020-04-20 12:39:32 +02: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 05:00:49 +01:00
|
|
|
add_subdirectory(Frontend)
|
2011-02-18 23:06:14 +01:00
|
|
|
add_subdirectory(Transforms)
|
|
|
|
add_subdirectory(Linker)
|
|
|
|
add_subdirectory(Analysis)
|
2013-09-25 01:52:22 +02:00
|
|
|
add_subdirectory(LTO)
|
2011-02-18 23:06:14 +01:00
|
|
|
add_subdirectory(MC)
|
2018-12-17 09:08:31 +01:00
|
|
|
add_subdirectory(MCA)
|
2011-02-18 23:06:14 +01:00
|
|
|
add_subdirectory(Object)
|
2016-03-01 20:15:06 +01:00
|
|
|
add_subdirectory(ObjectYAML)
|
2012-12-05 01:29:32 +01:00
|
|
|
add_subdirectory(Option)
|
2019-03-05 21:45:17 +01:00
|
|
|
add_subdirectory(Remarks)
|
2011-09-13 21:42:23 +02:00
|
|
|
add_subdirectory(DebugInfo)
|
2011-02-18 23:06:14 +01:00
|
|
|
add_subdirectory(ExecutionEngine)
|
|
|
|
add_subdirectory(Target)
|
|
|
|
add_subdirectory(AsmParser)
|
2014-02-01 00:46:14 +01:00
|
|
|
add_subdirectory(LineEditor)
|
2014-03-21 18:24:48 +01:00
|
|
|
add_subdirectory(ProfileData)
|
2015-03-07 10:02:36 +01:00
|
|
|
add_subdirectory(Passes)
|
2018-12-03 20:30:52 +01:00
|
|
|
add_subdirectory(TextAPI)
|
2017-05-14 00:06:46 +02:00
|
|
|
add_subdirectory(ToolDrivers)
|
2017-01-11 07:39:09 +01:00
|
|
|
add_subdirectory(XRay)
|
2019-07-12 00:08:35 +02:00
|
|
|
if (LLVM_INCLUDE_TESTS)
|
|
|
|
add_subdirectory(Testing)
|
|
|
|
endif()
|
2017-07-26 03:21:55 +02:00
|
|
|
add_subdirectory(WindowsManifest)
|
2020-10-09 18:41:21 +02:00
|
|
|
|
|
|
|
set(LLVMCONFIGLIBRARYDEPENDENCIESINC "${LLVM_BINARY_DIR}/tools/llvm-config/LibraryDependencies.inc")
|
|
|
|
|
2020-11-13 15:49:27 +01: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-09 18:41:21 +02:00
|
|
|
LLVMBuildResolveComponentsLink()
|
|
|
|
LLVMBuildGenerateCFragment(OUTPUT ${LLVMCONFIGLIBRARYDEPENDENCIESINC})
|