Home
last modified time | relevance | path

Searched refs:input_type (Results 1 – 17 of 17) 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.h210 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()
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_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()
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_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.cc273 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()
Dinstruction_simplifier.cc1087 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 …]
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.cc1037 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()
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.h306 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()
Dcode_generator_arm_vixl.cc3365 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 …]
Dinstruction_builder.h129 DataType::Type input_type,
Dcode_generator_mips64.cc7256 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 …]
Dcode_generator_mips.cc9641 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 …]
Dloop_optimization.cc1732 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()