2015-02-01 08:55:32 +08:00
|
|
|
list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen)
|
|
|
|
|
2016-12-06 12:45:11 +08:00
|
|
|
list(APPEND LLVM_TABLEGEN_FLAGS -I ${LLVM_MAIN_SRC_DIR}/lib/Target)
|
|
|
|
|
2008-09-22 09:08:49 +08:00
|
|
|
add_llvm_library(LLVMTarget
|
|
|
|
Target.cpp
|
2009-07-22 01:43:20 +08:00
|
|
|
TargetIntrinsicInfo.cpp
|
2009-07-28 11:13:23 +08:00
|
|
|
TargetLoweringObjectFile.cpp
|
2017-10-13 06:57:28 +08:00
|
|
|
TargetMachine.cpp
|
|
|
|
TargetMachineC.cpp
|
2015-02-11 11:28:02 +08:00
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${LLVM_MAIN_INCLUDE_DIR}/llvm/Target
|
2008-09-22 09:08:49 +08:00
|
|
|
)
|
2011-02-19 06:06:14 +08:00
|
|
|
|
|
|
|
foreach(t ${LLVM_TARGETS_TO_BUILD})
|
|
|
|
message(STATUS "Targeting ${t}")
|
|
|
|
add_subdirectory(${t})
|
2011-11-05 03:04:42 +08:00
|
|
|
endforeach()
|
2017-02-09 04:58:37 +08:00
|
|
|
|
|
|
|
# Currently we do not allow libraries from lib to reference targets directly.
|
|
|
|
# This property is used to enforce that convention. It is important because the
|
|
|
|
# logic in llvm_map_components_to_libnames is order dependent on the target
|
|
|
|
# libraries being created.
|
|
|
|
set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On)
|