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
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
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
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
Make polly -Wdocumentation clean

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

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

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168621
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
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
do not require cloog from configure

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168628
make IslAstInfo::printScop compatible with CloogInfo::printScop

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168714
do not execute the OpenMP tests when cloog is not found

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168724
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
Fix tests with broken datalayout strings.

Buildbot failure at r168785.

Merged from: https://llvm.org/svn/llvm-project/polly/trunk@168791
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
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
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
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
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
Update CLooG

This cloog versions passes all tests with isl 0.11.

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