Lines Matching defs:restr
50 isl_restriction *restr;
56 restr = isl_calloc_type(ctx, struct isl_restriction);
57 if (!restr)
60 restr->type = type;
63 return restr;
91 isl_restriction *restr;
97 restr = isl_calloc_type(ctx, struct isl_restriction);
98 if (!restr)
101 restr->type = isl_restriction_type_input;
102 restr->source = source_restr;
103 restr->sink = sink_restr;
105 return restr;
119 isl_restriction *restr;
125 restr = isl_calloc_type(ctx, struct isl_restriction);
126 if (!restr)
129 restr->type = isl_restriction_type_output;
130 restr->source = source_restr;
132 return restr;
139 __isl_take isl_restriction *restr)
141 if (!restr)
144 isl_set_free(restr->source);
145 isl_set_free(restr->sink);
146 free(restr);
150 isl_ctx *isl_restriction_get_ctx(__isl_keep isl_restriction *restr)
152 return restr ? isl_set_get_ctx(restr->source) : NULL;
585 isl_restriction *restr;
598 restr
603 if (!restr)
605 if (restr->type == isl_restriction_type_input) {
606 dep = isl_map_intersect_range(dep, isl_set_copy(restr->source));
607 sink_restr = isl_set_copy(restr->sink);
611 } else if (restr->type == isl_restriction_type_empty) {
619 if (restr->type == isl_restriction_type_output)
620 res = isl_map_intersect_range(res, isl_set_copy(restr->source));
622 isl_restriction_free(restr);