[Minor] Change the number of cut lines for new tests

  This should cut all metadata community clang produces.



git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215422 91177308-0d34-0410-b5e6-96231b3b80d8
[Refactor] Cleanup runtime code generation

  + Use regexp in two test case.
  + Refactor the runtime condition build function


git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215466 91177308-0d34-0410-b5e6-96231b3b80d8
Fix formatting

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215528 91177308-0d34-0410-b5e6-96231b3b80d8
[Polly] Remove the PoCC and ScopLib support

  Remove the PoCC and ScopLib support from Polly as we do not have a
  user/maintainer for it.

Differential Revision: http://reviews.llvm.org/D4871



git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215563 91177308-0d34-0410-b5e6-96231b3b80d8
Fix formatting

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215570 91177308-0d34-0410-b5e6-96231b3b80d8
Revert to heuristical DebugLoc finding

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215623 91177308-0d34-0410-b5e6-96231b3b80d8
Do not assert when trying to replace the log with another log

This usually happens when TempScopInfo calls isMaxRegionInScop(..),
so don't fail there.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215624 91177308-0d34-0410-b5e6-96231b3b80d8
Use a snapshot of the aliasing pointers

Store the llvm::Value pointers of the AliasSet instead of the AliasSet
itself.

We have to be careful about changed IR when the message is generated,
because the Value pointers might not exist anymore. This would render
the Diagnostic invalid. For now we just assert there.

Simply do not retreive a diagnostic message after the IR has changed
it's not valid information anyway.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215625 91177308-0d34-0410-b5e6-96231b3b80d8
Cleanup RejectLog code

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215626 91177308-0d34-0410-b5e6-96231b3b80d8
Add print method to RejectLog

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215627 91177308-0d34-0410-b5e6-96231b3b80d8
Added support for modulo expressions

  The support is limited to signed modulo access and condition
  expressions with a constant right hand side, e.g., A[i % 2] or
  A[i % 9]. Test cases are modified according to this new feature and
  new test cases are added.

Differential Revision: http://reviews.llvm.org/D4843


git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215684 91177308-0d34-0410-b5e6-96231b3b80d8
Revert "Added support for modulo expressions"

This reverts commit 215684. The intention of the commit is great, but
unfortunately it seems to be the cause of 14 LNT test suite failures:

http://lab.llvm.org:8011/builders/perf-x86_64-penryn-O3-polly/builds/116

To make our buildbots and performance testers green until this issue is solved,
we temporarily revert this commit.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215816 91177308-0d34-0410-b5e6-96231b3b80d8
Revert "[Refactor] Cleanup runtime code generation"

This reverts commit 215466 (and 215528, a trivial formatting fix).

The intention of these commits is a good one, but unfortunately they broke
our LNT buildbot:

http://lab.llvm.org:8011/builders/perf-x86_64-penryn-O3-polly-codegen-isl

Several of the cleanup changes that have been combined in this 'fixup' are
trivial and could probably be committed as obvious changes without risking to
break the build. The remaining changes are little and it should be easy to
figure out what went wrong.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215817 91177308-0d34-0410-b5e6-96231b3b80d8
Diagnostic: Enable error tracking by default

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215829 91177308-0d34-0410-b5e6-96231b3b80d8
Diagnostic: Provide end-user message for aliasing errors

This will spill out information about LLVM-internals. However, in cases
where the name of the Value matches the name of the array in the source,
we provide more useful information. In cases where we spill internals,
the information still might help the user to pin down the correct
arrays.
The problem we face here is: The error is pinned to the debug location
of one of the offending values out of the alias set instead of all of them.

The more information we give the user about the set of aliasing
pointers the better.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215830 91177308-0d34-0410-b5e6-96231b3b80d8
Diagnostic: Provide end-user message for non-affine access function errors

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215831 91177308-0d34-0410-b5e6-96231b3b80d8
Diagnostic: Provide end-user message for non-affine loop bound errors

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@215832 91177308-0d34-0410-b5e6-96231b3b80d8
Added arcanist linters and cleaned errors and warnings

  Arcanist (arc) will now always run linters before uploading any new
  commit to Phabricator. All errors/warnings (or their absence) will be
  shown in the web interface together with a explanation by the commiter
  (arcanist will ask the commiter if the build was not clean).

  The linters include:
    - clang-format
    - spelling check
    - permissions check (aka. chmod)
    - filename check
    - merge conflict marker check
  Note, that their scope is sometimes limited (see .arclint for
  details).

  This commit also fixes all errors and warnings these linters reported,
  namely:
    - spelling mistakes and typos
    - executable permissions for various text files

Differential Revision: http://reviews.llvm.org/D4916



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