isl_hash_{space,space_domain}: extract out shared parameter hashing
commit31e33444ef584374f43cf00bf1ca69420440cbec
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 20 Apr 2017 11:36:04 +0000 (20 13:36 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Thu, 25 May 2017 14:13:31 +0000 (25 16:13 +0200)
tree3f6f00ee57cea1b47d6f9d0ba6f87b45a0b30520
parent40feb7abd70bcf9aea434ef1e766c59a320c491a
isl_hash_{space,space_domain}: extract out shared parameter hashing

isl_space_get_hash takes into account both the parameters and
the tuples.  In some cases, it can by convenient to be able
to ignore the parameters.  A new function isl_space_get_tuple_hash
will be introduced for this purpose, which will (conceptually)
share the handling of the tuples with isl_space_get_hash.
In order to also be able to share the code for handling tuples,
it first needs to be separated from the handling of parameters.
This separation is performed by this commit,
which also removes some code duplication.

Since the handling or parameters and tuples was intermixed,
the separation results in changes in the hash values and
subsequently in changes in the AST generation output.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
27 files changed:
isl_space.c
test_inputs/codegen/cloog/classen.c
test_inputs/codegen/cloog/dealII.c
test_inputs/codegen/cloog/dot2.c
test_inputs/codegen/cloog/gauss.c
test_inputs/codegen/cloog/gesced.c
test_inputs/codegen/cloog/gesced2.c
test_inputs/codegen/cloog/lineality-2-1-2.c
test_inputs/codegen/cloog/mode.c
test_inputs/codegen/cloog/test.c
test_inputs/codegen/cloog/vivien.c
test_inputs/codegen/cloog/vivien2.c
test_inputs/codegen/cloog/yosr2.c
test_inputs/codegen/correlation.c
test_inputs/codegen/empty.c
test_inputs/codegen/omega/if_then-1.c
test_inputs/codegen/omega/if_then-2.c
test_inputs/codegen/omega/if_then-3.c
test_inputs/codegen/omega/iter9-0.c
test_inputs/codegen/omega/m12-1.c
test_inputs/codegen/omega/wak1-0.c
test_inputs/codegen/omega/wak1-1.c
test_inputs/codegen/omega/wak2-1.c
test_inputs/codegen/pldi2012/figure7_b.c
test_inputs/codegen/pldi2012/figure7_c.c
test_inputs/codegen/pldi2012/figure7_d.c
test_inputs/codegen/shift2.c