int isl_map_fast_input_is_fixed(struct isl_map *map,
unsigned in, isl_int *val);
+int isl_map_fast_is_fixed(struct isl_map *map,
+ enum isl_dim_type type, unsigned pos, isl_int *val);
struct isl_map *isl_map_coalesce(struct isl_map *map);
isl_basic_map_offset(bmap, type) - 1 + pos, val);
}
+int isl_map_fast_is_fixed(struct isl_map *map,
+ enum isl_dim_type type, unsigned pos, isl_int *val)
+{
+ if (pos >= isl_map_dim(map, type))
+ return -1;
+ return isl_map_fast_has_fixed_var(map,
+ map_offset(map, type) - 1 + pos, val);
+}
+
/* Check if dimension dim has fixed value and if so and if val is not NULL,
* then return this fixed value in *val.
*/