/* * Copyright 2011 Sven Verdoolaege * Copyright 2012-2013 Ecole Normale Superieure * * Use of this software is governed by the MIT license * * Written by Sven Verdoolaege, * Ecole Normale Superieure, 45 rue d'Ulm, 75230 Paris, France */ #include <isl/space.h> #include <isl_multi_macro.h> const char *FN(MULTI(BASE),get_tuple_name)(__isl_keep MULTI(BASE) *multi, enum isl_dim_type type) { … } /* Does the specified tuple have an id? */ isl_bool FN(MULTI(BASE),has_tuple_id)(__isl_keep MULTI(BASE) *multi, enum isl_dim_type type) { … } /* Does the (range) tuple of "multi" have an identifier? * * Technically, the implementation should use isl_dim_set if "multi" * lives in a set space and isl_dim_out if it lives in a map space. * Internally, however, it can be assumed that isl_dim_set is equal * to isl_dim_out. */ isl_bool FN(MULTI(BASE),has_range_tuple_id)(__isl_keep MULTI(BASE) *multi) { … } /* Return the id of the specified tuple. */ __isl_give isl_id *FN(MULTI(BASE),get_tuple_id)(__isl_keep MULTI(BASE) *multi, enum isl_dim_type type) { … } /* Return the identifier of the (range) tuple of "multi", assuming it has one. * * Technically, the implementation should use isl_dim_set if "multi" * lives in a set space and isl_dim_out if it lives in a map space. * Internally, however, it can be assumed that isl_dim_set is equal * to isl_dim_out. */ __isl_give isl_id *FN(MULTI(BASE),get_range_tuple_id)( __isl_keep MULTI(BASE) *multi) { … } __isl_give MULTI(BASE) *FN(MULTI(BASE),set_tuple_name)( __isl_keep MULTI(BASE) *multi, enum isl_dim_type type, const char *s) { … } __isl_give MULTI(BASE) *FN(MULTI(BASE),set_tuple_id)( __isl_take MULTI(BASE) *multi, enum isl_dim_type type, __isl_take isl_id *id) { … } /* Replace the identifier of the (range) tuple of "multi" by "id". * * Technically, the implementation should use isl_dim_set if "multi" * lives in a set space and isl_dim_out if it lives in a map space. * Internally, however, it can be assumed that isl_dim_set is equal * to isl_dim_out. */ __isl_give MULTI(BASE) *FN(MULTI(BASE),set_range_tuple_id)( __isl_take MULTI(BASE) *multi, __isl_take isl_id *id) { … } /* Drop the id on the specified tuple. */ __isl_give MULTI(BASE) *FN(MULTI(BASE),reset_tuple_id)( __isl_take MULTI(BASE) *multi, enum isl_dim_type type) { … } /* Drop the identifier of the (range) tuple of "multi". * * Technically, the implementation should use isl_dim_set if "multi" * lives in a set space and isl_dim_out if it lives in a map space. * Internally, however, it can be assumed that isl_dim_set is equal * to isl_dim_out. */ __isl_give MULTI(BASE) *FN(MULTI(BASE),reset_range_tuple_id)( __isl_take MULTI(BASE) *multi) { … }