PetScan::set_upper_bounds: extract out PetScan::get_array_size
commit7e7f6dee309af23b32060a7ce25b286b0ee9991e
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 16 Mar 2014 16:46:11 +0000 (16 17:46 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 25 Mar 2014 13:36:29 +0000 (25 14:36 +0100)
tree325a9d6ead3823cb6656436bd15d881a2af37baf
parentbd0ad36c2952277fce1c840c22c487fba79b1498
PetScan::set_upper_bounds: extract out PetScan::get_array_size

Separating out the construction of a size pet_expr will make it
easier to cache these expression in the next commit.
We will later also be able to reuse this method to figure out
which parameters are needed in the size expressions.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc
scan.h