@@ -56,12 +56,6 @@ enum BaseTypeConversionRank : uint8_t
56
56
kBaseTypeConversionRank_Int32 ,
57
57
kBaseTypeConversionRank_IntPtr ,
58
58
kBaseTypeConversionRank_Int64 ,
59
-
60
- // Packed type conversion ranks where the overall rank order does not apply.
61
- // They must be explicitly casted to another type.
62
- kBaseTypeConversionRank_Int8x4Packed ,
63
- kBaseTypeConversionRank_UInt8x4Packed ,
64
-
65
59
kBaseTypeConversionRank_Error ,
66
60
};
67
61
@@ -155,17 +149,6 @@ static const BaseTypeConversionInfo kBaseTypes[] = {
155
149
UINT_MASK,
156
150
kBaseTypeConversionKind_Unsigned ,
157
151
kBaseTypeConversionRank_IntPtr },
158
-
159
- {" int8_t4_packed" ,
160
- BaseType::Int8x4Packed,
161
- 0 ,
162
- kBaseTypeConversionKind_Unsigned ,
163
- kBaseTypeConversionRank_Int8x4Packed },
164
- {" uint8_t4_packed" ,
165
- BaseType::UInt8x4Packed,
166
- 0 ,
167
- kBaseTypeConversionKind_Unsigned ,
168
- kBaseTypeConversionRank_UInt8x4Packed },
169
152
};
170
153
171
154
void Session::finalizeSharedASTBuilder ()
@@ -192,12 +175,6 @@ void Session::finalizeSharedASTBuilder()
192
175
globalAstBuilder->getBuiltinType (baseType.tag );
193
176
}
194
177
195
- static bool isConversionRankPackedType (BaseTypeConversionRank rank)
196
- {
197
- return (rank == BaseTypeConversionRank::kBaseTypeConversionRank_Int8x4Packed ) ||
198
- (rank == BaseTypeConversionRank::kBaseTypeConversionRank_UInt8x4Packed );
199
- }
200
-
201
178
// Given two base types, we need to be able to compute the cost of converting between them.
202
179
ConversionCost getBaseTypeConversionCost (
203
180
BaseTypeConversionInfo const & toInfo,
@@ -210,14 +187,6 @@ ConversionCost getBaseTypeConversionCost(
210
187
return kConversionCost_None ;
211
188
}
212
189
213
- // Handle special case for packed types, where they must be explicitly casted to another type.
214
- bool isToPackedType = isConversionRankPackedType (toInfo.conversionRank );
215
- bool isFromPackedType = isConversionRankPackedType (fromInfo.conversionRank );
216
- if (isToPackedType || isFromPackedType)
217
- {
218
- return kConversionCost_GeneralConversion ;
219
- }
220
-
221
190
// Conversions within the same kind are easist to handle
222
191
if (toInfo.conversionKind == fromInfo.conversionKind )
223
192
{
0 commit comments