No longer rely on an external tool to build the llvm component layout. Instead, leverage the existing `add_llvm_componentlibrary` cmake function and introduce `add_llvm_component_group` to accurately describe component behavior. These function store extra properties in the created targets. These properties are processed once all components are defined to resolve library dependencies and produce the header expected by llvm-config. Differential Revision: https://reviews.llvm.org/D90848
63 lines
1.5 KiB
CMake
63 lines
1.5 KiB
CMake
add_llvm_component_group(SystemZ HAS_JIT)
|
|
|
|
set(LLVM_TARGET_DEFINITIONS SystemZ.td)
|
|
|
|
tablegen(LLVM SystemZGenAsmMatcher.inc -gen-asm-matcher)
|
|
tablegen(LLVM SystemZGenAsmWriter.inc -gen-asm-writer)
|
|
tablegen(LLVM SystemZGenCallingConv.inc -gen-callingconv)
|
|
tablegen(LLVM SystemZGenDAGISel.inc -gen-dag-isel)
|
|
tablegen(LLVM SystemZGenDisassemblerTables.inc -gen-disassembler)
|
|
tablegen(LLVM SystemZGenInstrInfo.inc -gen-instr-info)
|
|
tablegen(LLVM SystemZGenMCCodeEmitter.inc -gen-emitter)
|
|
tablegen(LLVM SystemZGenRegisterInfo.inc -gen-register-info)
|
|
tablegen(LLVM SystemZGenSubtargetInfo.inc -gen-subtarget)
|
|
|
|
add_public_tablegen_target(SystemZCommonTableGen)
|
|
|
|
add_llvm_target(SystemZCodeGen
|
|
SystemZAsmPrinter.cpp
|
|
SystemZCallingConv.cpp
|
|
SystemZConstantPoolValue.cpp
|
|
SystemZCopyPhysRegs.cpp
|
|
SystemZElimCompare.cpp
|
|
SystemZFrameLowering.cpp
|
|
SystemZHazardRecognizer.cpp
|
|
SystemZISelDAGToDAG.cpp
|
|
SystemZISelLowering.cpp
|
|
SystemZInstrInfo.cpp
|
|
SystemZLDCleanup.cpp
|
|
SystemZLongBranch.cpp
|
|
SystemZMachineFunctionInfo.cpp
|
|
SystemZMachineScheduler.cpp
|
|
SystemZMCInstLower.cpp
|
|
SystemZPostRewrite.cpp
|
|
SystemZRegisterInfo.cpp
|
|
SystemZSelectionDAGInfo.cpp
|
|
SystemZShortenInst.cpp
|
|
SystemZSubtarget.cpp
|
|
SystemZTargetMachine.cpp
|
|
SystemZTargetTransformInfo.cpp
|
|
SystemZTDC.cpp
|
|
|
|
LINK_COMPONENTS
|
|
Analysis
|
|
AsmPrinter
|
|
CodeGen
|
|
Core
|
|
MC
|
|
Scalar
|
|
SelectionDAG
|
|
Support
|
|
SystemZDesc
|
|
SystemZInfo
|
|
Target
|
|
|
|
ADD_TO_COMPONENT
|
|
SystemZ
|
|
)
|
|
|
|
add_subdirectory(AsmParser)
|
|
add_subdirectory(Disassembler)
|
|
add_subdirectory(MCTargetDesc)
|
|
add_subdirectory(TargetInfo)
|