[cmake] Make CLooG optional

CLooG is already optional in the autoconf build.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@174872 91177308-0d34-0410-b5e6-96231b3b80d8
[isl-codegen]: Fix off by one in getNumberOfIterations

We need to remove one dimension. Any is correct as long as it exists. We have
choosen for whatever reason the dimension #dims - 2. This is incorrect if
there is just one dimension. For CLooG this case did never happen. For isl
however, the case can happen and causes undefined behavior including crashes.
We choose now always the last dimension #dims - 1. We could have choosen
dimension '0' but the last dimension is what we remove conceptionally in the
algorithm, so it seems better to actually program it that way.

While at it remove another piece of undefined behavior.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@174894 91177308-0d34-0410-b5e6-96231b3b80d8
Use documented isl function

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175011 91177308-0d34-0410-b5e6-96231b3b80d8
clang-format a file

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175012 91177308-0d34-0410-b5e6-96231b3b80d8
cmake: add command polly-check-format

This command runs clang-format on all files and reports formatting problems

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175170 91177308-0d34-0410-b5e6-96231b3b80d8
Report formatting problems as with 'diff -u'

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175171 91177308-0d34-0410-b5e6-96231b3b80d8
clang-format: Really check all files

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175174 91177308-0d34-0410-b5e6-96231b3b80d8
Formatting fixes

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175177 91177308-0d34-0410-b5e6-96231b3b80d8
Do not run formatting checks by default

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175178 91177308-0d34-0410-b5e6-96231b3b80d8
add LoopToScev maps

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175295 91177308-0d34-0410-b5e6-96231b3b80d8
use apply and ScevParameterRewriter::rewrite instead of SCEVRewriter

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175296 91177308-0d34-0410-b5e6-96231b3b80d8
add NestLoops to remove some uses of IVS

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175303 91177308-0d34-0410-b5e6-96231b3b80d8
don't store a pointer to the loop in IVS

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175304 91177308-0d34-0410-b5e6-96231b3b80d8
check that clang-format exists

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175305 91177308-0d34-0410-b5e6-96231b3b80d8
capitalize SCEV to match the current naming convention

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175306 91177308-0d34-0410-b5e6-96231b3b80d8
CodeGen: clang-format

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175872 91177308-0d34-0410-b5e6-96231b3b80d8
Support: clang-format

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175874 91177308-0d34-0410-b5e6-96231b3b80d8
Use attributes references on call/invoke instructions.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@175881 91177308-0d34-0410-b5e6-96231b3b80d8
ScopGraphPrinter: Add option to print source code inside of graph nodes

With the option "-dot-scops-source", source code is printed inside of
the scop graph nodes.
The llvm-ir code needs debbuging information to get this working (for
Clang use -g switch).
ScopGraphPrinter: Add option to show profiling information in graph nodes

With the option "-dot-scops-profiling-data", profiling information
(percent of samples that hit this basic block) is printed at the top of
each scop graph node.

The option expects the path to the profiling data file as argument. This
file must have the following format:
Percentage  FileName  LineNumber

For example:
23.42 main.cc 123
42.23 ./util/foo.cc 42
11.5 ./util/bar.cc 56