2011-04-29 14:27:02 +08:00
|
|
|
set(LLVM_NO_RTTI 1)
|
|
|
|
|
2012-08-02 15:47:26 +08:00
|
|
|
if (PLUTO_FOUND)
|
2014-06-24 21:31:42 +08:00
|
|
|
set(POLLY_PLUTO_FILES Transform/Pluto.cpp)
|
2012-08-02 15:47:26 +08:00
|
|
|
endif (PLUTO_FOUND)
|
|
|
|
|
2014-03-04 03:30:19 +08:00
|
|
|
set(POLLY_JSON_FILES
|
|
|
|
JSON/json_reader.cpp
|
|
|
|
JSON/json_value.cpp
|
|
|
|
JSON/json_writer.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
if (CLOOG_FOUND)
|
|
|
|
set(CLOOG_FILES
|
|
|
|
CodeGen/Cloog.cpp
|
|
|
|
CodeGen/CodeGeneration.cpp)
|
|
|
|
endif (CLOOG_FOUND)
|
|
|
|
|
|
|
|
set(ISL_CODEGEN_FILES
|
|
|
|
CodeGen/IslAst.cpp
|
2014-07-30 04:50:09 +08:00
|
|
|
CodeGen/IslExprBuilder.cpp
|
2014-03-04 03:30:19 +08:00
|
|
|
CodeGen/IslCodeGeneration.cpp)
|
|
|
|
|
|
|
|
if (GPU_CODEGEN)
|
|
|
|
set (GPGPU_CODEGEN_FILES
|
|
|
|
CodeGen/PTXGenerator.cpp)
|
|
|
|
endif (GPU_CODEGEN)
|
2011-04-29 14:27:02 +08:00
|
|
|
|
2014-03-12 05:26:02 +08:00
|
|
|
add_polly_library(Polly
|
2014-03-04 03:30:19 +08:00
|
|
|
Analysis/Dependences.cpp
|
|
|
|
Analysis/ScopDetection.cpp
|
2014-05-24 17:24:53 +08:00
|
|
|
Analysis/ScopDetectionDiagnostic.cpp
|
2014-03-04 03:30:19 +08:00
|
|
|
Analysis/ScopInfo.cpp
|
|
|
|
Analysis/ScopGraphPrinter.cpp
|
|
|
|
Analysis/ScopPass.cpp
|
|
|
|
Analysis/TempScopInfo.cpp
|
|
|
|
CodeGen/BlockGenerators.cpp
|
|
|
|
${CLOOG_FILES}
|
|
|
|
${ISL_CODEGEN_FILES}
|
|
|
|
CodeGen/LoopGenerators.cpp
|
2014-03-04 22:59:00 +08:00
|
|
|
CodeGen/IRBuilder.cpp
|
2014-03-04 03:30:19 +08:00
|
|
|
CodeGen/Utils.cpp
|
2014-07-26 01:49:55 +08:00
|
|
|
CodeGen/RuntimeDebugBuilder.cpp
|
2014-03-04 03:30:19 +08:00
|
|
|
${GPGPU_CODEGEN_FILES}
|
2014-03-12 05:25:59 +08:00
|
|
|
Exchange/JSONExporter.cpp
|
2014-03-04 03:30:19 +08:00
|
|
|
Support/GICHelper.cpp
|
|
|
|
Support/SCEVValidator.cpp
|
2014-03-12 05:26:06 +08:00
|
|
|
Support/RegisterPasses.cpp
|
2014-03-04 03:30:19 +08:00
|
|
|
Support/ScopHelper.cpp
|
|
|
|
${POLLY_JSON_FILES}
|
2014-03-12 05:25:59 +08:00
|
|
|
Transform/Canonicalization.cpp
|
|
|
|
Transform/CodePreparation.cpp
|
|
|
|
Transform/DeadCodeElimination.cpp
|
|
|
|
Transform/IndependentBlocks.cpp
|
|
|
|
Transform/IndVarSimplify.cpp
|
|
|
|
Transform/ScheduleOptimizer.cpp
|
2012-08-02 15:47:26 +08:00
|
|
|
${POLLY_PLUTO_FILES}
|
2011-04-29 14:27:02 +08:00
|
|
|
)
|
|
|
|
|
2014-03-14 06:07:17 +08:00
|
|
|
# Build a monolithic Polly.a and a thin module LLVMPolly.moduleext that links to
|
|
|
|
# that static library.
|
2014-03-04 05:58:50 +08:00
|
|
|
add_polly_loadable_module(LLVMPolly
|
2014-03-12 05:26:06 +08:00
|
|
|
Polly.cpp
|
2014-03-04 03:30:19 +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
|
2014-03-14 04:29:19 +08:00
|
|
|
add_dependencies(Polly intrinsics_gen)
|
2012-09-04 16:19:12 +08:00
|
|
|
endif()
|
|
|
|
|
2014-03-12 05:26:02 +08:00
|
|
|
target_link_libraries(LLVMPolly Polly)
|
2011-04-29 14:27:02 +08:00
|
|
|
|
|
|
|
set_target_properties(LLVMPolly
|
|
|
|
PROPERTIES
|
|
|
|
LINKER_LANGUAGE CXX
|
|
|
|
PREFIX "")
|