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.h215 static bool IsTypeConversionImplicit(Type input_type, Type result_type);
218 static bool IsZeroExtension(Type input_type, Type result_type) { in IsZeroExtension() argument
220 IsUnsignedType(input_type) && in IsZeroExtension()
221 Size(result_type) > Size(input_type); in IsZeroExtension()
262 inline bool DataType::IsTypeConversionImplicit(Type input_type, Type result_type) { in IsTypeConversionImplicit() argument
264 DCHECK_NE(DataType::Type::kVoid, input_type); in IsTypeConversionImplicit()
272 return result_type == input_type || in IsTypeConversionImplicit()
274 IsIntegralType(input_type) && in IsTypeConversionImplicit()
276 MinValueOfIntegralType(input_type) >= MinValueOfIntegralType(result_type) && in IsTypeConversionImplicit()
277 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.h31 DataType::Type input_type = conversion->GetInputType(); in CanFitInShifterOperand() local
33 return DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type) && in CanFitInShifterOperand()
34 (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.cc1180 static bool IsTypeConversionLossless(DataType::Type input_type, DataType::Type result_type) { in IsTypeConversionLossless() argument
1182 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in IsTypeConversionLossless()
1183 << input_type << "," << result_type; in IsTypeConversionLossless()
1189 return DataType::Size(result_type) > DataType::Size(input_type) && in IsTypeConversionLossless()
1191 !(result_type == DataType::Type::kInt64 && input_type == DataType::Type::kFloat32); in IsTypeConversionLossless()
1245 DataType::Type input_type = type_conversion->GetInputType(); in IsTypeConversionForStoringIntoNoWiderFieldOnly() local
1247 if (!DataType::IsIntegralType(input_type) || in IsTypeConversionForStoringIntoNoWiderFieldOnly()
1249 input_type == DataType::Type::kInt64 || in IsTypeConversionForStoringIntoNoWiderFieldOnly()
1255 if (DataType::Size(input_type) >= DataType::Size(result_type)) { in IsTypeConversionForStoringIntoNoWiderFieldOnly()
1293 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()
Dcommon_arm64.h156 DataType::Type input_type = input->GetType(); in InputCPURegisterOrZeroRegAt() local
158 return (DataType::Size(input_type) >= vixl::aarch64::kXRegSizeInBytes) in InputCPURegisterOrZeroRegAt()
Dcode_generator_x86_64.cc3171 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
3172 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
3173 << input_type << " -> " << result_type; in VisitTypeConversion()
3180 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion()
3186 switch (input_type) { in VisitTypeConversion()
3203 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
3209 switch (input_type) { in VisitTypeConversion()
3233 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
3239 switch (input_type) { in VisitTypeConversion()
3261 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
[all …]
Dgraph_checker.cc1205 DataType::Type input_type = instruction->InputAt(0)->GetType(); in VisitNeg() local
1207 if (result_type != DataType::Kind(input_type)) { in VisitNeg()
1212 DataType::PrettyDescriptor(input_type))); in VisitNeg()
1317 DataType::Type input_type = instruction->GetInputType(); in VisitTypeConversion() local
1325 DataType::PrettyDescriptor(input_type))); in VisitTypeConversion()
Dcode_generator_x86.cc2966 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
2967 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
2968 << input_type << " -> " << result_type; in VisitTypeConversion()
2973 ((input_type == DataType::Type::kFloat32 || input_type == DataType::Type::kFloat64) in VisitTypeConversion()
2983 switch (input_type) { in VisitTypeConversion()
3007 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
3014 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion()
3020 switch (input_type) { in VisitTypeConversion()
3039 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
3045 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.cc3815 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
3816 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
3817 << input_type << " -> " << result_type; in VisitTypeConversion()
3822 (((input_type == DataType::Type::kFloat32 || input_type == DataType::Type::kFloat64) in VisitTypeConversion()
3824 || (input_type == DataType::Type::kInt64 && result_type == DataType::Type::kFloat32)) in VisitTypeConversion()
3835 DCHECK(DataType::IsIntegralType(input_type)) << input_type; in VisitTypeConversion()
3841 switch (input_type) { in VisitTypeConversion()
3860 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
3866 switch (input_type) { in VisitTypeConversion()
3893 LOG(FATAL) << "Unexpected type conversion from " << input_type in VisitTypeConversion()
[all …]
Dinstruction_builder.h123 DataType::Type input_type,
Dcode_generator_arm64.cc6390 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
6392 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
6393 << input_type << " -> " << result_type; in VisitTypeConversion()
6394 if ((input_type == DataType::Type::kReference) || (input_type == DataType::Type::kVoid) || in VisitTypeConversion()
6396 LOG(FATAL) << "Unexpected type conversion from " << input_type << " to " << result_type; in VisitTypeConversion()
6399 if (DataType::IsFloatingPointType(input_type)) { in VisitTypeConversion()
6414 DataType::Type input_type = conversion->GetInputType(); in VisitTypeConversion() local
6416 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
6417 << input_type << " -> " << result_type; in VisitTypeConversion()
6419 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion()
[all …]
Dloop_optimization.cc1849 DataType::Type input_type = input->GetType(); in GenerateVecInv() local
1850 if (type != input_type && (type == DataType::Type::kInt64 || in GenerateVecInv()
1851 input_type == DataType::Type::kInt64)) { in GenerateVecInv()
Dinstruction_builder.cc697 DataType::Type input_type, in Conversion_12x() argument
700 HInstruction* first = LoadLocal(instruction.VRegB(), input_type); in Conversion_12x()