/art/compiler/optimizing/ |
D | nodes_shared.cc | 46 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()
|
D | data_type.h | 236 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()
|
D | data_type_test.cc | 90 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()
|
D | critical_native_abi_fixup_arm.cc | 32 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()
|
D | instruction_simplifier_shared.h | 33 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()
|
D | critical_native_abi_fixup_riscv64.cc | 37 DataType::Type input_type = input->GetType(); in FixUpArguments() local 38 if (DataType::IsFloatingPointType(input_type)) { in FixUpArguments()
|
D | ssa_builder.cc | 139 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()
|
D | instruction_simplifier_arm.cc | 295 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()
|
D | instruction_simplifier_arm64.cc | 266 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()
|
D | intrinsics.cc | 231 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()
|
D | instruction_simplifier.cc | 1255 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 …]
|
D | scheduler_arm.cc | 1163 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()
|
D | common_arm64.h | 156 DataType::Type input_type = input->GetType(); in InputCPURegisterOrZeroRegAt() local 158 return (DataType::Size(input_type) >= vixl::aarch64::kXRegSizeInBytes) in InputCPURegisterOrZeroRegAt()
|
D | graph_checker.cc | 1278 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()
|
D | code_generator_x86.cc | 3088 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 …]
|
D | code_generator_x86_64.cc | 3341 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 …]
|
D | nodes_vector.h | 374 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()
|
D | code_generator_arm_vixl.cc | 3900 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 …]
|
D | instruction_builder.h | 123 DataType::Type input_type,
|
D | code_generator_riscv64.cc | 5272 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 …]
|
D | code_generator_arm64.cc | 6533 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 …]
|
D | loop_optimization.cc | 2205 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()
|
D | instruction_builder.cc | 706 DataType::Type input_type, in Conversion_12x() argument 709 HInstruction* first = LoadLocal(instruction.VRegB(), input_type); in Conversion_12x()
|