diff options
| author | Tobias Grosser <tobias@grosser.es> | 2018-02-20 07:26:42 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2018-02-20 07:26:42 +0000 |
| commit | fa8079d0dc1b9fbca201b92f30d3c97386c75114 (patch) | |
| tree | 8163f9c4eb97308b4c7a8a1777fdc9aac3c789be /polly/lib/External/isl/isl_vec.c | |
| parent | 85476dc45ad1216e533385964b9ce191968c316f (diff) | |
| download | bcm5719-llvm-fa8079d0dc1b9fbca201b92f30d3c97386c75114.tar.gz bcm5719-llvm-fa8079d0dc1b9fbca201b92f30d3c97386c75114.zip | |
Update isl to isl-0.18-1047-g4a20ef8
This update:
- Removes several deprecated functions (e.g., isl_band).
- Improves the pretty-printing of sets by detecting modulos and "false"
equalities.
- Minor improvements to coalescing and increased robustness of the isl
scheduler.
This update does not yet include isl commit isl-0.18-90-gd00cb45
(isl_pw_*_alloc: add missing check for compatible spaces, Wed Sep 6 12:18:04
2017 +0200), as this additional check is too tight and unfortunately causes
two test case failures in Polly. A patch has been submitted to isl and will be
included in the next isl update for Polly.
llvm-svn: 325557
Diffstat (limited to 'polly/lib/External/isl/isl_vec.c')
| -rw-r--r-- | polly/lib/External/isl/isl_vec.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/polly/lib/External/isl/isl_vec.c b/polly/lib/External/isl/isl_vec.c index a48abf9ed4a..4d5bed7894a 100644 --- a/polly/lib/External/isl/isl_vec.c +++ b/polly/lib/External/isl/isl_vec.c @@ -13,7 +13,6 @@ #include <isl_seq.h> #include <isl_val_private.h> #include <isl_vec_private.h> -#include <isl/deprecated/vec_int.h> isl_ctx *isl_vec_get_ctx(__isl_keep isl_vec *vec) { @@ -126,6 +125,19 @@ __isl_give isl_vec *isl_vec_expand(__isl_take isl_vec *vec, int pos, int n, return vec; } +/* Create a vector of size "size" with zero-valued elements. + */ +__isl_give isl_vec *isl_vec_zero(isl_ctx *ctx, unsigned size) +{ + isl_vec *vec; + + vec = isl_vec_alloc(ctx, size); + if (!vec) + return NULL; + isl_seq_clr(vec->el, size); + return vec; +} + __isl_give isl_vec *isl_vec_zero_extend(__isl_take isl_vec *vec, unsigned size) { int extra; @@ -238,18 +250,6 @@ int isl_vec_size(__isl_keep isl_vec *vec) return vec ? vec->size : -1; } -int isl_vec_get_element(__isl_keep isl_vec *vec, int pos, isl_int *v) -{ - if (!vec) - return -1; - - if (pos < 0 || pos >= vec->size) - isl_die(vec->ctx, isl_error_invalid, "position out of range", - return -1); - isl_int_set(*v, vec->el[pos]); - return 0; -} - /* Extract the element at position "pos" of "vec". */ __isl_give isl_val *isl_vec_get_element_val(__isl_keep isl_vec *vec, int pos) |

