| NAKAMURA Takumi | d75e020 | 2015-02-01 00:55:32 +0000 | [diff] [blame] | 1 | list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen) |
| 2 | |
| Chris Bieneman | 1b5f563 | 2016-12-06 04:45:11 +0000 | [diff] [blame] | 3 | list(APPEND LLVM_TABLEGEN_FLAGS -I ${LLVM_MAIN_SRC_DIR}/lib/Target) |
| 4 | |
| Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 5 | add_llvm_library(LLVMTarget |
| Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 6 | Target.cpp |
| Ted Kremenek | d0014cf | 2009-07-21 17:43:20 +0000 | [diff] [blame] | 7 | TargetIntrinsicInfo.cpp |
| Chris Lattner | 5e693ed | 2009-07-28 03:13:23 +0000 | [diff] [blame] | 8 | TargetLoweringObjectFile.cpp |
| Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 9 | TargetMachine.cpp |
| Duncan Sands | 264d2e7 | 2012-04-11 10:25:24 +0000 | [diff] [blame] | 10 | TargetMachineC.cpp |
| Zachary Turner | 3bd47ce | 2015-02-11 03:28:02 +0000 | [diff] [blame] | 11 | |
| 12 | ADDITIONAL_HEADER_DIRS |
| 13 | ${LLVM_MAIN_INCLUDE_DIR}/llvm/Target |
| Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 14 | ) |
| Oscar Fuentes | 5ed9626 | 2011-02-18 22:06:14 +0000 | [diff] [blame] | 15 | |
| Oscar Fuentes | 5ed9626 | 2011-02-18 22:06:14 +0000 | [diff] [blame] | 16 | foreach(t ${LLVM_TARGETS_TO_BUILD}) |
| 17 | message(STATUS "Targeting ${t}") |
| 18 | add_subdirectory(${t}) |
| Daniel Dunbar | 4a2eab0 | 2011-11-04 19:04:42 +0000 | [diff] [blame] | 19 | endforeach() |
| Chris Bieneman | e7a9820 | 2017-02-08 20:58:37 +0000 | [diff] [blame] | 20 | |
| 21 | # Currently we do not allow libraries from lib to reference targets directly. |
| 22 | # This property is used to enforce that convention. It is important because the |
| 23 | # logic in llvm_map_components_to_libnames is order dependent on the target |
| 24 | # libraries being created. |
| 25 | set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On) |