isl_aff_domain_offset: extract out isl_aff_domain_var_offset
commitf6ce07eefeeb0fe365c1252a2d05481b345dd13b
authorSven Verdoolaege <sven@cerebras.net>
Mon, 5 Jun 2023 11:46:36 +0000 (5 13:46 +0200)
committerSven Verdoolaege <sven@cerebras.net>
Sun, 28 Jan 2024 12:51:59 +0000 (28 13:51 +0100)
tree555d05d87c3346d4358ce885a82e2ca854f64a53
parent54c6df387295875dcc0c3c974f197dbdca3c8856
isl_aff_domain_offset: extract out isl_aff_domain_var_offset

isl_aff_domain_offset returns the position of the coefficients
of a given type in the domain, while in some cases it is more convenient
to think in terms of the position among the variables of the domain.
isl_aff_domain_var_offset returns this position.

Signed-off-by: Sven Verdoolaege <sven@cerebras.net>
isl_aff.c