add pet_expr_from_index_and_depth wrapper
commit0893bec607620d4be9637ad6e3bc9e6a7d959992
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 1 Jul 2013 08:46:58 +0000 (1 10:46 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 27 Jul 2013 09:09:09 +0000 (27 11:09 +0200)
tree1c7f2c9a28a3b849a20ce6d70e5f4cdc6dd11264
parent763ddc8c50b56d1b5f896804a1c215aef91c940d
add pet_expr_from_index_and_depth wrapper

If an index expression is extracted from the source code, then the
number of indices may be smaller than the depth of the array.
In such cases, the pet_expr_from_index will not construct the correct
access relation.  We therefore add an additional wrapper that takes
an index expression and the depth of the array.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scop.c
scop.h