autoconf: isl depends on gmp include files

When libgmp header files are not installed in the default /usr/include location,
configure used to fail to find the gmp headers when testing for isl/ast.h.  This
patch adds the gmp include path to the compiler flags before testing for ISL.

Merged from https://llvm.org/svn/llvm-project/polly/trunk@168090

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170725 91177308-0d34-0410-b5e6-96231b3b80d8
utils: remove existing cloog and isl dirs before git cloning

Patch adapted from "Dmitry N. Mikushin" <maemarcus@gmail.com>.

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168250

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170730 91177308-0d34-0410-b5e6-96231b3b80d8
utils: remove the isl directory after cloning cloog

This fixes my previous commit, thanks to "Dmitry N. Mikushin"
<maemarcus@gmail.com>

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168252

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170731 91177308-0d34-0410-b5e6-96231b3b80d8
utils: use rmdir instead of rm to remove empty dirs

as suggested by Sven Verdoolaege <skimo-polly@kotnet.org>

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168279

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170732 91177308-0d34-0410-b5e6-96231b3b80d8
Make polly -Wdocumentation clean

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168311

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170733 91177308-0d34-0410-b5e6-96231b3b80d8
remove unused flag

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168620

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170734 91177308-0d34-0410-b5e6-96231b3b80d8
remove dead code

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168621

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170735 91177308-0d34-0410-b5e6-96231b3b80d8
remove dependence on CLOOG_FOUND for PollyVectorizerChoice

When polly was configured with cmake without cloog, compilation stopped with:

../tools/polly/lib/CodeGen/BlockGenerators.cpp:662: error: 'PollyVectorizerChoice' was not declared in this scope
../tools/polly/lib/CodeGen/BlockGenerators.cpp:662: error: 'VECTORIZER_FIRST_NEED_GROUPED_UNROLL' was not declared in this scope

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168623

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170736 91177308-0d34-0410-b5e6-96231b3b80d8
fix typo

Caught while compiling polly without cloog:

../tools/polly/lib/RegisterPasses.cpp:77: error: use of enum 'CodegenChoice' without previous declaration

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168624

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170737 91177308-0d34-0410-b5e6-96231b3b80d8
do not require cloog from configure

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168628

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170738 91177308-0d34-0410-b5e6-96231b3b80d8
make IslAstInfo::printScop compatible with CloogInfo::printScop

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168714

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170739 91177308-0d34-0410-b5e6-96231b3b80d8
do not execute the OpenMP tests when cloog is not found

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168724

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170740 91177308-0d34-0410-b5e6-96231b3b80d8
cmake: Fix installation of include files

Install the configured Config/config.h file, rather than the
Config/config.h.cmake and Config/Config.h.in source files.

Contributed-by: Richard Membarth <richard.membarth@informatik.uni-erlangen.de>

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168780

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170741 91177308-0d34-0410-b5e6-96231b3b80d8
Fix tests with broken datalayout strings.

Buildbot failure at r168785.

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168791

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170742 91177308-0d34-0410-b5e6-96231b3b80d8
Update to Polly for LLVM r165262 which changes TargetData to Datalayout.

Contributed by: Yabin Hu <yabin.hwu@gmail.com>

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168903

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170743 91177308-0d34-0410-b5e6-96231b3b80d8
Add an additional input argument according to chanages of function polly::createLoop.

Contributed-by:  Yabin Hu <yabin.hwu@gmail.com>

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168964

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170744 91177308-0d34-0410-b5e6-96231b3b80d8
Remove unneeded preservation and restore of ValueMap and ClastVars in GPGPU code
generation.

We don't use the exact same way to build loop body for GPGPU codegen as openmp
codegen and other transformations do currently, in which cases 'createLoop'
function is called recursively. GPGPU codegen may fail due to improper restore
of ValueMap and ClastVars .

Contributed by:  Yabin Hu <yabin.hwu@gmail.com>

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168966

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170745 91177308-0d34-0410-b5e6-96231b3b80d8
Update the recommended isl version

Recent changes in isl:

- Allow analysis of loops during code generation

This simplifies the detection of parallel loops.

- Simplify the way costumized ast printers are defined

This enables us to highlight parallel / vector loops in our debug output.

- Compile time improvements for codegen contexts that include parameters

- Various bug fixes

This update also gets us in sync for the isl 0.11 release.

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@169100

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170746 91177308-0d34-0410-b5e6-96231b3b80d8
Use isl 0.11

We now switch to the newly released isl 0.11. This adds a couple of bug fixes
on top of the recent update.

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@169127

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170747 91177308-0d34-0410-b5e6-96231b3b80d8
Update CLooG

This cloog versions passes all tests with isl 0.11.

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@169150

git-svn-id: https://llvm.org/svn/llvm-project/polly/branches/release_32@170748 91177308-0d34-0410-b5e6-96231b3b80d8