util.h 557 B

12345678910111213141516171819202122
  1. #ifndef UTIL_H
  2. #define UTIL_H
  3. #include <string.h>
  4. #include <isl/space.h>
  5. #include <isl/val.h>
  6. /* Compare the prefix of "s" to "prefix" up to the length of "prefix".
  7. */
  8. static inline int prefixcmp(const char *s, const char *prefix)
  9. {
  10. return strncmp(s, prefix, strlen(prefix));
  11. }
  12. __isl_give isl_multi_val *ppcg_multi_val_from_int(__isl_take isl_space *space,
  13. int val);
  14. __isl_give isl_multi_val *ppcg_multi_val_from_int_list(
  15. __isl_take isl_space *space, int *list);
  16. __isl_give isl_multi_pw_aff *ppcg_size_from_extent(__isl_take isl_set *set);
  17. #endif