blob: 0e02d050ef07aa7a7948b29743cde71852878fba [file] [log] [blame]
Tobias Grosser75805372011-04-29 06:27:02 +00001add_subdirectory(Analysis)
Hongbin Zheng609089f2012-03-30 08:46:18 +00002add_subdirectory(CodeGen)
Tobias Grosser23156482011-11-22 19:40:24 +00003add_subdirectory(Exchange)
Tobias Grosser75805372011-04-29 06:27:02 +00004add_subdirectory(Support)
5add_subdirectory(JSON)
6
7set(MODULE TRUE)
8set(LLVM_NO_RTTI 1)
9
Tobias Grosser75805372011-04-29 06:27:02 +000010if (SCOPLIB_FOUND)
Tobias Grosser23156482011-11-22 19:40:24 +000011 set(POLLY_SCOPLIB_FILES Pocc.cpp)
Tobias Grosser75805372011-04-29 06:27:02 +000012endif (SCOPLIB_FOUND)
13
14set(LLVM_USED_LIBS
15 PollyAnalysis
Hongbin Zheng609089f2012-03-30 08:46:18 +000016 PollyCodeGen
Tobias Grosser23156482011-11-22 19:40:24 +000017 PollyExchange
Tobias Grosser75805372011-04-29 06:27:02 +000018 PollySupport
19 PollyJSON
20 )
21
22add_polly_library(LLVMPolly
23 Cloog.cpp
24 CodePreparation.cpp
Tobias Grosser1d348672012-01-31 14:00:27 +000025 DeadCodeElimination.cpp
Tobias Grosser75805372011-04-29 06:27:02 +000026 IndependentBlocks.cpp
Tobias Grossercef36d52012-02-14 14:02:33 +000027 IndVarSimplify.cpp
Tobias Grosser75805372011-04-29 06:27:02 +000028 MayAliasSet.cpp
29 Pocc.cpp
30 RegionSimplify.cpp
Tobias Grosser792509b2011-08-23 22:35:38 +000031 RegisterPasses.cpp
Tobias Grosser30aa24c2011-05-14 19:02:06 +000032 ScheduleOptimizer.cpp
Tobias Grosser75805372011-04-29 06:27:02 +000033 ${POLLY_SCOPLIB_FILES}
34 )
35
36add_dependencies(LLVMPolly
37 PollyAnalysis
Hongbin Zheng609089f2012-03-30 08:46:18 +000038 PollyCodeGen
Tobias Grosser23156482011-11-22 19:40:24 +000039 PollyExchange
Tobias Grosser75805372011-04-29 06:27:02 +000040 PollySupport
41 PollyJSON
42 )
43
44set_target_properties(LLVMPolly
45 PROPERTIES
46 LINKER_LANGUAGE CXX
47 PREFIX "")