[llvm-commits] [polly] r163130 - /polly/trunk/lib/CMakeLists.txt

Tobias Grosser grosser at fim.uni-passau.de
Tue Sep 4 01:19:13 PDT 2012


Author: grosser
Date: Tue Sep  4 03:19:12 2012
New Revision: 163130

URL: http://llvm.org/viewvc/llvm-project?rev=163130&view=rev
Log:
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 at amd.com>

Modified:
    polly/trunk/lib/CMakeLists.txt

Modified: polly/trunk/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CMakeLists.txt?rev=163130&r1=163129&r2=163130&view=diff
==============================================================================
--- polly/trunk/lib/CMakeLists.txt (original)
+++ polly/trunk/lib/CMakeLists.txt Tue Sep  4 03:19:12 2012
@@ -37,6 +37,11 @@
   ${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





More information about the llvm-commits mailing list