Home
last modified time | relevance | path

Searched refs:input_type (Results 1 – 21 of 21) 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_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()
Dinstruction_simplifier_shared.h30 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()
Ddata_type.h210 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()
Dssa_builder.cc136 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()
Dinstruction_simplifier_arm64.cc244 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()
Dinstruction_simplifier_arm.cc268 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()
Dinstruction_simplifier.cc1055 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 …]
Dscheduler_arm.cc1054 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()
Dgraph_checker.cc953 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()
Dcode_generator_x86.cc2424 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 …]
Dcommon_arm64.h145 DataType::Type input_type = input->GetType(); in InputCPURegisterOrZeroRegAt() local
147 return (DataType::Size(input_type) >= vixl::aarch64::kXRegSizeInBytes) in InputCPURegisterOrZeroRegAt()
Dnodes_vector.h310 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()
Dcode_generator_x86_64.cc2555 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 …]
Dcode_generator_arm_vixl.cc3748 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 …]
Dcode_generator_mips64.cc6856 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 …]
Dcode_generator_mips.cc8977 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 …]
Dinstruction_builder.h133 DataType::Type input_type,
Dcode_generator_arm64.cc5656 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 …]
Dloop_optimization.cc1563 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()
Dinstruction_builder.cc641 DataType::Type input_type, in Conversion_12x() argument
644 HInstruction* first = LoadLocal(instruction.VRegB(), input_type); in Conversion_12x()