Home
last modified time | relevance | path

Searched refs:input_type (Results 1 – 20 of 20) 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.h214 static bool IsTypeConversionImplicit(Type input_type, Type result_type);
217 static bool IsZeroExtension(Type input_type, Type result_type) { in IsZeroExtension() argument
219 IsUnsignedType(input_type) && in IsZeroExtension()
220 Size(result_type) > Size(input_type); in IsZeroExtension()
261 inline bool DataType::IsTypeConversionImplicit(Type input_type, Type result_type) { in IsTypeConversionImplicit() argument
263 DCHECK_NE(DataType::Type::kVoid, input_type); in IsTypeConversionImplicit()
271 return result_type == input_type || in IsTypeConversionImplicit()
273 IsIntegralType(input_type) && in IsTypeConversionImplicit()
275 MinValueOfIntegralType(input_type) >= MinValueOfIntegralType(result_type) && in IsTypeConversionImplicit()
276 MaxValueOfIntegralType(input_type) <= MaxValueOfIntegralType(result_type)); in IsTypeConversionImplicit()
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()
Dcritical_native_abi_fixup_arm.cc36 DataType::Type input_type = input->GetType(); in FixUpArguments() local
38 if (DataType::Is64BitType(input_type)) { in FixUpArguments()
45 if (DataType::IsFloatingPointType(input_type)) { in FixUpArguments()
46 bool is_double = (input_type == DataType::Type::kFloat64); in FixUpArguments()
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()
Dssa_builder.cc139 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()
Dinstruction_simplifier_arm.cc284 DataType::Type input_type = instruction->GetInputType(); in VisitTypeConversion() local
286 if (input_type == result_type) { in VisitTypeConversion()
291 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion()
Dinstruction_simplifier_arm64.cc255 DataType::Type input_type = instruction->GetInputType(); in VisitTypeConversion() local
257 if (input_type == result_type) { in VisitTypeConversion()
262 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion()
Dinstruction_simplifier.cc1172 static bool IsTypeConversionLossless(DataType::Type input_type, DataType::Type result_type) { in IsTypeConversionLossless() argument
1174 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in IsTypeConversionLossless()
1175 << input_type << "," << result_type; in IsTypeConversionLossless()
1181 return DataType::Size(result_type) > DataType::Size(input_type) && in IsTypeConversionLossless()
1183 !(result_type == DataType::Type::kInt64 && input_type == DataType::Type::kFloat32); in IsTypeConversionLossless()
1210 DataType::Type input_type = type_conversion->GetInputType(); in IsTypeConversionForStoringIntoNoWiderFieldOnly() local
1212 if (!DataType::IsIntegralType(input_type) || in IsTypeConversionForStoringIntoNoWiderFieldOnly()
1214 input_type == DataType::Type::kInt64 || in IsTypeConversionForStoringIntoNoWiderFieldOnly()
1220 if (DataType::Size(input_type) >= DataType::Size(result_type)) { in IsTypeConversionForStoringIntoNoWiderFieldOnly()
1258 DataType::Type input_type = input->GetType(); in VisitTypeConversion() local
[all …]
Dscheduler_arm.cc1061 DataType::Type input_type = instr->GetInputType(); in VisitTypeConversion() local
1072 switch (input_type) { in VisitTypeConversion()
1088 switch (input_type) { in VisitTypeConversion()
1112 switch (input_type) { in VisitTypeConversion()
1136 switch (input_type) { in VisitTypeConversion()
Dgraph_checker.cc1043 DataType::Type input_type = instruction->InputAt(0)->GetType(); in VisitNeg() local
1045 if (result_type != DataType::Kind(input_type)) { in VisitNeg()
1050 DataType::PrettyDescriptor(input_type))); in VisitNeg()
1138 DataType::Type input_type = instruction->GetInputType(); in VisitTypeConversion() local
1146 DataType::PrettyDescriptor(input_type))); in VisitTypeConversion()
Dcommon_arm64.h155 DataType::Type input_type = input->GetType(); in InputCPURegisterOrZeroRegAt() local
157 return (DataType::Size(input_type) >= vixl::aarch64::kXRegSizeInBytes) in InputCPURegisterOrZeroRegAt()
Dcode_generator_x86_64.cc2939 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
2940 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
2941 << input_type << " -> " << result_type; in VisitTypeConversion()
2948 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion()
2954 switch (input_type) { in VisitTypeConversion()
2971 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
2977 switch (input_type) { in VisitTypeConversion()
3001 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
3007 switch (input_type) { in VisitTypeConversion()
3029 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
[all …]
Dcode_generator_x86.cc2807 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
2808 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
2809 << input_type << " -> " << result_type; in VisitTypeConversion()
2814 ((input_type == DataType::Type::kFloat32 || input_type == DataType::Type::kFloat64) in VisitTypeConversion()
2824 switch (input_type) { in VisitTypeConversion()
2848 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
2855 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion()
2861 switch (input_type) { in VisitTypeConversion()
2880 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
2886 switch (input_type) { in VisitTypeConversion()
[all …]
Dnodes_vector.h374 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()
Dcode_generator_arm_vixl.cc3666 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
3667 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
3668 << input_type << " -> " << result_type; in VisitTypeConversion()
3673 (((input_type == DataType::Type::kFloat32 || input_type == DataType::Type::kFloat64) in VisitTypeConversion()
3675 || (input_type == DataType::Type::kInt64 && result_type == DataType::Type::kFloat32)) in VisitTypeConversion()
3686 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion()
3692 switch (input_type) { in VisitTypeConversion()
3711 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
3717 switch (input_type) { in VisitTypeConversion()
3744 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
[all …]
Dinstruction_builder.h122 DataType::Type input_type,
Dcode_generator_arm64.cc6212 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
6214 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
6215 << input_type << " -> " << result_type; in VisitTypeConversion()
6216 if ((input_type == DataType::Type::kReference) || (input_type == DataType::Type::kVoid) || in VisitTypeConversion()
6218 LOG(FATAL) << "Unexpected type conversion from " << input_type << " to " << result_type; in VisitTypeConversion()
6221 if (DataType::IsFloatingPointType(input_type)) { in VisitTypeConversion()
6236 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
6238 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
6239 << input_type << " -> " << result_type; in VisitTypeConversion()
6241 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion()
[all …]
Dloop_optimization.cc1761 DataType::Type input_type = input->GetType(); in GenerateVecInv() local
1762 if (type != input_type && (type == DataType::Type::kInt64 || in GenerateVecInv()
1763 input_type == DataType::Type::kInt64)) { in GenerateVecInv()
Dinstruction_builder.cc674 DataType::Type input_type, in Conversion_12x() argument
677 HInstruction* first = LoadLocal(instruction.VRegB(), input_type); in Conversion_12x()