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.
# PLUGIN_TOOL
# 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)
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"
"ADDITIONAL_HEADERS;DEPENDS;LINK_COMPONENTS;LINK_LIBS;OBJLIBS"
${ARGN})
@ -486,6 +490,11 @@ function(llvm_add_library name)
add_library(${name} STATIC ${ALL_FILES})
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(ARG_MODULE OR ARG_SHARED)
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))
# On DLL platforms symbols are imported from the tool by linking against it.
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)
set(llvm_libs LLVM)
else()
@ -669,6 +678,10 @@ function(add_llvm_install_targets target)
endif()
endfunction()
function(add_llvm_component_library name)
add_llvm_library(${name} COMPONENT_LIB ${ARGN})
endfunction()
macro(add_llvm_library name)
cmake_parse_arguments(ARG
"SHARED;BUILDTREE_ONLY;MODULE;INSTALL_WITH_TOOLCHAIN"
@ -1027,7 +1040,7 @@ macro(add_llvm_target target_name)
include_directories(BEFORE
${CMAKE_CURRENT_BINARY_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} )
endmacro(add_llvm_target)

View File

@ -267,7 +267,8 @@ function(llvm_map_components_to_libnames out_libs)
elseif( c STREQUAL "engine" )
# already processed
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()
# Canonize the component name:
string(TOUPPER "${c}" capitalized)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
add_llvm_library(LLVMDebugInfoMSF
add_llvm_component_library(LLVMDebugInfoMSF
MappedBlockStream.cpp
MSFBuilder.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")
add_llvm_library(LLVMDebugInfoPDB
add_llvm_component_library(LLVMDebugInfoPDB
GenericError.cpp
IPDBSourceFile.cpp
PDB.cpp

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,3 @@
add_llvm_library(LLVMBPFInfo
add_llvm_component_library(LLVMBPFInfo
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)
add_llvm_library(LLVMTarget
add_llvm_component_library(LLVMTarget
Target.cpp
TargetIntrinsicInfo.cpp
TargetLoweringObjectFile.cpp

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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