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)
|
|
|
|
|
2012-08-02 15:47:26 +08:00
|
|
|
if (PLUTO_FOUND)
|
|
|
|
set(POLLY_PLUTO_FILES Pluto.cpp)
|
|
|
|
endif (PLUTO_FOUND)
|
|
|
|
|
2011-04-29 14:27:02 +08:00
|
|
|
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
|
|
|
|
)
|
|
|
|
|
2012-08-03 15:12:07 +08:00
|
|
|
add_polly_loadable_module(LLVMPolly
|
2011-04-29 14:27:02 +08:00
|
|
|
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
|
|
|
Pocc.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}
|
2012-08-02 15:47:26 +08:00
|
|
|
${POLLY_PLUTO_FILES}
|
2011-04-29 14:27:02 +08:00
|
|
|
)
|
|
|
|
|
2012-09-04 16:19:12 +08:00
|
|
|
if (TARGET intrinsics_gen)
|
|
|
|
# Check if we are building as part of an LLVM build
|
|
|
|
add_dependencies(LLVMPolly intrinsics_gen)
|
|
|
|
endif()
|
|
|
|
|
2011-04-29 14:27:02 +08:00
|
|
|
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 "")
|
2012-08-02 15:47:26 +08:00
|
|
|
|
|
|
|
if (PLUTO_FOUND)
|
|
|
|
target_link_libraries(LLVMPolly ${PLUTO_LIBRARY})
|
|
|
|
endif(PLUTO_FOUND)
|