| Index: src/IceTypes.cpp
|
| diff --git a/src/IceTypes.cpp b/src/IceTypes.cpp
|
| index a3e19ae07c001c3685c65da1700b21faa9c59782..29ff4de0799375d870be2385b40c53862dd641cd 100644
|
| --- a/src/IceTypes.cpp
|
| +++ b/src/IceTypes.cpp
|
| @@ -228,6 +228,13 @@ Type getCompareResultType(Type Ty) {
|
| return IceType_void;
|
| }
|
|
|
| +SizeT getScalarIntBitWidth(Type Ty) {
|
| + assert(isScalarIntegerType(Ty));
|
| + if (Ty == Ice::IceType_i1)
|
| + return 1;
|
| + return typeWidthInBytes(Ty) * CHAR_BIT;
|
| +}
|
| +
|
| // ======================== Dump routines ======================== //
|
|
|
| const char *typeString(Type Ty) {
|
|
|