Blame isl-0.14/isl_band_private.h

Packit fb9d21
#ifndef ISL_BAND_PRIVATE_H
Packit fb9d21
#define ISL_BAND_PRIVATE_H
Packit fb9d21
Packit fb9d21
#include <isl/aff.h>
Packit fb9d21
#include <isl/band.h>
Packit fb9d21
#include <isl/list.h>
Packit fb9d21
#include <isl/schedule.h>
Packit fb9d21
Packit fb9d21
/* Information about a band within a schedule.
Packit fb9d21
 *
Packit fb9d21
 * n is the number of scheduling dimensions within the band.
Packit fb9d21
 * coincident is an array of length n, indicating whether a scheduling dimension
Packit fb9d21
 *	satisfies the coincidence constraints in the sense that
Packit fb9d21
 *	the corresponding dependence distances are zero.
Packit fb9d21
 * pma is the partial schedule corresponding to this band.
Packit fb9d21
 * schedule is the schedule that contains this band.
Packit fb9d21
 * parent is the parent of this band (or NULL if the band is a root).
Packit fb9d21
 * children are the children of this band (or NULL if the band is a leaf).
Packit fb9d21
 *
Packit fb9d21
 * To avoid circular dependences in the reference counting,
Packit fb9d21
 * the schedule and parent pointers are not reference counted.
Packit fb9d21
 * isl_band_copy increments the reference count of schedule to ensure
Packit fb9d21
 * that outside references to the band keep the schedule alive.
Packit fb9d21
 */
Packit fb9d21
struct isl_band {
Packit fb9d21
	int ref;
Packit fb9d21
Packit fb9d21
	int n;
Packit fb9d21
	int *coincident;
Packit fb9d21
Packit fb9d21
	isl_union_pw_multi_aff *pma;
Packit fb9d21
	isl_schedule *schedule;
Packit fb9d21
	isl_band *parent;
Packit fb9d21
	isl_band_list *children;
Packit fb9d21
};
Packit fb9d21
Packit fb9d21
#undef EL
Packit fb9d21
#define EL isl_band
Packit fb9d21
Packit fb9d21
#include <isl_list_templ.h>
Packit fb9d21
Packit fb9d21
__isl_give isl_band *isl_band_alloc(isl_ctx *ctx);
Packit fb9d21
Packit fb9d21
__isl_give isl_union_map *isl_band_list_get_suffix_schedule(
Packit fb9d21
	__isl_keep isl_band_list *list);
Packit fb9d21
Packit fb9d21
#endif