pet_check_code: op_expr_extract_pw_aff: handle more types of expressions
commit6dfbe4235558da14accb363b85a37833c224abec
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 13 Dec 2013 17:22:46 +0000 (13 18:22 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 24 Mar 2014 16:32:10 +0000 (24 17:32 +0100)
treec0b25b36af1f58d7f10b2a8add09d63a98b8b2e3
parent5da715c44880353c726513295e851ead8e26a261
pet_check_code: op_expr_extract_pw_aff: handle more types of expressions

In the next commit we will stop trying to convert conditional operators
to affine expressions during the first phase of parsing.
This means that if such an operator is used outside an index expression,
then it will no longer be converted to an affine expression.
Since the isl AST generator may print variable assignments that
include conditional operators, we need to handle any type of expressions
that can appear as arguments to such an operator.

Note that further down the refactoring, we will be able to reuse
pet_expr_extract_affine from pet_check_code.c.  We therefore only
add support for those operations that are needed to pass the tests.

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