83
|
1 list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen)
|
|
2
|
121
|
3 list(APPEND LLVM_TABLEGEN_FLAGS -I ${LLVM_MAIN_SRC_DIR}/lib/Target)
|
|
4
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 add_llvm_library(LLVMTarget
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 Target.cpp
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 TargetIntrinsicInfo.cpp
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 TargetLoweringObjectFile.cpp
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 TargetMachine.cpp
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10 TargetMachineC.cpp
|
83
|
11
|
|
12 ADDITIONAL_HEADER_DIRS
|
|
13 ${LLVM_MAIN_INCLUDE_DIR}/llvm/Target
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14 )
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
15
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 foreach(t ${LLVM_TARGETS_TO_BUILD})
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
17 message(STATUS "Targeting ${t}")
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
18 add_subdirectory(${t})
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
19 endforeach()
|
121
|
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)
|