diff options
author | John Richardson <john.richardson@arm.com> | 2017-10-13 20:51:42 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 63e5041e6ea0f7fb57a1cc349f1325785fa800fa (patch) | |
tree | c83d31baf2cb7fb80ad127396fe6e55ad0959273 /utils/TypePrinter.h | |
parent | 2d09993bed545f836cd624577c3ae749de6329b7 (diff) | |
download | ComputeLibrary-63e5041e6ea0f7fb57a1cc349f1325785fa800fa.tar.gz |
COMPMID-576: Port Phase to new validation
Change-Id: Ice08031c997cf8162a4358deb059db857ede2382
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93585
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'utils/TypePrinter.h')
-rw-r--r-- | utils/TypePrinter.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index de7eaf8b3d..ec373742ea 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -714,5 +714,30 @@ inline ::std::ostream &operator<<(::std::ostream &os, const KeyPoint &point) return os; } + +/** Formatted output of the PhaseType type. */ +inline ::std::ostream &operator<<(::std::ostream &os, const PhaseType &phase_type) +{ + switch(phase_type) + { + case PhaseType::SIGNED: + os << "SIGNED"; + break; + case PhaseType::UNSIGNED: + os << "UNSIGNED"; + break; + default: + ARM_COMPUTE_ERROR("NOT_SUPPORTED!"); + } + + return os; +} + +inline std::string to_string(const arm_compute::PhaseType &type) +{ + std::stringstream str; + str << type; + return str.str(); +} } // namespace arm_compute #endif /* __ARM_COMPUTE_TEST_TYPE_PRINTER_H__ */ |