aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorgiuros01 <giuseppe.rossini@arm.com>2018-11-21 09:59:17 +0000
committerGiuseppe Rossini <giuseppe.rossini@arm.com>2018-11-27 20:22:05 +0000
commit3175fcf63249673f33fd1638879adad4baab545b (patch)
tree5b870cd5180c122eaa475bf6a08bb3cb8228e09e /utils
parent0a80d92bcdbdc4f3974d0fbcaa529a71ed539559 (diff)
downloadComputeLibrary-3175fcf63249673f33fd1638879adad4baab545b.tar.gz
COMPMID-1720: CL: Implement Tile
Change-Id: I2a18f0acea382960a8bc71a8f56928a5998f0dd6
Diffstat (limited to 'utils')
-rw-r--r--utils/TypePrinter.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h
index d089a5b7ea..52bda2cfb3 100644
--- a/utils/TypePrinter.h
+++ b/utils/TypePrinter.h
@@ -882,6 +882,24 @@ inline ::std::ostream &operator<<(::std::ostream &os, const PaddingList &padding
return os;
}
+/** Formatted output of the Multiples type.
+ *
+ * @param[out] os Output stream.
+ * @param[in] multiples Type to output.
+ *
+ * @return Modified output stream.
+ */
+inline ::std::ostream &operator<<(::std::ostream &os, const Multiples &multiples)
+{
+ os << "(";
+ for(size_t i = 0; i < multiples.size() - 1; i++)
+ {
+ os << multiples[i] << ", ";
+ }
+ os << multiples.back() << ")";
+ return os;
+}
+
/** Formatted output of the InterpolationPolicy type.
*
* @param[out] os Output stream.
@@ -1234,6 +1252,19 @@ inline std::string to_string(const PaddingList &padding)
return str.str();
}
+/** Formatted output of the Multiples type.
+ *
+ * @param[in] multiples Type to output.
+ *
+ * @return Formatted string.
+ */
+inline std::string to_string(const Multiples &multiples)
+{
+ std::stringstream str;
+ str << multiples;
+ return str.str();
+}
+
/** Formatted output of the InterpolationPolicy type.
*
* @param[in] policy Type to output.