Add iterators for the ArrayInfo objects of the scop
authorTobias Grosser <tobias@grosser.es>
Wed, 6 May 2015 10:05:20 +0000 (10:05 +0000)
committerTobias Grosser <tobias@grosser.es>
Wed, 6 May 2015 10:05:20 +0000 (10:05 +0000)
commite71ed1984188faa93e9409d91c21dc721dfdf162
tree684c341fa3cec464087c3f84f95108d1bdf54214
parent179ceff1602f8a7afaaf412da1135ec987ac0bf6
Add iterators for the ArrayInfo objects of the scop

This patch also changes the implementation of the ArrayInfoMap to a MapVector
which will ensure that iterating over the list of ArrayInfo objects gives
predictable results. The single loop that currently enumerates the ArrayInfo
objects only frees the individual objectes, hence a possibly changing
iteration order does not affect the outcome. The added robustness is for
future users of this interface.

llvm-svn: 236583
polly/include/polly/ScopInfo.h
polly/lib/Analysis/ScopInfo.cpp