[polly] r261402 - Add more isl object printing functions
Hongbin Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 19 19:40:19 PST 2016
Author: ether
Date: Fri Feb 19 21:40:19 2016
New Revision: 261402
URL: http://llvm.org/viewvc/llvm-project?rev=261402&view=rev
Log:
Add more isl object printing functions
Modified:
polly/trunk/include/polly/Support/GICHelper.h
polly/trunk/lib/Support/GICHelper.cpp
Modified: polly/trunk/include/polly/Support/GICHelper.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Support/GICHelper.h?rev=261402&r1=261401&r2=261402&view=diff
==============================================================================
--- polly/trunk/include/polly/Support/GICHelper.h (original)
+++ polly/trunk/include/polly/Support/GICHelper.h Fri Feb 19 21:40:19 2016
@@ -26,6 +26,7 @@ struct isl_union_set;
struct isl_schedule;
struct isl_multi_aff;
struct isl_pw_multi_aff;
+struct isl_union_pw_multi_aff;
struct isl_aff;
struct isl_pw_aff;
struct isl_val;
@@ -49,6 +50,7 @@ std::string stringFromIslObj(__isl_keep
std::string stringFromIslObj(__isl_keep isl_schedule *schedule);
std::string stringFromIslObj(__isl_keep isl_multi_aff *maff);
std::string stringFromIslObj(__isl_keep isl_pw_multi_aff *pma);
+std::string stringFromIslObj(__isl_keep isl_union_pw_multi_aff *upma);
std::string stringFromIslObj(__isl_keep isl_aff *aff);
std::string stringFromIslObj(__isl_keep isl_pw_aff *pwaff);
std::string stringFromIslObj(__isl_keep isl_space *space);
@@ -90,6 +92,12 @@ inline llvm::raw_ostream &operator<<(llv
return OS;
}
+inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
+ __isl_keep isl_union_pw_multi_aff *UPMA) {
+ OS << polly::stringFromIslObj(UPMA);
+ return OS;
+}
+
inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
__isl_keep isl_schedule *Schedule) {
OS << polly::stringFromIslObj(Schedule);
Modified: polly/trunk/lib/Support/GICHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/GICHelper.cpp?rev=261402&r1=261401&r2=261402&view=diff
==============================================================================
--- polly/trunk/lib/Support/GICHelper.cpp (original)
+++ polly/trunk/lib/Support/GICHelper.cpp Fri Feb 19 21:40:19 2016
@@ -120,6 +120,11 @@ std::string polly::stringFromIslObj(__is
isl_printer_print_pw_multi_aff);
}
+std::string polly::stringFromIslObj(__isl_keep isl_union_pw_multi_aff *upma) {
+ return stringFromIslObjInternal(upma, isl_union_pw_multi_aff_get_ctx,
+ isl_printer_print_union_pw_multi_aff);
+}
+
std::string polly::stringFromIslObj(__isl_keep isl_aff *aff) {
return stringFromIslObjInternal(aff, isl_aff_get_ctx, isl_printer_print_aff);
}
More information about the llvm-commits
mailing list