Tobias Grosser | 7580537 | 2011-04-29 06:27:02 +0000 | [diff] [blame] | 1 | add_subdirectory(Analysis) |
Hongbin Zheng | 609089f | 2012-03-30 08:46:18 +0000 | [diff] [blame] | 2 | add_subdirectory(CodeGen) |
Tobias Grosser | 2315648 | 2011-11-22 19:40:24 +0000 | [diff] [blame] | 3 | add_subdirectory(Exchange) |
Tobias Grosser | 7580537 | 2011-04-29 06:27:02 +0000 | [diff] [blame] | 4 | add_subdirectory(Support) |
5 | add_subdirectory(JSON) | ||||
6 | |||||
7 | set(MODULE TRUE) | ||||
8 | set(LLVM_NO_RTTI 1) | ||||
9 | |||||
Tobias Grosser | 7580537 | 2011-04-29 06:27:02 +0000 | [diff] [blame] | 10 | if (SCOPLIB_FOUND) |
Tobias Grosser | 2315648 | 2011-11-22 19:40:24 +0000 | [diff] [blame] | 11 | set(POLLY_SCOPLIB_FILES Pocc.cpp) |
Tobias Grosser | 7580537 | 2011-04-29 06:27:02 +0000 | [diff] [blame] | 12 | endif (SCOPLIB_FOUND) |
13 | |||||
14 | set(LLVM_USED_LIBS | ||||
15 | PollyAnalysis | ||||
Hongbin Zheng | 609089f | 2012-03-30 08:46:18 +0000 | [diff] [blame] | 16 | PollyCodeGen |
Tobias Grosser | 2315648 | 2011-11-22 19:40:24 +0000 | [diff] [blame] | 17 | PollyExchange |
Tobias Grosser | 7580537 | 2011-04-29 06:27:02 +0000 | [diff] [blame] | 18 | PollySupport |
19 | PollyJSON | ||||
20 | ) | ||||
21 | |||||
22 | add_polly_library(LLVMPolly | ||||
23 | Cloog.cpp | ||||
24 | CodePreparation.cpp | ||||
Tobias Grosser | 1d34867 | 2012-01-31 14:00:27 +0000 | [diff] [blame] | 25 | DeadCodeElimination.cpp |
Tobias Grosser | 7580537 | 2011-04-29 06:27:02 +0000 | [diff] [blame] | 26 | IndependentBlocks.cpp |
Tobias Grosser | cef36d5 | 2012-02-14 14:02:33 +0000 | [diff] [blame] | 27 | IndVarSimplify.cpp |
Tobias Grosser | 7580537 | 2011-04-29 06:27:02 +0000 | [diff] [blame] | 28 | MayAliasSet.cpp |
29 | Pocc.cpp | ||||
30 | RegionSimplify.cpp | ||||
Tobias Grosser | 792509b | 2011-08-23 22:35:38 +0000 | [diff] [blame] | 31 | RegisterPasses.cpp |
Tobias Grosser | 30aa24c | 2011-05-14 19:02:06 +0000 | [diff] [blame] | 32 | ScheduleOptimizer.cpp |
Tobias Grosser | 7580537 | 2011-04-29 06:27:02 +0000 | [diff] [blame] | 33 | ${POLLY_SCOPLIB_FILES} |
34 | ) | ||||
35 | |||||
36 | add_dependencies(LLVMPolly | ||||
37 | PollyAnalysis | ||||
Hongbin Zheng | 609089f | 2012-03-30 08:46:18 +0000 | [diff] [blame] | 38 | PollyCodeGen |
Tobias Grosser | 2315648 | 2011-11-22 19:40:24 +0000 | [diff] [blame] | 39 | PollyExchange |
Tobias Grosser | 7580537 | 2011-04-29 06:27:02 +0000 | [diff] [blame] | 40 | PollySupport |
41 | PollyJSON | ||||
42 | ) | ||||
43 | |||||
44 | set_target_properties(LLVMPolly | ||||
45 | PROPERTIES | ||||
46 | LINKER_LANGUAGE CXX | ||||
47 | PREFIX "") |