/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 | 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 | 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 | 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_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_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.cc | 1087 static bool IsTypeConversionLossless(DataType::Type input_type, DataType::Type result_type) { in IsTypeConversionLossless() argument 1089 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in IsTypeConversionLossless() 1090 << input_type << "," << result_type; in IsTypeConversionLossless() 1096 return DataType::Size(result_type) > DataType::Size(input_type) && in IsTypeConversionLossless() 1098 !(result_type == DataType::Type::kInt64 && input_type == DataType::Type::kFloat32); in IsTypeConversionLossless() 1122 DataType::Type input_type = type_conversion->GetInputType(); in IsTypeConversionForStoringIntoNoWiderFieldOnly() local 1124 if (!DataType::IsIntegralType(input_type) || in IsTypeConversionForStoringIntoNoWiderFieldOnly() 1126 input_type == DataType::Type::kInt64 || in IsTypeConversionForStoringIntoNoWiderFieldOnly() 1132 if (DataType::Size(input_type) >= DataType::Size(result_type)) { in IsTypeConversionForStoringIntoNoWiderFieldOnly() 1170 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 | 145 DataType::Type input_type = input->GetType(); in InputCPURegisterOrZeroRegAt() local 147 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_arm_vixl.cc | 3365 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 3366 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 3367 << input_type << " -> " << result_type; in VisitTypeConversion() 3372 (((input_type == DataType::Type::kFloat32 || input_type == DataType::Type::kFloat64) in VisitTypeConversion() 3374 || (input_type == DataType::Type::kInt64 && result_type == DataType::Type::kFloat32)) in VisitTypeConversion() 3385 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion() 3391 switch (input_type) { in VisitTypeConversion() 3410 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() 3416 switch (input_type) { in VisitTypeConversion() 3443 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() [all …]
|
D | instruction_builder.h | 129 DataType::Type input_type,
|
D | code_generator_mips64.cc | 7256 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 7258 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 7259 << input_type << " -> " << result_type; in VisitTypeConversion() 7261 if ((input_type == DataType::Type::kReference) || (input_type == DataType::Type::kVoid) || in VisitTypeConversion() 7263 LOG(FATAL) << "Unexpected type conversion from " << input_type << " to " << result_type; in VisitTypeConversion() 7268 if (DataType::IsFloatingPointType(input_type)) { in VisitTypeConversion() 7284 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 7286 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 7287 << input_type << " -> " << result_type; in VisitTypeConversion() 7289 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion() [all …]
|
D | code_generator_mips.cc | 9641 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 9643 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 9644 << input_type << " -> " << result_type; in VisitTypeConversion() 9647 if ((input_type == DataType::Type::kReference) || (input_type == DataType::Type::kVoid) || in VisitTypeConversion() 9649 LOG(FATAL) << "Unexpected type conversion from " << input_type << " to " << result_type; in VisitTypeConversion() 9654 ((DataType::IsFloatingPointType(result_type) && input_type == DataType::Type::kInt64) || in VisitTypeConversion() 9655 (result_type == DataType::Type::kInt64 && DataType::IsFloatingPointType(input_type)))) { in VisitTypeConversion() 9663 if (DataType::IsFloatingPointType(input_type)) { in VisitTypeConversion() 9677 if (DataType::IsFloatingPointType(input_type)) { in VisitTypeConversion() 9680 DCHECK_EQ(input_type, DataType::Type::kInt64); in VisitTypeConversion() [all …]
|
D | loop_optimization.cc | 1732 DataType::Type input_type = input->GetType(); in GenerateVecInv() local 1733 if (type != input_type && (type == DataType::Type::kInt64 || in GenerateVecInv() 1734 input_type == DataType::Type::kInt64)) { in GenerateVecInv()
|