Add IslPtr type traits. NFC.
authorMichael Kruse <llvm@meinersbur.de>
Wed, 7 Dec 2016 16:17:59 +0000 (16:17 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Wed, 7 Dec 2016 16:17:59 +0000 (16:17 +0000)
Add traits for isl_id and isl_multi_aff, required by out-of-tree patches
currently in progress of upstreaming.

isl_union_pw_aff_dump has been added to ISL during one of the last ISL
updates, such that we can also enable its dump() trait.

llvm-svn: 288915

polly/include/polly/Support/GICHelper.h
polly/lib/Support/GICHelper.cpp

index 380237e..dc9a01c 100644 (file)
@@ -207,6 +207,7 @@ template <typename T> class IslObjTraits;
     }                                                                          \
   };
 
+DECLARE_TRAITS(id)
 DECLARE_TRAITS(val)
 DECLARE_TRAITS(space)
 DECLARE_TRAITS(basic_map)
@@ -216,6 +217,7 @@ DECLARE_TRAITS(basic_set)
 DECLARE_TRAITS(set)
 DECLARE_TRAITS(union_set)
 DECLARE_TRAITS(aff)
+DECLARE_TRAITS(multi_aff)
 DECLARE_TRAITS(pw_aff)
 DECLARE_TRAITS(union_pw_aff)
 DECLARE_TRAITS(multi_union_pw_aff)
index 82c07ca..833cb03 100644 (file)
@@ -208,6 +208,7 @@ std::string polly::getIslCompatibleName(const std::string &Prefix,
   }
 
 namespace polly {
+DEFINE_ISLPTR(id)
 DEFINE_ISLPTR(val)
 DEFINE_ISLPTR(space)
 DEFINE_ISLPTR(basic_map)
@@ -217,8 +218,9 @@ DEFINE_ISLPTR(basic_set)
 DEFINE_ISLPTR(set)
 DEFINE_ISLPTR(union_set)
 DEFINE_ISLPTR(aff)
+DEFINE_ISLPTR(multi_aff)
 DEFINE_ISLPTR(pw_aff)
-// DEFINE_ISLPTR(union_pw_aff) /* There is no isl_union_pw_aff_dump() */
+DEFINE_ISLPTR(union_pw_aff)
 DEFINE_ISLPTR(multi_union_pw_aff)
 DEFINE_ISLPTR(union_pw_multi_aff)
 }