1 #ifndef ISL_SPACE_PRIVATE 2 #define ISL_SPACE_PRIVATE 3 4 #include <isl/space.h> 5 #include <isl/hash.h> 6 #include <isl/id_type.h> 7 8 struct isl_name; 9 struct isl_space { 10 int ref; 11 12 struct isl_ctx *ctx; 13 14 unsigned nparam; 15 unsigned n_in; /* zero for sets */ 16 unsigned n_out; /* dim for sets */ 17 18 isl_id *tuple_id[2]; 19 isl_space *nested[2]; 20 21 unsigned n_id; 22 isl_id **ids; 23 }; 24 25 __isl_give isl_space *isl_space_cow(__isl_take isl_space *space); 26 27 __isl_give isl_space *isl_space_underlying(__isl_take isl_space *space, 28 unsigned n_div); 29 30 uint32_t isl_space_get_tuple_hash(__isl_keep isl_space *space); 31 uint32_t isl_space_get_tuple_domain_hash(__isl_keep isl_space *space); 32 uint32_t isl_space_get_full_hash(__isl_keep isl_space *space); 33 34 isl_bool isl_space_has_domain_tuples(__isl_keep isl_space *space1, 35 __isl_keep isl_space *space2); 36 isl_bool isl_space_has_range_tuples(__isl_keep isl_space *space1, 37 __isl_keep isl_space *space2); 38 isl_stat isl_space_check_domain_tuples(__isl_keep isl_space *space1, 39 __isl_keep isl_space *space2); 40 isl_bool isl_space_is_domain_internal(__isl_keep isl_space *space1, 41 __isl_keep isl_space *space2); 42 isl_bool isl_space_is_range_internal(__isl_keep isl_space *space1, 43 __isl_keep isl_space *space2); 44 isl_stat isl_space_check_domain_wrapped_domain_tuples( 45 __isl_keep isl_space *space1, __isl_keep isl_space *space2); 46 isl_bool isl_space_wrapped_tuple_is_equal(__isl_keep isl_space *space1, 47 enum isl_dim_type outer, enum isl_dim_type inner, 48 __isl_keep isl_space *space2, enum isl_dim_type type2); 49 isl_stat isl_space_check_wrapped_tuple_is_equal(__isl_keep isl_space *space1, 50 enum isl_dim_type outer, enum isl_dim_type inner, 51 __isl_keep isl_space *space2, enum isl_dim_type type2); 52 53 isl_size isl_space_wrapped_dim(__isl_keep isl_space *space, 54 enum isl_dim_type outer, enum isl_dim_type inner); 55 unsigned isl_space_offset(__isl_keep isl_space *space, enum isl_dim_type type); 56 57 isl_stat isl_space_check_range(__isl_keep isl_space *space, 58 enum isl_dim_type type, unsigned first, unsigned n); 59 isl_stat isl_space_check_is_set(__isl_keep isl_space *space); 60 isl_bool isl_space_may_be_set(__isl_keep isl_space *space); 61 isl_bool isl_space_is_named_or_nested(__isl_keep isl_space *space, 62 enum isl_dim_type type); 63 isl_bool isl_space_has_equal_ids(__isl_keep isl_space *space1, 64 __isl_keep isl_space *space2); 65 isl_bool isl_space_has_named_params(__isl_keep isl_space *space); 66 isl_stat isl_space_check_named_params(__isl_keep isl_space *space); 67 isl_stat isl_space_check_equal_params(__isl_keep isl_space *space1, 68 __isl_keep isl_space *space2); 69 isl_stat isl_space_check_equal_tuples(__isl_keep isl_space *space1, 70 __isl_keep isl_space *space2); 71 __isl_give isl_space *isl_space_reset(__isl_take isl_space *space, 72 enum isl_dim_type type); 73 __isl_give isl_space *isl_space_flatten(__isl_take isl_space *space); 74 75 isl_stat isl_space_check_domain_is_wrapping(__isl_keep isl_space *space); 76 isl_stat isl_space_check_range_is_wrapping(__isl_keep isl_space *space); 77 78 __isl_give isl_space *isl_space_replace_params(__isl_take isl_space *dst, 79 __isl_keep isl_space *src); 80 __isl_give isl_space *isl_space_copy_ids_if_unset(__isl_take isl_space *dst, 81 enum isl_dim_type dst_type, __isl_keep isl_space *src, 82 enum isl_dim_type src_type); 83 84 __isl_give isl_space *isl_space_lift(__isl_take isl_space *space, 85 unsigned n_local); 86 87 __isl_give isl_space *isl_space_extend_domain_with_range( 88 __isl_take isl_space *domain, __isl_take isl_space *model); 89 __isl_give isl_space *isl_space_bind_set(__isl_take isl_space *space, 90 __isl_keep isl_multi_id *tuple); 91 __isl_give isl_space *isl_space_bind_map_domain(__isl_take isl_space *space, 92 __isl_keep isl_multi_id *tuple); 93 __isl_give isl_space *isl_space_bind_domain_wrapped_domain( 94 __isl_take isl_space *space, __isl_keep isl_multi_id *tuple); 95 __isl_give isl_space *isl_space_unbind_params_insert_domain( 96 __isl_take isl_space *space, __isl_keep isl_multi_id *tuple); 97 98 int isl_space_cmp(__isl_keep isl_space *space1, __isl_keep isl_space *space2); 99 100 #endif 101