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
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
2015-02-05 04:55:43 +08:00
|
|
|
set (ISL_FILES
|
|
|
|
External/isl/basis_reduction_tab.c
|
|
|
|
External/isl/isl_aff.c
|
|
|
|
External/isl/isl_affine_hull.c
|
|
|
|
External/isl/isl_arg.c
|
|
|
|
External/isl/isl_ast_build.c
|
|
|
|
External/isl/isl_ast_build_expr.c
|
|
|
|
External/isl/isl_ast.c
|
|
|
|
External/isl/isl_ast_codegen.c
|
|
|
|
External/isl/isl_ast_graft.c
|
|
|
|
External/isl/isl_band.c
|
|
|
|
External/isl/isl_bernstein.c
|
|
|
|
External/isl/isl_blk.c
|
|
|
|
External/isl/isl_bound.c
|
|
|
|
External/isl/isl_coalesce.c
|
|
|
|
External/isl/isl_constraint.c
|
|
|
|
External/isl/isl_convex_hull.c
|
|
|
|
External/isl/isl_ctx.c
|
|
|
|
External/isl/isl_deprecated.c
|
|
|
|
External/isl/isl_dim.c
|
|
|
|
External/isl/isl_dim_map.c
|
|
|
|
External/isl/isl_equalities.c
|
|
|
|
External/isl/isl_factorization.c
|
|
|
|
External/isl/isl_farkas.c
|
|
|
|
External/isl/isl_flow.c
|
|
|
|
External/isl/isl_fold.c
|
|
|
|
External/isl/isl_hash.c
|
|
|
|
External/isl/isl_id.c
|
|
|
|
External/isl/isl_id_to_ast_expr.c
|
|
|
|
External/isl/isl_id_to_pw_aff.c
|
|
|
|
External/isl/isl_ilp.c
|
|
|
|
External/isl/isl_imath.c
|
|
|
|
External/isl/isl_input.c
|
|
|
|
External/isl/isl_local_space.c
|
|
|
|
External/isl/isl_lp.c
|
|
|
|
External/isl/isl_map.c
|
|
|
|
External/isl/isl_map_simplify.c
|
|
|
|
External/isl/isl_map_subtract.c
|
|
|
|
External/isl/isl_map_to_basic_set.c
|
|
|
|
External/isl/isl_mat.c
|
|
|
|
External/isl/isl_morph.c
|
|
|
|
External/isl/isl_obj.c
|
|
|
|
External/isl/isl_options.c
|
|
|
|
External/isl/isl_output.c
|
|
|
|
External/isl/isl_point.c
|
|
|
|
External/isl/isl_polynomial.c
|
|
|
|
External/isl/isl_printer.c
|
|
|
|
External/isl/isl_range.c
|
|
|
|
External/isl/isl_reordering.c
|
|
|
|
External/isl/isl_sample.c
|
|
|
|
External/isl/isl_scan.c
|
|
|
|
External/isl/isl_schedule.c
|
|
|
|
External/isl/isl_scheduler.c
|
|
|
|
External/isl/isl_seq.c
|
|
|
|
External/isl/isl_set_list.c
|
|
|
|
External/isl/isl_sort.c
|
|
|
|
External/isl/isl_space.c
|
|
|
|
External/isl/isl_stream.c
|
|
|
|
External/isl/isl_tab.c
|
|
|
|
External/isl/isl_tab_pip.c
|
|
|
|
External/isl/isl_tarjan.c
|
|
|
|
External/isl/isl_transitive_closure.c
|
|
|
|
External/isl/isl_union_map.c
|
|
|
|
External/isl/isl_val.c
|
|
|
|
External/isl/isl_val_imath.c
|
|
|
|
External/isl/isl_vec.c
|
|
|
|
External/isl/isl_version.c
|
|
|
|
External/isl/isl_vertices.c
|
|
|
|
External/isl/print.c
|
|
|
|
External/isl/imath/gmp_compat.c
|
|
|
|
External/isl/imath/imath.c
|
|
|
|
External/isl/imath/imrat.c
|
|
|
|
External/isl/imath/iprime.c
|
|
|
|
External/isl/imath/pi.c
|
|
|
|
External/isl/imath/rsamath.c
|
|
|
|
)
|
|
|
|
|
|
|
|
|
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
|
|
|
|
${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/ScheduleOptimizer.cpp
|
2012-08-02 15:47:26 +08:00
|
|
|
${POLLY_PLUTO_FILES}
|
2015-02-05 04:55:43 +08:00
|
|
|
${ISL_FILES}
|
2011-04-29 14:27:02 +08:00
|
|
|
)
|
|
|
|
|
2015-02-12 16:27:19 +08:00
|
|
|
if (BUILD_SHARED_LIBS)
|
|
|
|
target_link_libraries(Polly
|
|
|
|
LLVMSupport
|
|
|
|
LLVMCore
|
|
|
|
LLVMScalarOpts
|
|
|
|
LLVMInstCombine
|
|
|
|
LLVMTransformUtils
|
|
|
|
LLVMAnalysis
|
|
|
|
LLVMipo
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
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 "")
|