[NFC][ScopBuilder] Move RecordedAssumptions vector to ScopBuilder
authorDominik Adamski <adamski.dominik@gmail.com>
Sun, 19 Jan 2020 22:50:01 +0000 (23:50 +0100)
committerDominik Adamski <adamski.dominik@gmail.com>
Thu, 23 Jan 2020 23:09:01 +0000 (00:09 +0100)
commit71544135673e5d88bd2d2878a2df75969277fab9
treea56f9a3e577f3f49e930b8c478f23e670667c8be
parentaf3c243e9962cdc92ca3e9b82656351649ed109a
[NFC][ScopBuilder] Move RecordedAssumptions vector to ScopBuilder

Scope of changes:

1) Moved RecordedAssumptions vector to ScopBuilder. RecordedAssumptions are used only for Scop constructions.
2) Moved definition of RecordedAssumptionsTy to ScopHelper. It is required both by ScopBuilder and SCEVAffinator.
3) Add new function recordAssumption to ScopHelper. One of its argument is a reference to RecordedAssumption vector. This function is used by ScopBuilder and SCEVAffinator.
4) All RecordedAssumptions are created by ScopBuilder. isl::pw_aff
objects for corresponding SCEVs are created inside ScopBuilder. Scop
functions do not record any assumptions. Scop can use isl::pw_aff
objects which were created by ScopBuilder.
5) Removed functions for handling RecordedAssumptions from Scop class.
6) Removed constness from getScopArrayInfo functions.
7) Replaced SCEVVisitor struct from SCEVAffinator with taylored version, which allow to pass pointer to RecordedAssumptions as function argument.

Differential Revision: https://reviews.llvm.org/D68056
polly/include/polly/ScopBuilder.h
polly/include/polly/ScopInfo.h
polly/include/polly/Support/SCEVAffinator.h
polly/include/polly/Support/ScopHelper.h
polly/lib/Analysis/ScopBuilder.cpp
polly/lib/Analysis/ScopInfo.cpp
polly/lib/Support/SCEVAffinator.cpp
polly/lib/Support/ScopHelper.cpp