From: Michael Kruse Date: Wed, 7 Dec 2016 16:17:59 +0000 (+0000) Subject: Add IslPtr type traits. NFC. X-Git-Tag: llvmorg-4.0.0-rc1~2760 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ead2bfc12905a5df2518ea2f5419d6f18d4aae1;p=platform%2Fupstream%2Fllvm.git Add IslPtr type traits. NFC. 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 --- diff --git a/polly/include/polly/Support/GICHelper.h b/polly/include/polly/Support/GICHelper.h index 380237e..dc9a01c 100644 --- a/polly/include/polly/Support/GICHelper.h +++ b/polly/include/polly/Support/GICHelper.h @@ -207,6 +207,7 @@ template 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) diff --git a/polly/lib/Support/GICHelper.cpp b/polly/lib/Support/GICHelper.cpp index 82c07ca..833cb03 100644 --- a/polly/lib/Support/GICHelper.cpp +++ b/polly/lib/Support/GICHelper.cpp @@ -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) }