With this patch Polly is always GPL-free (no dependency on GMP any more). As a result, building and distributing Polly will be easier. Furthermore, there is no need to tightly coordinate isl and Polly releases anymore. We import isl b3e0fa7a05d as well as imath 4d707e5ef2. These are the git versions Polly currently was tested with when using utils/checkout_isl.sh. The imported libraries are both MIT-style licensed. We build isl and imath with -fvisibility=hidden to avoid clashes in case other projects (such as gcc) use conflicting versions of isl. The use of imath can temporarily reduce compile-time performance of Polly. We will work on performance tuning in tree. Patches to isl should be contributed first to the main isl repository and can then later be reimported to Polly. This patch is also a prerequisite for the upcoming isl C++ interface. llvm-svn: 228193
30 lines
717 B
C
30 lines
717 B
C
#include <isl/set.h>
|
|
#include <isl_morph.h>
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Data for factorizing a particular basic set.
|
|
* After applying "morph" to the basic set, there are "n_group"
|
|
* groups of consecutive set variables, each of length "len[i]",
|
|
* with 0 <= i < n_group.
|
|
* If no factorization is possible, then "n_group" is set to 0.
|
|
*/
|
|
struct isl_factorizer {
|
|
isl_morph *morph;
|
|
int n_group;
|
|
int *len;
|
|
};
|
|
typedef struct isl_factorizer isl_factorizer;
|
|
|
|
__isl_give isl_factorizer *isl_basic_set_factorizer(
|
|
__isl_keep isl_basic_set *bset);
|
|
|
|
void isl_factorizer_free(__isl_take isl_factorizer *f);
|
|
void isl_factorizer_dump(__isl_take isl_factorizer *f);
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|