Home
last modified time | relevance | path

Searched refs:input_type (Results 1 – 23 of 23) sorted by relevance

/art/compiler/optimizing/
Dnodes_shared.cc46 DataType::Type input_type = instruction->AsTypeConversion()->GetInputType(); in GetOpInfoFromInstruction() local
48 int input_size = DataType::Size(input_type); in GetOpInfoFromInstruction()
50 if (result_type == DataType::Type::kInt32 && input_type == DataType::Type::kInt64) { in GetOpInfoFromInstruction()
58 (input_type == DataType::Type::kUint8 && input_size < result_size)) { in GetOpInfoFromInstruction()
61 (input_type == DataType::Type::kUint16 && input_size < result_size)) { in GetOpInfoFromInstruction()
Ddata_type.h236 static bool IsTypeConversionImplicit(Type input_type, Type result_type);
239 static bool IsZeroExtension(Type input_type, Type result_type) { in IsZeroExtension() argument
241 IsUnsignedType(input_type) && in IsZeroExtension()
242 Size(result_type) > Size(input_type); in IsZeroExtension()
283 inline bool DataType::IsTypeConversionImplicit(Type input_type, Type result_type) { in IsTypeConversionImplicit() argument
285 DCHECK_NE(DataType::Type::kVoid, input_type); in IsTypeConversionImplicit()
293 return result_type == input_type || in IsTypeConversionImplicit()
295 IsIntegralType(input_type) && in IsTypeConversionImplicit()
297 MinValueOfIntegralType(input_type) >= MinValueOfIntegralType(result_type) && in IsTypeConversionImplicit()
298 MaxValueOfIntegralType(input_type) <= MaxValueOfIntegralType(result_type)); in IsTypeConversionImplicit()
Ddata_type_test.cc90 DataType::Type input_type = kIntegralInputTypes[input_index]; in TEST() local
94 DataType::IsTypeConversionImplicit(input_type, result_type)) in TEST()
95 << input_type << " " << result_type; in TEST()
98 for (DataType::Type input_type : kIntegralInputTypes) { in TEST() local
99 EXPECT_FALSE(DataType::IsTypeConversionImplicit(input_type, DataType::Type::kFloat32)); in TEST()
100 EXPECT_FALSE(DataType::IsTypeConversionImplicit(input_type, DataType::Type::kFloat64)); in TEST()
Dcritical_native_abi_fixup_arm.cc32 DataType::Type input_type = input->GetType(); in FixUpArguments() local
34 if (DataType::Is64BitType(input_type)) { in FixUpArguments()
41 if (DataType::IsFloatingPointType(input_type)) { in FixUpArguments()
Dinstruction_simplifier_shared.h33 DataType::Type input_type = conversion->GetInputType(); in CanFitInShifterOperand() local
35 return DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type) && in CanFitInShifterOperand()
36 (result_type != input_type); in CanFitInShifterOperand()
Dcritical_native_abi_fixup_riscv64.cc37 DataType::Type input_type = input->GetType(); in FixUpArguments() local
38 if (DataType::IsFloatingPointType(input_type)) { in FixUpArguments()
Dssa_builder.cc139 DataType::Type input_type = HPhi::ToPhiType(input->GetType()); in TypePhiFromInputs() local
140 if (common_type == input_type) { in TypePhiFromInputs()
142 } else if (DataType::Is64BitType(common_type) != DataType::Is64BitType(input_type)) { in TypePhiFromInputs()
149 DCHECK(DataType::IsFloatingPointType(input_type) || in TypePhiFromInputs()
150 input_type == DataType::Type::kReference); in TypePhiFromInputs()
151 common_type = input_type; in TypePhiFromInputs()
152 } else if (DataType::IsIntegralType(input_type)) { in TypePhiFromInputs()
160 (common_type == DataType::Type::kFloat32 && input_type == DataType::Type::kReference) || in TypePhiFromInputs()
161 (common_type == DataType::Type::kReference && input_type == DataType::Type::kFloat32)); in TypePhiFromInputs()
Dinstruction_simplifier_arm.cc295 DataType::Type input_type = instruction->GetInputType(); in VisitTypeConversion() local
297 if (input_type == result_type) { in VisitTypeConversion()
302 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion()
Dinstruction_simplifier_arm64.cc266 DataType::Type input_type = instruction->GetInputType(); in VisitTypeConversion() local
268 if (input_type == result_type) { in VisitTypeConversion()
273 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion()
Dintrinsics.cc231 DataType::Type input_type = input->GetType(); in InsertFpToIntegralIntrinsic() local
232 DCHECK(DataType::IsFloatingPointType(input_type)); in InsertFpToIntegralIntrinsic()
233 bool is_double = (input_type == DataType::Type::kFloat64); in InsertFpToIntegralIntrinsic()
Dinstruction_simplifier.cc1255 static bool IsTypeConversionLossless(DataType::Type input_type, DataType::Type result_type) { in IsTypeConversionLossless() argument
1257 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in IsTypeConversionLossless()
1258 << input_type << "," << result_type; in IsTypeConversionLossless()
1264 return DataType::Size(result_type) > DataType::Size(input_type) && in IsTypeConversionLossless()
1266 !(result_type == DataType::Type::kInt64 && input_type == DataType::Type::kFloat32); in IsTypeConversionLossless()
1317 DataType::Type input_type = type_conversion->GetInputType(); in IsTypeConversionForStoringIntoNoWiderFieldOnly() local
1319 if (!DataType::IsIntegralType(input_type) || in IsTypeConversionForStoringIntoNoWiderFieldOnly()
1321 input_type == DataType::Type::kInt64 || in IsTypeConversionForStoringIntoNoWiderFieldOnly()
1327 if (DataType::Size(input_type) >= DataType::Size(result_type)) { in IsTypeConversionForStoringIntoNoWiderFieldOnly()
1365 DataType::Type input_type = input->GetType(); in VisitTypeConversion() local
[all …]
Dscheduler_arm.cc1163 DataType::Type input_type = instr->GetInputType(); in VisitTypeConversion() local
1174 switch (input_type) { in VisitTypeConversion()
1190 switch (input_type) { in VisitTypeConversion()
1214 switch (input_type) { in VisitTypeConversion()
1238 switch (input_type) { in VisitTypeConversion()
Dcommon_arm64.h156 DataType::Type input_type = input->GetType(); in InputCPURegisterOrZeroRegAt() local
158 return (DataType::Size(input_type) >= vixl::aarch64::kXRegSizeInBytes) in InputCPURegisterOrZeroRegAt()
Dgraph_checker.cc1278 DataType::Type input_type = instruction->InputAt(0)->GetType(); in VisitNeg() local
1280 if (result_type != DataType::Kind(input_type)) { in VisitNeg()
1285 DataType::PrettyDescriptor(input_type))); in VisitNeg()
1484 DataType::Type input_type = instruction->GetInputType(); in VisitTypeConversion() local
1492 DataType::PrettyDescriptor(input_type))); in VisitTypeConversion()
Dcode_generator_x86.cc3088 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
3089 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
3090 << input_type << " -> " << result_type; in VisitTypeConversion()
3095 ((input_type == DataType::Type::kFloat32 || input_type == DataType::Type::kFloat64) in VisitTypeConversion()
3105 switch (input_type) { in VisitTypeConversion()
3129 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
3136 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion()
3142 switch (input_type) { in VisitTypeConversion()
3161 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
3167 switch (input_type) { in VisitTypeConversion()
[all …]
Dcode_generator_x86_64.cc3341 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
3342 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
3343 << input_type << " -> " << result_type; in VisitTypeConversion()
3350 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion()
3356 switch (input_type) { in VisitTypeConversion()
3373 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
3379 switch (input_type) { in VisitTypeConversion()
3403 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
3409 switch (input_type) { in VisitTypeConversion()
3431 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
[all …]
Dnodes_vector.h374 DataType::Type input_type = input->AsVecOperation()->GetPackedType(); in HasConsistentPackedTypes() local
375 DCHECK_EQ(HVecOperation::ToUnsignedType(input_type) == HVecOperation::ToUnsignedType(type), in HasConsistentPackedTypes()
376 HVecOperation::ToSignedType(input_type) == HVecOperation::ToSignedType(type)); in HasConsistentPackedTypes()
377 return HVecOperation::ToSignedType(input_type) == HVecOperation::ToSignedType(type); in HasConsistentPackedTypes()
Dcode_generator_arm_vixl.cc3900 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
3901 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
3902 << input_type << " -> " << result_type; in VisitTypeConversion()
3907 (((input_type == DataType::Type::kFloat32 || input_type == DataType::Type::kFloat64) in VisitTypeConversion()
3909 || (input_type == DataType::Type::kInt64 && result_type == DataType::Type::kFloat32)) in VisitTypeConversion()
3920 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion()
3926 switch (input_type) { in VisitTypeConversion()
3945 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
3951 switch (input_type) { in VisitTypeConversion()
3978 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
[all …]
Dinstruction_builder.h123 DataType::Type input_type,
Dcode_generator_riscv64.cc5272 DataType::Type input_type = instruction->GetInputType(); in VisitTypeConversion() local
5274 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
5275 << input_type << " -> " << result_type; in VisitTypeConversion()
5277 if ((input_type == DataType::Type::kReference) || (input_type == DataType::Type::kVoid) || in VisitTypeConversion()
5279 LOG(FATAL) << "Unexpected type conversion from " << input_type << " to " << result_type; in VisitTypeConversion()
5284 if (DataType::IsFloatingPointType(input_type)) { in VisitTypeConversion()
5300 DataType::Type input_type = instruction->GetInputType(); in VisitTypeConversion() local
5302 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
5303 << input_type << " -> " << result_type; in VisitTypeConversion()
5305 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion()
[all …]
Dcode_generator_arm64.cc6533 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
6535 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
6536 << input_type << " -> " << result_type; in VisitTypeConversion()
6537 if ((input_type == DataType::Type::kReference) || (input_type == DataType::Type::kVoid) || in VisitTypeConversion()
6539 LOG(FATAL) << "Unexpected type conversion from " << input_type << " to " << result_type; in VisitTypeConversion()
6542 if (DataType::IsFloatingPointType(input_type)) { in VisitTypeConversion()
6557 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
6559 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
6560 << input_type << " -> " << result_type; in VisitTypeConversion()
6562 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion()
[all …]
Dloop_optimization.cc2205 DataType::Type input_type = input->GetType(); in GenerateVecInv() local
2206 if (type != input_type && (type == DataType::Type::kInt64 || in GenerateVecInv()
2207 input_type == DataType::Type::kInt64)) { in GenerateVecInv()
Dinstruction_builder.cc706 DataType::Type input_type, in Conversion_12x() argument
709 HInstruction* first = LoadLocal(instruction.VRegB(), input_type); in Conversion_12x()