1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

[cmake] Explicitly mark libraries defined in lib/ as "Component Libraries"

Summary:
Most libraries are defined in the lib/ directory but there are also a
few libraries defined in tools/ e.g. libLLVM, libLTO.  I'm defining
"Component Libraries" as libraries defined in lib/ that may be included in
libLLVM.so.  Explicitly marking the libraries in lib/ as component
libraries allows us to remove some fragile checks that attempt to
differentiate between lib/ libraries and tools/ libraires:

1. In tools/llvm-shlib, because
llvm_map_components_to_libnames(LIB_NAMES "all") returned a list of
all libraries defined in the whole project, there was custom code
needed to filter out libraries defined in tools/, none of which should
be included in libLLVM.so.  This code assumed that any library
defined as static was from lib/ and everything else should be
excluded.

With this change, llvm_map_components_to_libnames(LIB_NAMES, "all")
only returns libraries that have been added to the LLVM_COMPONENT_LIBS
global cmake property, so this custom filtering logic can be removed.
Doing this also fixes the build with BUILD_SHARED_LIBS=ON
and LLVM_BUILD_LLVM_DYLIB=ON.

2. There was some code in llvm_add_library that assumed that
libraries defined in lib/ would not have LLVM_LINK_COMPONENTS or
ARG_LINK_COMPONENTS set.  This is only true because libraries
defined lib lib/ use LLVMBuild.txt and don't set these values.
This code has been fixed now to check if the library has been
explicitly marked as a component library, which should now make it
easier to remove LLVMBuild at some point in the future.

I have tested this patch on Windows, MacOS and Linux with release builds
and the following combinations of CMake options:

- "" (No options)
- -DLLVM_BUILD_LLVM_DYLIB=ON
- -DLLVM_LINK_LLVM_DYLIB=ON
- -DBUILD_SHARED_LIBS=ON
- -DBUILD_SHARED_LIBS=ON -DLLVM_BUILD_LLVM_DYLIB=ON
- -DBUILD_SHARED_LIBS=ON -DLLVM_LINK_LLVM_DYLIB=ON

Reviewers: beanz, smeenai, compnerd, phosek

Reviewed By: beanz

Subscribers: wuzish, jholewinski, arsenm, dschuff, jyknight, dylanmckay, sdardis, nemanjai, jvesely, nhaehnle, mgorny, mehdi_amini, sbc100, jgravelle-google, hiraditya, aheejin, fedor.sergeev, asb, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, atanasyan, steven_wu, rogfer01, MartinMosbeck, brucehoult, the_o, dexonsmith, PkmX, jocewei, jsji, dang, Jim, lenary, s.egerton, pzheng, sameer.abuasal, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70179
This commit is contained in:
Tom Stellard 2019-11-14 05:39:58 +00:00
parent 01f52927e7
commit 28bf7f3536
139 changed files with 156 additions and 154 deletions

View File

