isl_ast_expr_from_aff: separate out rational part of expression
commitdd50cffbe69ade6439882cae38eca5b7398fb545
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 8 Jul 2013 11:27:04 +0000 (8 13:27 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 11 Jul 2013 12:56:09 +0000 (11 14:56 +0200)
tree484802b5ef471b79357e0e8c206dc2b959fc1849
parent582a1d2d3cba25fb8e33fc3b0dca56783b4852b0
isl_ast_expr_from_aff: separate out rational part of expression

Or rather, separate out the integer part of a rational expression.
For example, construct

x + y/2

instead of

(2 * x + y)/2

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
13 files changed:
isl_ast_build_expr.c
test_inputs/codegen/cloog/darte.c
test_inputs/codegen/cloog/equality2.c
test_inputs/codegen/cloog/nul_complex1.c
test_inputs/codegen/cloog/pouchet.c
test_inputs/codegen/cloog/reservoir-cholesky2.c
test_inputs/codegen/cloog/reservoir-lim-lam1.c
test_inputs/codegen/cloog/reservoir-liu-zhuge1.c
test_inputs/codegen/omega/p.delft2-0.c
test_inputs/codegen/separate2.c
test_inputs/codegen/shift2.c
test_inputs/codegen/stride5.c
test_inputs/codegen/unroll4.c