/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 | 210 static bool IsTypeConversionImplicit(Type input_type, Type result_type); 213 static bool IsZeroExtension(Type input_type, Type result_type) { in IsZeroExtension() argument 215 IsUnsignedType(input_type) && in IsZeroExtension() 216 Size(result_type) > Size(input_type); in IsZeroExtension() 257 inline bool DataType::IsTypeConversionImplicit(Type input_type, Type result_type) { in IsTypeConversionImplicit() argument 259 DCHECK_NE(DataType::Type::kVoid, input_type); in IsTypeConversionImplicit() 267 return result_type == input_type || in IsTypeConversionImplicit() 269 IsIntegralType(input_type) && in IsTypeConversionImplicit() 271 MinValueOfIntegralType(input_type) >= MinValueOfIntegralType(result_type) && in IsTypeConversionImplicit() 272 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 | instruction_simplifier_shared.h | 30 DataType::Type input_type = conversion->GetInputType(); in CanFitInShifterOperand() local 32 return DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type) && in CanFitInShifterOperand() 33 (result_type != input_type); in CanFitInShifterOperand()
|
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 | 273 DataType::Type input_type = instruction->GetInputType(); in VisitTypeConversion() local 275 if (input_type == result_type) { in VisitTypeConversion() 280 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion()
|
D | instruction_simplifier_arm64.cc | 244 DataType::Type input_type = instruction->GetInputType(); in VisitTypeConversion() local 246 if (input_type == result_type) { in VisitTypeConversion() 251 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion()
|
D | instruction_simplifier.cc | 1077 static bool IsTypeConversionLossless(DataType::Type input_type, DataType::Type result_type) { in IsTypeConversionLossless() argument 1079 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in IsTypeConversionLossless() 1080 << input_type << "," << result_type; in IsTypeConversionLossless() 1086 return DataType::Size(result_type) > DataType::Size(input_type) && in IsTypeConversionLossless() 1088 !(result_type == DataType::Type::kInt64 && input_type == DataType::Type::kFloat32); in IsTypeConversionLossless() 1112 DataType::Type input_type = type_conversion->GetInputType(); in IsTypeConversionForStoringIntoNoWiderFieldOnly() local 1114 if (!DataType::IsIntegralType(input_type) || in IsTypeConversionForStoringIntoNoWiderFieldOnly() 1116 input_type == DataType::Type::kInt64 || in IsTypeConversionForStoringIntoNoWiderFieldOnly() 1122 if (DataType::Size(input_type) >= DataType::Size(result_type)) { in IsTypeConversionForStoringIntoNoWiderFieldOnly() 1160 DataType::Type input_type = input->GetType(); in VisitTypeConversion() local [all …]
|
D | scheduler_arm.cc | 1054 DataType::Type input_type = instr->GetInputType(); in VisitTypeConversion() local 1065 switch (input_type) { in VisitTypeConversion() 1081 switch (input_type) { in VisitTypeConversion() 1105 switch (input_type) { in VisitTypeConversion() 1129 switch (input_type) { in VisitTypeConversion()
|
D | graph_checker.cc | 1037 DataType::Type input_type = instruction->InputAt(0)->GetType(); in VisitNeg() local 1039 if (result_type != DataType::Kind(input_type)) { in VisitNeg() 1044 DataType::PrettyDescriptor(input_type))); in VisitNeg() 1132 DataType::Type input_type = instruction->GetInputType(); in VisitTypeConversion() local 1140 DataType::PrettyDescriptor(input_type))); in VisitTypeConversion()
|
D | common_arm64.h | 150 DataType::Type input_type = input->GetType(); in InputCPURegisterOrZeroRegAt() local 152 return (DataType::Size(input_type) >= vixl::aarch64::kXRegSizeInBytes) in InputCPURegisterOrZeroRegAt()
|
D | nodes_vector.h | 306 DataType::Type input_type = input->AsVecOperation()->GetPackedType(); in HasConsistentPackedTypes() local 307 DCHECK_EQ(HVecOperation::ToUnsignedType(input_type) == HVecOperation::ToUnsignedType(type), in HasConsistentPackedTypes() 308 HVecOperation::ToSignedType(input_type) == HVecOperation::ToSignedType(type)); in HasConsistentPackedTypes() 309 return HVecOperation::ToSignedType(input_type) == HVecOperation::ToSignedType(type); in HasConsistentPackedTypes()
|
D | code_generator_x86_64.cc | 2733 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 2734 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 2735 << input_type << " -> " << result_type; in VisitTypeConversion() 2742 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion() 2748 switch (input_type) { in VisitTypeConversion() 2765 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() 2771 switch (input_type) { in VisitTypeConversion() 2795 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() 2801 switch (input_type) { in VisitTypeConversion() 2823 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() [all …]
|
D | code_generator_x86.cc | 2570 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 2571 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 2572 << input_type << " -> " << result_type; in VisitTypeConversion() 2577 ((input_type == DataType::Type::kFloat32 || input_type == DataType::Type::kFloat64) in VisitTypeConversion() 2587 switch (input_type) { in VisitTypeConversion() 2611 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() 2618 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion() 2624 switch (input_type) { in VisitTypeConversion() 2643 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() 2649 switch (input_type) { in VisitTypeConversion() [all …]
|
D | code_generator_arm_vixl.cc | 3542 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 3543 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 3544 << input_type << " -> " << result_type; in VisitTypeConversion() 3549 (((input_type == DataType::Type::kFloat32 || input_type == DataType::Type::kFloat64) in VisitTypeConversion() 3551 || (input_type == DataType::Type::kInt64 && result_type == DataType::Type::kFloat32)) in VisitTypeConversion() 3562 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion() 3568 switch (input_type) { in VisitTypeConversion() 3587 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() 3593 switch (input_type) { in VisitTypeConversion() 3620 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() [all …]
|
D | instruction_builder.h | 129 DataType::Type input_type,
|
D | code_generator_arm64.cc | 5728 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 5730 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 5731 << input_type << " -> " << result_type; in VisitTypeConversion() 5732 if ((input_type == DataType::Type::kReference) || (input_type == DataType::Type::kVoid) || in VisitTypeConversion() 5734 LOG(FATAL) << "Unexpected type conversion from " << input_type << " to " << result_type; in VisitTypeConversion() 5737 if (DataType::IsFloatingPointType(input_type)) { in VisitTypeConversion() 5752 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 5754 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 5755 << input_type << " -> " << result_type; in VisitTypeConversion() 5757 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion() [all …]
|
D | loop_optimization.cc | 1688 DataType::Type input_type = input->GetType(); in GenerateVecInv() local 1689 if (type != input_type && (type == DataType::Type::kInt64 || in GenerateVecInv() 1690 input_type == DataType::Type::kInt64)) { in GenerateVecInv()
|
D | instruction_builder.cc | 631 DataType::Type input_type, in Conversion_12x() argument 634 HInstruction* first = LoadLocal(instruction.VRegB(), input_type); in Conversion_12x()
|