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
This commit is contained in:
Tobias Grosser 2012-09-04 08:19:12 +00:00
parent c942e6b781
commit ad41c4ce20
1 changed files with 5 additions and 0 deletions

View File

@ -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