Home
last modified time | relevance | path

Searched refs:result_type (Results 1 – 20 of 20) sorted by relevance

/art/compiler/optimizing/
Ddata_type.h215 static bool IsTypeConversionImplicit(Type input_type, Type result_type);
216 static bool IsTypeConversionImplicit(int64_t value, Type result_type);
218 static bool IsZeroExtension(Type input_type, Type result_type) { in IsZeroExtension() argument
219 return IsIntOrLongType(result_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
263 DCHECK_NE(DataType::Type::kVoid, result_type); in IsTypeConversionImplicit()
267 DCHECK_NE(DataType::Type::kBool, result_type); in IsTypeConversionImplicit()
272 return result_type == input_type || in IsTypeConversionImplicit()
273 (result_type != Type::kInt64 && in IsTypeConversionImplicit()
[all …]
Dnodes_shared.cc45 DataType::Type result_type = instruction->AsTypeConversion()->GetResultType(); in GetOpInfoFromInstruction() local
47 int result_size = DataType::Size(result_type); in GetOpInfoFromInstruction()
50 if (result_type == DataType::Type::kInt32 && input_type == DataType::Type::kInt64) { in GetOpInfoFromInstruction()
57 } else if (result_type == DataType::Type::kUint8 || in GetOpInfoFromInstruction()
60 } else if (result_type == DataType::Type::kUint16 || in GetOpInfoFromInstruction()
Dnodes_x86.h71 HX86FPNeg(DataType::Type result_type, in HX86FPNeg() argument
75 : HExpression(kX86FPNeg, result_type, SideEffects::None(), dex_pc) { in HX86FPNeg()
76 DCHECK(DataType::IsFloatingPointType(result_type)); in HX86FPNeg()
133 HX86AndNot(DataType::Type result_type,
137 : HBinaryOperation(kX86AndNot, result_type, left, right, SideEffects::None(), dex_pc) { in HBinaryOperation() argument
171 HX86MaskOrResetLeastSetBit(DataType::Type result_type, InstructionKind op,
173 : HUnaryOperation(kX86MaskOrResetLeastSetBit, result_type, input, dex_pc), in HUnaryOperation() argument
175 DCHECK_EQ(result_type, DataType::Kind(input->GetType())); in HUnaryOperation()
Ddata_type_test.cc92 DataType::Type result_type = kIntegralResultTypes[result_index]; in TEST() local
94 DataType::IsTypeConversionImplicit(input_type, result_type)) in TEST()
95 << input_type << " " << result_type; in TEST()
102 for (DataType::Type result_type : kIntegralResultTypes) { in TEST() local
103 EXPECT_FALSE(DataType::IsTypeConversionImplicit(DataType::Type::kFloat32, result_type)); in TEST()
104 EXPECT_FALSE(DataType::IsTypeConversionImplicit(DataType::Type::kFloat64, result_type)); in TEST()
Dinstruction_simplifier_shared.h30 DataType::Type result_type = conversion->GetResultType(); in CanFitInShifterOperand() local
33 return DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type) && in CanFitInShifterOperand()
34 (result_type != input_type); in CanFitInShifterOperand()
Dgraph_checker.cc1206 DataType::Type result_type = instruction->GetType(); in VisitNeg() local
1207 if (result_type != DataType::Kind(input_type)) { in VisitNeg()
1211 DataType::PrettyDescriptor(result_type), in VisitNeg()
1235 DataType::Type result_type = op->GetType(); in VisitBinaryOperation() local
1257 if (result_type != DataType::Type::kInt32) { in VisitBinaryOperation()
1260 DataType::PrettyDescriptor(result_type))); in VisitBinaryOperation()
1265 if (result_type != DataType::Kind(lhs_type)) { in VisitBinaryOperation()
1269 DataType::PrettyDescriptor(result_type), in VisitBinaryOperation()
1273 if (DataType::Kind(result_type) != DataType::Kind(lhs_type)) { in VisitBinaryOperation()
1277 DataType::PrettyDescriptor(result_type), in VisitBinaryOperation()
[all …]
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()
1190 result_type != DataType::Type::kUint16 && in IsTypeConversionLossless()
1191 !(result_type == DataType::Type::kInt64 && input_type == DataType::Type::kFloat32); in IsTypeConversionLossless()
1196 DataType::Type result_type) { in CanRemoveRedundantAnd() argument
1214 int64_t mask = DataType::MaxValueOfIntegralType(DataType::ToUnsigned(result_type)) << shr_cst; in CanRemoveRedundantAnd()
1246 DataType::Type result_type = type_conversion->GetResultType(); in IsTypeConversionForStoringIntoNoWiderFieldOnly() local
1248 !DataType::IsIntegralType(result_type) || in IsTypeConversionForStoringIntoNoWiderFieldOnly()
[all …]
Dinstruction_simplifier_arm.cc283 DataType::Type result_type = instruction->GetResultType(); 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.cc254 DataType::Type result_type = instruction->GetResultType(); in VisitTypeConversion() local
257 if (input_type == result_type) { in VisitTypeConversion()
262 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion()
Dnodes_shared.h67 HBitwiseNegatedRight(DataType::Type result_type,
73 result_type, in HBinaryOperation() argument
Dnodes.h3816 DataType::Type result_type,
3819 : HExpression(kind, result_type, SideEffects::None(), dex_pc) {
3854 DataType::Type result_type,
3859 : HExpression(kind, result_type, side_effects, dex_pc) {
5303 HNeg(DataType::Type result_type, HInstruction* input, uint32_t dex_pc = kNoDexPc)
5304 : HUnaryOperation(kNeg, result_type, input, dex_pc) {
5305 DCHECK_EQ(result_type, DataType::Kind(input->GetType()));
5378 HAdd(DataType::Type result_type,
5382 : HBinaryOperation(kAdd, result_type, left, right, SideEffects::None(), dex_pc) {
5414 HSub(DataType::Type result_type,
[all …]
Dinstruction_builder.h124 DataType::Type result_type,
Dcode_generator_x86_64.cc3170 DataType::Type result_type = conversion->GetResultType(); in VisitTypeConversion() local
3172 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
3173 << input_type << " -> " << result_type; in VisitTypeConversion()
3175 switch (result_type) { in VisitTypeConversion()
3204 << " to " << result_type; in VisitTypeConversion()
3234 << " to " << result_type; in VisitTypeConversion()
3262 << " to " << result_type; in VisitTypeConversion()
3290 << " to " << result_type; in VisitTypeConversion()
3296 << " to " << result_type; in VisitTypeConversion()
3304 DataType::Type result_type = conversion->GetResultType(); in VisitTypeConversion() local
[all …]
Dcode_generator_arm64.cc6391 DataType::Type result_type = conversion->GetResultType(); in VisitTypeConversion() local
6392 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
6393 << input_type << " -> " << result_type; in VisitTypeConversion()
6395 (result_type == DataType::Type::kReference) || (result_type == DataType::Type::kVoid)) { in VisitTypeConversion()
6396 LOG(FATAL) << "Unexpected type conversion from " << input_type << " to " << result_type; in VisitTypeConversion()
6405 if (DataType::IsFloatingPointType(result_type)) { in VisitTypeConversion()
6413 DataType::Type result_type = conversion->GetResultType(); 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 …]
Dscheduler_arm.cc1060 DataType::Type result_type = instr->GetResultType(); in VisitTypeConversion() local
1063 switch (result_type) { in VisitTypeConversion()
Dcode_generator_x86.cc2965 DataType::Type result_type = conversion->GetResultType(); in VisitTypeConversion() local
2967 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
2968 << input_type << " -> " << result_type; in VisitTypeConversion()
2974 && result_type == DataType::Type::kInt64) in VisitTypeConversion()
2980 switch (result_type) { in VisitTypeConversion()
3008 << " to " << result_type; in VisitTypeConversion()
3040 << " to " << result_type; in VisitTypeConversion()
3069 << " to " << result_type; in VisitTypeConversion()
3097 << " to " << result_type; in VisitTypeConversion()
3125 << " to " << result_type; in VisitTypeConversion()
[all …]
Dcode_generator_arm_vixl.cc3814 DataType::Type result_type = conversion->GetResultType(); in VisitTypeConversion() local
3816 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
3817 << input_type << " -> " << result_type; in VisitTypeConversion()
3823 && result_type == DataType::Type::kInt64) in VisitTypeConversion()
3824 || (input_type == DataType::Type::kInt64 && result_type == DataType::Type::kFloat32)) in VisitTypeConversion()
3830 switch (result_type) { in VisitTypeConversion()
3861 << " to " << result_type; in VisitTypeConversion()
3894 << " to " << result_type; in VisitTypeConversion()
3925 << " to " << result_type; in VisitTypeConversion()
3955 << " to " << result_type; in VisitTypeConversion()
[all …]
Dinstruction_builder.cc698 DataType::Type result_type, in Conversion_12x() argument
701 AppendInstruction(new (allocator_) HTypeConversion(result_type, first, dex_pc)); in Conversion_12x()
/art/runtime/entrypoints/
Dentrypoint_utils.cc119 ObjPtr<mirror::Class> result_type; in InvokeProxyInvocationHandler() local
122 result_type = h_interface_method->GetArtMethod()->ResolveReturnType(); in InvokeProxyInvocationHandler()
123 if (result_type == nullptr) { in InvokeProxyInvocationHandler()
128 result_type = runtime->GetClassLinker()->LookupPrimitiveClass(shorty[0]); in InvokeProxyInvocationHandler()
129 DCHECK(result_type != nullptr); in InvokeProxyInvocationHandler()
132 if (!UnboxPrimitiveForResult(h_result.Get(), result_type, &result_unboxed)) { in InvokeProxyInvocationHandler()
/art/libartbase/base/
Dutils.h108 using result_type = uint32_t; member