Index: src/IceTypes.h |
diff --git a/src/IceTypes.h b/src/IceTypes.h |
index 0c67e4396c142c7b9a2ce9dcab8393ce23c98655..2ce8f35af7c507b8319abf648d0be04070ff3884 100644 |
--- a/src/IceTypes.h |
+++ b/src/IceTypes.h |
@@ -58,6 +58,11 @@ bool isFloatingType(Type Ty); // scalar or vector |
bool isScalarFloatingType(Type Ty); |
bool isVectorFloatingType(Type Ty); |
+/// Returns type generated by applying the compare instructions (icmp and fcmp) |
+/// to arguments of the given type. Returns IceType_void if compare is not |
+/// allowed. |
+Type getCompareResultType(Type Ty); |
+ |
template <typename StreamType> |
inline StreamType &operator<<(StreamType &Str, const Type &Ty) { |
Str << typeString(Ty); |