/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_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 | data_type.h | 210 static bool IsTypeConversionImplicit(Type input_type, Type result_type); 221 inline bool DataType::IsTypeConversionImplicit(Type input_type, Type result_type) { in IsTypeConversionImplicit() argument 223 DCHECK_NE(DataType::Type::kVoid, input_type); in IsTypeConversionImplicit() 231 return result_type == input_type || in IsTypeConversionImplicit() 233 IsIntegralType(input_type) && in IsTypeConversionImplicit() 235 MinValueOfIntegralType(input_type) >= MinValueOfIntegralType(result_type) && in IsTypeConversionImplicit() 236 MaxValueOfIntegralType(input_type) <= MaxValueOfIntegralType(result_type)); in IsTypeConversionImplicit()
|
D | ssa_builder.cc | 136 DataType::Type input_type = HPhi::ToPhiType(input->GetType()); in TypePhiFromInputs() local 137 if (common_type == input_type) { in TypePhiFromInputs() 139 } else if (DataType::Is64BitType(common_type) != DataType::Is64BitType(input_type)) { in TypePhiFromInputs() 146 DCHECK(DataType::IsFloatingPointType(input_type) || in TypePhiFromInputs() 147 input_type == DataType::Type::kReference); in TypePhiFromInputs() 148 common_type = input_type; in TypePhiFromInputs() 149 } else if (DataType::IsIntegralType(input_type)) { in TypePhiFromInputs() 157 (common_type == DataType::Type::kFloat32 && input_type == DataType::Type::kReference) || in TypePhiFromInputs() 158 (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 | 268 DataType::Type input_type = instruction->GetInputType(); in VisitTypeConversion() local 270 if (input_type == result_type) { in VisitTypeConversion() 275 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion()
|
D | instruction_simplifier.cc | 1055 static bool IsTypeConversionLossless(DataType::Type input_type, DataType::Type result_type) { in IsTypeConversionLossless() argument 1057 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in IsTypeConversionLossless() 1058 << input_type << "," << result_type; in IsTypeConversionLossless() 1064 return DataType::Size(result_type) > DataType::Size(input_type) && in IsTypeConversionLossless() 1066 !(result_type == DataType::Type::kInt64 && input_type == DataType::Type::kFloat32); in IsTypeConversionLossless() 1090 DataType::Type input_type = type_conversion->GetInputType(); in IsTypeConversionForStoringIntoNoWiderFieldOnly() local 1092 if (!DataType::IsIntegralType(input_type) || in IsTypeConversionForStoringIntoNoWiderFieldOnly() 1094 input_type == DataType::Type::kInt64 || in IsTypeConversionForStoringIntoNoWiderFieldOnly() 1100 if (DataType::Size(input_type) >= DataType::Size(result_type)) { in IsTypeConversionForStoringIntoNoWiderFieldOnly() 1138 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 | 953 DataType::Type input_type = instruction->InputAt(0)->GetType(); in VisitNeg() local 955 if (result_type != DataType::Kind(input_type)) { in VisitNeg() 960 DataType::PrettyDescriptor(input_type))); in VisitNeg() 1048 DataType::Type input_type = instruction->GetInputType(); in VisitTypeConversion() local 1056 DataType::PrettyDescriptor(input_type))); in VisitTypeConversion()
|
D | code_generator_x86.cc | 2424 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 2425 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 2426 << input_type << " -> " << result_type; in VisitTypeConversion() 2431 ((input_type == DataType::Type::kFloat32 || input_type == DataType::Type::kFloat64) in VisitTypeConversion() 2441 switch (input_type) { in VisitTypeConversion() 2465 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() 2472 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion() 2478 switch (input_type) { in VisitTypeConversion() 2497 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() 2503 switch (input_type) { in VisitTypeConversion() [all …]
|
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 | 310 DataType::Type input_type = input->AsVecOperation()->GetPackedType(); in HasConsistentPackedTypes() local 311 DCHECK_EQ(HVecOperation::ToUnsignedType(input_type) == HVecOperation::ToUnsignedType(type), in HasConsistentPackedTypes() 312 HVecOperation::ToSignedType(input_type) == HVecOperation::ToSignedType(type)); in HasConsistentPackedTypes() 313 return HVecOperation::ToSignedType(input_type) == HVecOperation::ToSignedType(type); in HasConsistentPackedTypes()
|
D | code_generator_x86_64.cc | 2555 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 2556 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 2557 << input_type << " -> " << result_type; in VisitTypeConversion() 2564 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion() 2570 switch (input_type) { in VisitTypeConversion() 2587 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() 2593 switch (input_type) { in VisitTypeConversion() 2617 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() 2623 switch (input_type) { in VisitTypeConversion() 2645 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() [all …]
|
D | code_generator_arm_vixl.cc | 3748 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 3749 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 3750 << input_type << " -> " << result_type; in VisitTypeConversion() 3755 (((input_type == DataType::Type::kFloat32 || input_type == DataType::Type::kFloat64) in VisitTypeConversion() 3757 || (input_type == DataType::Type::kInt64 && result_type == DataType::Type::kFloat32)) in VisitTypeConversion() 3768 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion() 3774 switch (input_type) { in VisitTypeConversion() 3793 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() 3799 switch (input_type) { in VisitTypeConversion() 3826 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion() [all …]
|
D | code_generator_mips64.cc | 6856 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 6858 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 6859 << input_type << " -> " << result_type; in VisitTypeConversion() 6861 if ((input_type == DataType::Type::kReference) || (input_type == DataType::Type::kVoid) || in VisitTypeConversion() 6863 LOG(FATAL) << "Unexpected type conversion from " << input_type << " to " << result_type; in VisitTypeConversion() 6868 if (DataType::IsFloatingPointType(input_type)) { in VisitTypeConversion() 6884 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 6886 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 6887 << input_type << " -> " << result_type; in VisitTypeConversion() 6889 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion() [all …]
|
D | code_generator_mips.cc | 8977 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 8979 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 8980 << input_type << " -> " << result_type; in VisitTypeConversion() 8983 if ((input_type == DataType::Type::kReference) || (input_type == DataType::Type::kVoid) || in VisitTypeConversion() 8985 LOG(FATAL) << "Unexpected type conversion from " << input_type << " to " << result_type; in VisitTypeConversion() 8990 ((DataType::IsFloatingPointType(result_type) && input_type == DataType::Type::kInt64) || in VisitTypeConversion() 8991 (result_type == DataType::Type::kInt64 && DataType::IsFloatingPointType(input_type)))) { in VisitTypeConversion() 8999 if (DataType::IsFloatingPointType(input_type)) { in VisitTypeConversion() 9013 if (DataType::IsFloatingPointType(input_type)) { in VisitTypeConversion() 9016 DCHECK_EQ(input_type, DataType::Type::kInt64); in VisitTypeConversion() [all …]
|
D | instruction_builder.h | 133 DataType::Type input_type,
|
D | code_generator_arm64.cc | 5656 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 5658 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 5659 << input_type << " -> " << result_type; in VisitTypeConversion() 5660 if ((input_type == DataType::Type::kReference) || (input_type == DataType::Type::kVoid) || in VisitTypeConversion() 5662 LOG(FATAL) << "Unexpected type conversion from " << input_type << " to " << result_type; in VisitTypeConversion() 5665 if (DataType::IsFloatingPointType(input_type)) { in VisitTypeConversion() 5680 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local 5682 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion() 5683 << input_type << " -> " << result_type; in VisitTypeConversion() 5685 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion() [all …]
|
D | loop_optimization.cc | 1563 DataType::Type input_type = input->GetType(); in GenerateVecInv() local 1564 if (type != input_type && (type == DataType::Type::kInt64 || in GenerateVecInv() 1565 input_type == DataType::Type::kInt64)) { in GenerateVecInv()
|
D | instruction_builder.cc | 641 DataType::Type input_type, in Conversion_12x() argument 644 HInstruction* first = LoadLocal(instruction.VRegB(), input_type); in Conversion_12x()
|