diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2012-09-04 08:19:12 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2012-09-04 08:19:12 +0000 |
commit | ad41c4ce20ab92e679458c94767542cb965719f6 (patch) | |
tree | 3a872886cb9ede6da7ffe66847aced29d0b589d6 /polly | |
parent | c942e6b781040187516ccf10be2bc83d1c097b59 (diff) | |
download | llvm-ad41c4ce20ab92e679458c94767542cb965719f6.zip llvm-ad41c4ce20ab92e679458c94767542cb965719f6.tar.gz llvm-ad41c4ce20ab92e679458c94767542cb965719f6.tar.bz2 |
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
Diffstat (limited to 'polly')
-rwxr-xr-x | polly/lib/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/polly/lib/CMakeLists.txt b/polly/lib/CMakeLists.txt index b73301e..933bbc3 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 |