reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/polly/lib/External/isl/isl_aff.c
  840 	if (!aff || !v)
  843 	if (isl_aff_is_nan(aff) || isl_val_is_zero(v)) {
  845 		return aff;
  849 		isl_die(isl_aff_get_ctx(aff), isl_error_invalid,
  852 	aff = isl_aff_cow(aff);
  852 	aff = isl_aff_cow(aff);
  853 	if (!aff)
  856 	aff->v = isl_vec_cow(aff->v);
  856 	aff->v = isl_vec_cow(aff->v);
  857 	if (!aff->v)
  861 		isl_int_addmul(aff->v->el[1], aff->v->el[0], v->n);
  861 		isl_int_addmul(aff->v->el[1], aff->v->el[0], v->n);
  862 	} else if (isl_int_eq(aff->v->el[0], v->d)) {
  863 		isl_int_add(aff->v->el[1], aff->v->el[1], v->n);
  863 		isl_int_add(aff->v->el[1], aff->v->el[1], v->n);
  864 		aff->v = isl_vec_normalize(aff->v);
  864 		aff->v = isl_vec_normalize(aff->v);
  865 		if (!aff->v)
  868 		isl_seq_scale(aff->v->el + 1,
  869 				aff->v->el + 1, v->d, aff->v->size - 1);
  869 				aff->v->el + 1, v->d, aff->v->size - 1);
  870 		isl_int_addmul(aff->v->el[1], aff->v->el[0], v->n);
  870 		isl_int_addmul(aff->v->el[1], aff->v->el[0], v->n);
  871 		isl_int_mul(aff->v->el[0], aff->v->el[0], v->d);
  871 		isl_int_mul(aff->v->el[0], aff->v->el[0], v->d);
  872 		aff->v = isl_vec_normalize(aff->v);
  872 		aff->v = isl_vec_normalize(aff->v);
  873 		if (!aff->v)
  878 	return aff;
  880 	isl_aff_free(aff);