2011-04-29 14:27:02 +08:00
|
|
|
add_subdirectory(Analysis)
|
2012-03-30 16:46:18 +08:00
|
|
|
add_subdirectory(CodeGen)
|
2011-11-23 03:40:24 +08:00
|
|
|
add_subdirectory(Exchange)
|
2011-04-29 14:27:02 +08:00
|
|
|
add_subdirectory(Support)
|
|
|
|
add_subdirectory(JSON)
|
|
|
|
|
|
|
|
set(MODULE TRUE)
|
|
|
|
set(LLVM_NO_RTTI 1)
|
|
|
|
|
|
|
|
if (SCOPLIB_FOUND)
|
2011-11-23 03:40:24 +08:00
|
|
|
set(POLLY_SCOPLIB_FILES Pocc.cpp)
|
2011-04-29 14:27:02 +08:00
|
|
|
endif (SCOPLIB_FOUND)
|
|
|
|
|
|
|
|
set(LLVM_USED_LIBS
|
|
|
|
PollyAnalysis
|
2012-03-30 16:46:18 +08:00
|
|
|
PollyCodeGen
|
2011-11-23 03:40:24 +08:00
|
|
|
PollyExchange
|
2011-04-29 14:27:02 +08:00
|
|
|
PollySupport
|
|
|
|
PollyJSON
|
|
|
|
)
|
|
|
|
|
|
|
|
add_polly_library(LLVMPolly
|
|
|
|
CodePreparation.cpp
|
2012-01-31 22:00:27 +08:00
|
|
|
DeadCodeElimination.cpp
|
2011-04-29 14:27:02 +08:00
|
|
|
IndependentBlocks.cpp
|
2012-02-14 22:02:33 +08:00
|
|
|
IndVarSimplify.cpp
|
2011-04-29 14:27:02 +08:00
|
|
|
MayAliasSet.cpp
|
|
|
|
Pocc.cpp
|
|
|
|
RegionSimplify.cpp
|
2011-08-24 06:35:38 +08:00
|
|
|
RegisterPasses.cpp
|
2011-05-15 03:02:06 +08:00
|
|
|
ScheduleOptimizer.cpp
|
2011-04-29 14:27:02 +08:00
|
|
|
${POLLY_SCOPLIB_FILES}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_dependencies(LLVMPolly
|
|
|
|
PollyAnalysis
|
2012-03-30 16:46:18 +08:00
|
|
|
PollyCodeGen
|
2011-11-23 03:40:24 +08:00
|
|
|
PollyExchange
|
2011-04-29 14:27:02 +08:00
|
|
|
PollySupport
|
|
|
|
PollyJSON
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(LLVMPolly
|
|
|
|
PROPERTIES
|
|
|
|
LINKER_LANGUAGE CXX
|
|
|
|
PREFIX "")
|