summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2012-09-04 08:19:12 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2012-09-04 08:19:12 +0000
commitad41c4ce20ab92e679458c94767542cb965719f6 (patch)
tree3a872886cb9ede6da7ffe66847aced29d0b589d6
parentc942e6b781040187516ccf10be2bc83d1c097b59 (diff)
downloadbcm5719-llvm-ad41c4ce20ab92e679458c94767542cb965719f6.tar.gz
bcm5719-llvm-ad41c4ce20ab92e679458c94767542cb965719f6.zip
Add dependency to intrinsics_gen
The IndVarSimplify pass in Polly uses the intrinsics header. We need to ensure that the header is generated, before we use it. This patch fixes the problem for the cmake build (it did not show up in the autoconf one). Contributed by: Sameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com> llvm-svn: 163130
-rwxr-xr-xpolly/lib/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/polly/lib/CMakeLists.txt b/polly/lib/CMakeLists.txt
index b73301eb02c..933bbc3ea6c 100755
--- a/polly/lib/CMakeLists.txt
+++ b/polly/lib/CMakeLists.txt
@@ -37,6 +37,11 @@ add_polly_loadable_module(LLVMPolly
${POLLY_PLUTO_FILES}
)
+if (TARGET intrinsics_gen)
+ # Check if we are building as part of an LLVM build
+ add_dependencies(LLVMPolly intrinsics_gen)
+endif()
+
add_dependencies(LLVMPolly
PollyAnalysis
PollyCodeGen
OpenPOWER on IntegriCloud