@ -397,10 +397,14 @@ endfunction(set_windows_version_resource_properties)
# Suppress default RPATH settings in shared libraries. # Suppress default RPATH settings in shared libraries.
# PLUGIN_TOOL # PLUGIN_TOOL
# The tool (i.e. cmake target) that this plugin will link against # The tool (i.e. cmake target) that this plugin will link against
# COMPONENT_LIB
# This is used to specify that this is a component library of
# LLVM which means that the source resides in llvm/lib/ and it is a
# candidate for inclusion into libLLVM.so.
# ) # )
function(llvm_add_library name) function(llvm_add_library name)
cmake_parse_arguments(ARG cmake_parse_arguments(ARG
"MODULE;SHARED;STATIC;OBJECT;DISABLE_LLVM_LINK_LLVM_DYLIB;SONAME;NO_INSTALL_RPATH" "MODULE;SHARED;STATIC;OBJECT;DISABLE_LLVM_LINK_LLVM_DYLIB;SONAME;NO_INSTALL_RPATH;COMPONENT_LIB"
"OUTPUT_NAME;PLUGIN_TOOL;ENTITLEMENTS;BUNDLE_PATH" "OUTPUT_NAME;PLUGIN_TOOL;ENTITLEMENTS;BUNDLE_PATH"
"ADDITIONAL_HEADERS;DEPENDS;LINK_COMPONENTS;LINK_LIBS;OBJLIBS" "ADDITIONAL_HEADERS;DEPENDS;LINK_COMPONENTS;LINK_LIBS;OBJLIBS"
${ARGN}) ${ARGN})
@ -486,6 +490,11 @@ function(llvm_add_library name)
add_library(${name} STATIC ${ALL_FILES}) add_library(${name} STATIC ${ALL_FILES})
endif() endif()
if(ARG_COMPONENT_LIB)
set_target_properties(${name} PROPERTIES LLVM_COMPONENT TRUE)
set_property(GLOBAL APPEND PROPERTY LLVM_COMPONENT_LIBS ${name})
endif()
if(NOT ARG_NO_INSTALL_RPATH) if(NOT ARG_NO_INSTALL_RPATH)
if(ARG_MODULE OR ARG_SHARED) if(ARG_MODULE OR ARG_SHARED)
llvm_setup_rpath(${name}) llvm_setup_rpath(${name})
@ -570,7 +579,7 @@ function(llvm_add_library name)
if(ARG_MODULE AND LLVM_EXPORT_SYMBOLS_FOR_PLUGINS AND ARG_PLUGIN_TOOL AND (WIN32 OR CYGWIN)) if(ARG_MODULE AND LLVM_EXPORT_SYMBOLS_FOR_PLUGINS AND ARG_PLUGIN_TOOL AND (WIN32 OR CYGWIN))
# On DLL platforms symbols are imported from the tool by linking against it. # On DLL platforms symbols are imported from the tool by linking against it.
set(llvm_libs ${ARG_PLUGIN_TOOL}) set(llvm_libs ${ARG_PLUGIN_TOOL})
elseif (DEFINED LLVM_LINK_COMPONENTS OR DEFINED ARG_LINK_COMPONENTS) elseif (NOT ARG_COMPONENT_LIB)
if (LLVM_LINK_LLVM_DYLIB AND NOT ARG_DISABLE_LLVM_LINK_LLVM_DYLIB) if (LLVM_LINK_LLVM_DYLIB AND NOT ARG_DISABLE_LLVM_LINK_LLVM_DYLIB)
set(llvm_libs LLVM) set(llvm_libs LLVM)
else() else()
@ -669,6 +678,10 @@ function(add_llvm_install_targets target)
endif() endif()
endfunction() endfunction()
function(add_llvm_component_library name)
add_llvm_library(${name} COMPONENT_LIB ${ARGN})
endfunction()
macro(add_llvm_library name) macro(add_llvm_library name)
cmake_parse_arguments(ARG cmake_parse_arguments(ARG
"SHARED;BUILDTREE_ONLY;MODULE;INSTALL_WITH_TOOLCHAIN" "SHARED;BUILDTREE_ONLY;MODULE;INSTALL_WITH_TOOLCHAIN"
@ -1027,7 +1040,7 @@ macro(add_llvm_target target_name)
include_directories(BEFORE include_directories(BEFORE
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}) ${CMAKE_CURRENT_SOURCE_DIR})
add_llvm_library(LLVM${target_name} ${ARGN}) add_llvm_component_library(LLVM${target_name} ${ARGN})
set( CURRENT_LLVM_TARGET LLVM${target_name} ) set( CURRENT_LLVM_TARGET LLVM${target_name} )
endmacro(add_llvm_target) endmacro(add_llvm_target)

View File

@ -267,7 +267,8 @@ function(llvm_map_components_to_libnames out_libs)
elseif( c STREQUAL "engine" ) elseif( c STREQUAL "engine" )
# already processed # already processed
elseif( c STREQUAL "all" ) elseif( c STREQUAL "all" )
list(APPEND expanded_components ${LLVM_AVAILABLE_LIBS}) get_property(all_components GLOBAL PROPERTY LLVM_COMPONENT_LIBS)
list(APPEND expanded_components ${all_components})
else() else()
# Canonize the component name: # Canonize the component name:
string(TOUPPER "${c}" capitalized) string(TOUPPER "${c}" capitalized)

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMAnalysis add_llvm_component_library(LLVMAnalysis
AliasAnalysis.cpp AliasAnalysis.cpp
AliasAnalysisEvaluator.cpp AliasAnalysisEvaluator.cpp
AliasAnalysisSummary.cpp AliasAnalysisSummary.cpp

View File

@ -1,5 +1,5 @@
# AsmParser # AsmParser
add_llvm_library(LLVMAsmParser add_llvm_component_library(LLVMAsmParser
LLLexer.cpp LLLexer.cpp
LLParser.cpp LLParser.cpp
Parser.cpp Parser.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMBinaryFormat add_llvm_component_library(LLVMBinaryFormat
AMDGPUMetadataVerifier.cpp AMDGPUMetadataVerifier.cpp
Dwarf.cpp Dwarf.cpp
Magic.cpp Magic.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMBitReader add_llvm_component_library(LLVMBitReader
BitcodeAnalyzer.cpp BitcodeAnalyzer.cpp
BitReader.cpp BitReader.cpp
BitcodeReader.cpp BitcodeReader.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMBitWriter add_llvm_component_library(LLVMBitWriter
BitWriter.cpp BitWriter.cpp
BitcodeWriter.cpp BitcodeWriter.cpp
BitcodeWriterPass.cpp BitcodeWriterPass.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMBitstreamReader add_llvm_component_library(LLVMBitstreamReader
BitstreamReader.cpp BitstreamReader.cpp
ADDITIONAL_HEADER_DIRS ADDITIONAL_HEADER_DIRS

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMAsmPrinter add_llvm_component_library(LLVMAsmPrinter
AccelTable.cpp AccelTable.cpp
AddressPool.cpp AddressPool.cpp
ARMException.cpp ARMException.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMCodeGen add_llvm_component_library(LLVMCodeGen
AggressiveAntiDepBreaker.cpp AggressiveAntiDepBreaker.cpp
AllocationOrder.cpp AllocationOrder.cpp
Analysis.cpp Analysis.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMGlobalISel add_llvm_component_library(LLVMGlobalISel
CSEInfo.cpp CSEInfo.cpp
GISelKnownBits.cpp GISelKnownBits.cpp
CSEMIRBuilder.cpp CSEMIRBuilder.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMMIRParser add_llvm_component_library(LLVMMIRParser
MILexer.cpp MILexer.cpp
MIParser.cpp MIParser.cpp
MIRParser.cpp MIRParser.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMSelectionDAG add_llvm_component_library(LLVMSelectionDAG
DAGCombiner.cpp DAGCombiner.cpp
FastISel.cpp FastISel.cpp
FunctionLoweringInfo.cpp FunctionLoweringInfo.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMDebugInfoCodeView add_llvm_component_library(LLVMDebugInfoCodeView
AppendingTypeTableBuilder.cpp AppendingTypeTableBuilder.cpp
CodeViewError.cpp CodeViewError.cpp
CodeViewRecordIO.cpp CodeViewRecordIO.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMDebugInfoDWARF add_llvm_component_library(LLVMDebugInfoDWARF
DWARFAbbreviationDeclaration.cpp DWARFAbbreviationDeclaration.cpp
DWARFAddressRange.cpp DWARFAddressRange.cpp
DWARFAcceleratorTable.cpp DWARFAcceleratorTable.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMDebugInfoGSYM add_llvm_component_library(LLVMDebugInfoGSYM
Header.cpp Header.cpp
FileWriter.cpp FileWriter.cpp
FunctionInfo.cpp FunctionInfo.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMDebugInfoMSF add_llvm_component_library(LLVMDebugInfoMSF
MappedBlockStream.cpp MappedBlockStream.cpp
MSFBuilder.cpp MSFBuilder.cpp
MSFCommon.cpp MSFCommon.cpp

View File

@ -84,7 +84,7 @@ add_pdb_impl_folder(Native
list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB/Native") list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB/Native")
list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB") list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB")
add_llvm_library(LLVMDebugInfoPDB add_llvm_component_library(LLVMDebugInfoPDB
GenericError.cpp GenericError.cpp
IPDBSourceFile.cpp IPDBSourceFile.cpp
PDB.cpp PDB.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMSymbolize add_llvm_component_library(LLVMSymbolize
DIPrinter.cpp DIPrinter.cpp
SymbolizableObjectFile.cpp SymbolizableObjectFile.cpp
Symbolize.cpp Symbolize.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMDemangle add_llvm_component_library(LLVMDemangle
Demangle.cpp Demangle.cpp
ItaniumDemangle.cpp ItaniumDemangle.cpp
MicrosoftDemangle.cpp MicrosoftDemangle.cpp

View File

@ -1,6 +1,6 @@
add_llvm_library(LLVMExecutionEngine add_llvm_component_library(LLVMExecutionEngine
ExecutionEngine.cpp ExecutionEngine.cpp
ExecutionEngineBindings.cpp ExecutionEngineBindings.cpp
GDBRegistrationListener.cpp GDBRegistrationListener.cpp

View File

@ -7,7 +7,7 @@ endif()
set(LLVM_INTEL_JIT_LIBS ${LLVM_PTHREAD_LIB} ${LLVM_INTEL_JIT_LIBS}) set(LLVM_INTEL_JIT_LIBS ${LLVM_PTHREAD_LIB} ${LLVM_INTEL_JIT_LIBS})
add_llvm_library(LLVMIntelJITEvents add_llvm_component_library(LLVMIntelJITEvents
IntelJITEventListener.cpp IntelJITEventListener.cpp
jitprofiling.c jitprofiling.c

View File

@ -6,7 +6,7 @@ if( FFI_INCLUDE_PATH )
include_directories( ${FFI_INCLUDE_PATH} ) include_directories( ${FFI_INCLUDE_PATH} )
endif() endif()
add_llvm_library(LLVMInterpreter add_llvm_component_library(LLVMInterpreter
Execution.cpp Execution.cpp
ExternalFunctions.cpp ExternalFunctions.cpp
Interpreter.cpp Interpreter.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMJITLink add_llvm_component_library(LLVMJITLink
JITLink.cpp JITLink.cpp
JITLinkGeneric.cpp JITLinkGeneric.cpp
JITLinkMemoryManager.cpp JITLinkMemoryManager.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMMCJIT add_llvm_component_library(LLVMMCJIT
MCJIT.cpp MCJIT.cpp
DEPENDS DEPENDS

View File

@ -1,7 +1,7 @@
include_directories( ${LLVM_OPROFILE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/.. ) include_directories( ${LLVM_OPROFILE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/.. )
add_llvm_library(LLVMOProfileJIT add_llvm_component_library(LLVMOProfileJIT
OProfileJITEventListener.cpp OProfileJITEventListener.cpp
OProfileWrapper.cpp OProfileWrapper.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMOrcJIT add_llvm_component_library(LLVMOrcJIT
CompileOnDemandLayer.cpp CompileOnDemandLayer.cpp
CompileUtils.cpp CompileUtils.cpp
Core.cpp Core.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMOrcError add_llvm_component_library(LLVMOrcError
OrcError.cpp OrcError.cpp
RPCError.cpp RPCError.cpp
ADDITIONAL_HEADER_DIRS ADDITIONAL_HEADER_DIRS

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMPerfJITEvents add_llvm_component_library(LLVMPerfJITEvents
PerfJITEventListener.cpp PerfJITEventListener.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMRuntimeDyld add_llvm_component_library(LLVMRuntimeDyld
JITSymbol.cpp JITSymbol.cpp
RTDyldMemoryManager.cpp RTDyldMemoryManager.cpp
RuntimeDyld.cpp RuntimeDyld.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMFuzzMutate add_llvm_component_library(LLVMFuzzMutate
FuzzerCLI.cpp FuzzerCLI.cpp
IRMutator.cpp IRMutator.cpp
OpDescriptor.cpp OpDescriptor.cpp

View File

@ -2,7 +2,7 @@ set(LLVM_TARGET_DEFINITIONS AttributesCompatFunc.td)
tablegen(LLVM AttributesCompatFunc.inc -gen-attrs) tablegen(LLVM AttributesCompatFunc.inc -gen-attrs)
add_public_tablegen_target(AttributeCompatFuncTableGen) add_public_tablegen_target(AttributeCompatFuncTableGen)
add_llvm_library(LLVMCore add_llvm_component_library(LLVMCore
AbstractCallSite.cpp AbstractCallSite.cpp
AsmWriter.cpp AsmWriter.cpp
Attributes.cpp Attributes.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMIRReader add_llvm_component_library(LLVMIRReader
IRReader.cpp IRReader.cpp
ADDITIONAL_HEADER_DIRS ADDITIONAL_HEADER_DIRS

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMLTO add_llvm_component_library(LLVMLTO
Caching.cpp Caching.cpp
LTO.cpp LTO.cpp
LTOBackend.cpp LTOBackend.cpp

View File

@ -2,7 +2,7 @@ if(HAVE_LIBEDIT)
set(link_libs edit) set(link_libs edit)
endif() endif()
add_llvm_library(LLVMLineEditor add_llvm_component_library(LLVMLineEditor
LineEditor.cpp LineEditor.cpp
ADDITIONAL_HEADER_DIRS ADDITIONAL_HEADER_DIRS

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMLinker add_llvm_component_library(LLVMLinker
IRMover.cpp IRMover.cpp
LinkModules.cpp LinkModules.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMMC add_llvm_component_library(LLVMMC
ConstantPools.cpp ConstantPools.cpp
ELFObjectWriter.cpp ELFObjectWriter.cpp
MCAsmBackend.cpp MCAsmBackend.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMMCDisassembler add_llvm_component_library(LLVMMCDisassembler
Disassembler.cpp Disassembler.cpp
MCDisassembler.cpp MCDisassembler.cpp
MCExternalSymbolizer.cpp MCExternalSymbolizer.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMMCParser add_llvm_component_library(LLVMMCParser
AsmLexer.cpp AsmLexer.cpp
AsmParser.cpp AsmParser.cpp
COFFAsmParser.cpp COFFAsmParser.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMMCA add_llvm_component_library(LLVMMCA
CodeEmitter.cpp CodeEmitter.cpp
Context.cpp Context.cpp
HWEventListener.cpp HWEventListener.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMObject add_llvm_component_library(LLVMObject
Archive.cpp Archive.cpp
ArchiveWriter.cpp ArchiveWriter.cpp
Binary.cpp Binary.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMObjectYAML add_llvm_component_library(LLVMObjectYAML
CodeViewYAMLDebugSections.cpp CodeViewYAMLDebugSections.cpp
CodeViewYAMLSymbols.cpp CodeViewYAMLSymbols.cpp
CodeViewYAMLTypeHashing.cpp CodeViewYAMLTypeHashing.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMOption add_llvm_component_library(LLVMOption
Arg.cpp Arg.cpp
ArgList.cpp ArgList.cpp
Option.cpp Option.cpp

View File

@ -2,7 +2,7 @@ if (MSVC)
set_source_files_properties(PassBuilder.cpp PROPERTIES COMPILE_FLAGS /bigobj) set_source_files_properties(PassBuilder.cpp PROPERTIES COMPILE_FLAGS /bigobj)
endif() endif()
add_llvm_library(LLVMPasses add_llvm_component_library(LLVMPasses
PassBuilder.cpp PassBuilder.cpp
PassPlugin.cpp PassPlugin.cpp
StandardInstrumentations.cpp StandardInstrumentations.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMProfileData add_llvm_component_library(LLVMProfileData
GCOV.cpp GCOV.cpp
InstrProf.cpp InstrProf.cpp
InstrProfReader.cpp InstrProfReader.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMCoverage add_llvm_component_library(LLVMCoverage
CoverageMapping.cpp CoverageMapping.cpp
CoverageMappingWriter.cpp CoverageMappingWriter.cpp
CoverageMappingReader.cpp CoverageMappingReader.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMRemarks add_llvm_component_library(LLVMRemarks
BitstreamRemarkParser.cpp BitstreamRemarkParser.cpp
BitstreamRemarkSerializer.cpp BitstreamRemarkSerializer.cpp
Remark.cpp Remark.cpp

View File

@ -51,7 +51,7 @@ else()
set(Z3_LINK_FILES "") set(Z3_LINK_FILES "")
endif() endif()
add_llvm_library(LLVMSupport add_llvm_component_library(LLVMSupport
AArch64TargetParser.cpp AArch64TargetParser.cpp
ABIBreak.cpp ABIBreak.cpp
ARMTargetParser.cpp ARMTargetParser.cpp

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMTableGen add_llvm_component_library(LLVMTableGen
Error.cpp Error.cpp
JSONBackend.cpp JSONBackend.cpp
Main.cpp Main.cpp

View File

@ -1,6 +1,6 @@
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. ) include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
add_llvm_library(LLVMAArch64AsmParser add_llvm_component_library(LLVMAArch64AsmParser
AArch64AsmParser.cpp AArch64AsmParser.cpp
) )

View File

@ -1,6 +1,6 @@
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. ) include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
add_llvm_library(LLVMAArch64Disassembler add_llvm_component_library(LLVMAArch64Disassembler
AArch64Disassembler.cpp AArch64Disassembler.cpp
AArch64ExternalSymbolizer.cpp AArch64ExternalSymbolizer.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMAArch64Desc add_llvm_component_library(LLVMAArch64Desc
AArch64AsmBackend.cpp AArch64AsmBackend.cpp
AArch64ELFObjectWriter.cpp AArch64ELFObjectWriter.cpp
AArch64ELFStreamer.cpp AArch64ELFStreamer.cpp

View File

@ -1,6 +1,6 @@
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. ) include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
add_llvm_library(LLVMAArch64Info add_llvm_component_library(LLVMAArch64Info
AArch64TargetInfo.cpp AArch64TargetInfo.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMAArch64Utils add_llvm_component_library(LLVMAArch64Utils
AArch64BaseInfo.cpp AArch64BaseInfo.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMAMDGPUAsmParser add_llvm_component_library(LLVMAMDGPUAsmParser
AMDGPUAsmParser.cpp AMDGPUAsmParser.cpp
) )

View File

@ -1,6 +1,6 @@
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. ) include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
add_llvm_library(LLVMAMDGPUDisassembler add_llvm_component_library(LLVMAMDGPUDisassembler
AMDGPUDisassembler.cpp AMDGPUDisassembler.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMAMDGPUDesc add_llvm_component_library(LLVMAMDGPUDesc
AMDGPUAsmBackend.cpp AMDGPUAsmBackend.cpp
AMDGPUELFObjectWriter.cpp AMDGPUELFObjectWriter.cpp
AMDGPUELFStreamer.cpp AMDGPUELFStreamer.cpp

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMAMDGPUInfo add_llvm_component_library(LLVMAMDGPUInfo
AMDGPUTargetInfo.cpp AMDGPUTargetInfo.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMAMDGPUUtils add_llvm_component_library(LLVMAMDGPUUtils
AMDGPUBaseInfo.cpp AMDGPUBaseInfo.cpp
AMDKernelCodeTUtils.cpp AMDKernelCodeTUtils.cpp
AMDGPUAsmUtils.cpp AMDGPUAsmUtils.cpp

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMARCDisassembler add_llvm_component_library(LLVMARCDisassembler
ARCDisassembler.cpp ARCDisassembler.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMARCDesc add_llvm_component_library(LLVMARCDesc
ARCInstPrinter.cpp ARCInstPrinter.cpp
ARCMCTargetDesc.cpp ARCMCTargetDesc.cpp
ARCMCAsmInfo.cpp ARCMCAsmInfo.cpp

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMARCInfo add_llvm_component_library(LLVMARCInfo
ARCTargetInfo.cpp ARCTargetInfo.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMARMAsmParser add_llvm_component_library(LLVMARMAsmParser
ARMAsmParser.cpp ARMAsmParser.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMARMDisassembler add_llvm_component_library(LLVMARMDisassembler
ARMDisassembler.cpp ARMDisassembler.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMARMDesc add_llvm_component_library(LLVMARMDesc
ARMAsmBackend.cpp ARMAsmBackend.cpp
ARMELFObjectWriter.cpp ARMELFObjectWriter.cpp
ARMELFStreamer.cpp ARMELFStreamer.cpp

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMARMInfo add_llvm_component_library(LLVMARMInfo
ARMTargetInfo.cpp ARMTargetInfo.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMARMUtils add_llvm_component_library(LLVMARMUtils
ARMBaseInfo.cpp ARMBaseInfo.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMAVRAsmParser add_llvm_component_library(LLVMAVRAsmParser
AVRAsmParser.cpp AVRAsmParser.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMAVRDisassembler add_llvm_component_library(LLVMAVRDisassembler
AVRDisassembler.cpp AVRDisassembler.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMAVRDesc add_llvm_component_library(LLVMAVRDesc
AVRAsmBackend.cpp AVRAsmBackend.cpp
AVRELFObjectWriter.cpp AVRELFObjectWriter.cpp
AVRELFStreamer.cpp AVRELFStreamer.cpp

View File

@ -1,7 +1,7 @@
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. include_directories( ${CMAKE_CURRENT_BINARY_DIR}/..
${CMAKE_CURRENT_SOURCE_DIR}/.. ) ${CMAKE_CURRENT_SOURCE_DIR}/.. )
add_llvm_library(LLVMAVRInfo add_llvm_component_library(LLVMAVRInfo
AVRTargetInfo.cpp AVRTargetInfo.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMBPFAsmParser add_llvm_component_library(LLVMBPFAsmParser
BPFAsmParser.cpp BPFAsmParser.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMBPFDisassembler add_llvm_component_library(LLVMBPFDisassembler
BPFDisassembler.cpp BPFDisassembler.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMBPFDesc add_llvm_component_library(LLVMBPFDesc
BPFMCTargetDesc.cpp BPFMCTargetDesc.cpp
BPFAsmBackend.cpp BPFAsmBackend.cpp
BPFInstPrinter.cpp BPFInstPrinter.cpp

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMBPFInfo add_llvm_component_library(LLVMBPFInfo
BPFTargetInfo.cpp BPFTargetInfo.cpp
) )

View File

@ -2,7 +2,7 @@ list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen)
list(APPEND LLVM_TABLEGEN_FLAGS -I ${LLVM_MAIN_SRC_DIR}/lib/Target) list(APPEND LLVM_TABLEGEN_FLAGS -I ${LLVM_MAIN_SRC_DIR}/lib/Target)
add_llvm_library(LLVMTarget add_llvm_component_library(LLVMTarget
Target.cpp Target.cpp
TargetIntrinsicInfo.cpp TargetIntrinsicInfo.cpp
TargetLoweringObjectFile.cpp TargetLoweringObjectFile.cpp

View File

@ -1,6 +1,6 @@
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. ) include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
add_llvm_library(LLVMHexagonAsmParser add_llvm_component_library(LLVMHexagonAsmParser
HexagonAsmParser.cpp HexagonAsmParser.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMHexagonDisassembler add_llvm_component_library(LLVMHexagonDisassembler
HexagonDisassembler.cpp HexagonDisassembler.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMHexagonDesc add_llvm_component_library(LLVMHexagonDesc
HexagonAsmBackend.cpp HexagonAsmBackend.cpp
HexagonELFObjectWriter.cpp HexagonELFObjectWriter.cpp
HexagonInstPrinter.cpp HexagonInstPrinter.cpp

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMHexagonInfo add_llvm_component_library(LLVMHexagonInfo
HexagonTargetInfo.cpp HexagonTargetInfo.cpp
) )

View File

@ -1,6 +1,6 @@
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. ) include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
add_llvm_library(LLVMLanaiAsmParser add_llvm_component_library(LLVMLanaiAsmParser
LanaiAsmParser.cpp LanaiAsmParser.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMLanaiDisassembler add_llvm_component_library(LLVMLanaiDisassembler
LanaiDisassembler.cpp LanaiDisassembler.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMLanaiDesc add_llvm_component_library(LLVMLanaiDesc
LanaiAsmBackend.cpp LanaiAsmBackend.cpp
LanaiELFObjectWriter.cpp LanaiELFObjectWriter.cpp
LanaiInstPrinter.cpp LanaiInstPrinter.cpp

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMLanaiInfo add_llvm_component_library(LLVMLanaiInfo
LanaiTargetInfo.cpp LanaiTargetInfo.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMMSP430AsmParser add_llvm_component_library(LLVMMSP430AsmParser
MSP430AsmParser.cpp MSP430AsmParser.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMMSP430Disassembler add_llvm_component_library(LLVMMSP430Disassembler
MSP430Disassembler.cpp MSP430Disassembler.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMMSP430Desc add_llvm_component_library(LLVMMSP430Desc
MSP430AsmBackend.cpp MSP430AsmBackend.cpp
MSP430ELFObjectWriter.cpp MSP430ELFObjectWriter.cpp
MSP430ELFStreamer.cpp MSP430ELFStreamer.cpp

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMMSP430Info add_llvm_component_library(LLVMMSP430Info
MSP430TargetInfo.cpp MSP430TargetInfo.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMMipsAsmParser add_llvm_component_library(LLVMMipsAsmParser
MipsAsmParser.cpp MipsAsmParser.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMMipsDisassembler add_llvm_component_library(LLVMMipsDisassembler
MipsDisassembler.cpp MipsDisassembler.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMMipsDesc add_llvm_component_library(LLVMMipsDesc
MipsABIInfo.cpp MipsABIInfo.cpp
MipsABIFlagsSection.cpp MipsABIFlagsSection.cpp
MipsAsmBackend.cpp MipsAsmBackend.cpp

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMMipsInfo add_llvm_component_library(LLVMMipsInfo
MipsTargetInfo.cpp MipsTargetInfo.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMNVPTXDesc add_llvm_component_library(LLVMNVPTXDesc
NVPTXInstPrinter.cpp NVPTXInstPrinter.cpp
NVPTXMCAsmInfo.cpp NVPTXMCAsmInfo.cpp
NVPTXMCTargetDesc.cpp NVPTXMCTargetDesc.cpp

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMNVPTXInfo add_llvm_component_library(LLVMNVPTXInfo
NVPTXTargetInfo.cpp NVPTXTargetInfo.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMPowerPCAsmParser add_llvm_component_library(LLVMPowerPCAsmParser
PPCAsmParser.cpp PPCAsmParser.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMPowerPCDisassembler add_llvm_component_library(LLVMPowerPCDisassembler
PPCDisassembler.cpp PPCDisassembler.cpp
) )

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMPowerPCDesc add_llvm_component_library(LLVMPowerPCDesc
PPCAsmBackend.cpp PPCAsmBackend.cpp
PPCInstPrinter.cpp PPCInstPrinter.cpp
PPCMCTargetDesc.cpp PPCMCTargetDesc.cpp

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMPowerPCInfo add_llvm_component_library(LLVMPowerPCInfo
PowerPCTargetInfo.cpp PowerPCTargetInfo.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMRISCVAsmParser add_llvm_component_library(LLVMRISCVAsmParser
RISCVAsmParser.cpp RISCVAsmParser.cpp
) )

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMRISCVDisassembler add_llvm_component_library(LLVMRISCVDisassembler
RISCVDisassembler.cpp RISCVDisassembler.cpp
) )

Some files were not shown because too many files have changed in this diff Show More