Home
last modified time | relevance | path

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

/art/compiler/optimizing/
Ddata_type.h210 static bool IsTypeConversionImplicit(Type input_type, Type result_type);
211 static bool IsTypeConversionImplicit(int64_t value, Type result_type);
213 static bool IsZeroExtension(Type input_type, Type result_type) { in IsZeroExtension() argument
214 return IsIntOrLongType(result_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
258 DCHECK_NE(DataType::Type::kVoid, result_type); in IsTypeConversionImplicit()
262 DCHECK_NE(DataType::Type::kBool, result_type); in IsTypeConversionImplicit()
267 return result_type == input_type || in IsTypeConversionImplicit()
268 (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.h29 DataType::Type result_type = conversion->GetResultType(); in CanFitInShifterOperand() local
32 return DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type) && in CanFitInShifterOperand()
33 (result_type != input_type); in CanFitInShifterOperand()
Dgraph_checker.cc1038 DataType::Type result_type = instruction->GetType(); in VisitNeg() local
1039 if (result_type != DataType::Kind(input_type)) { in VisitNeg()
1043 DataType::PrettyDescriptor(result_type), in VisitNeg()
1052 DataType::Type result_type = op->GetType(); in VisitBinaryOperation() local
1074 if (result_type != DataType::Type::kInt32) { in VisitBinaryOperation()
1077 DataType::PrettyDescriptor(result_type))); in VisitBinaryOperation()
1082 if (result_type != DataType::Kind(lhs_type)) { in VisitBinaryOperation()
1086 DataType::PrettyDescriptor(result_type), in VisitBinaryOperation()
1090 if (DataType::Kind(result_type) != DataType::Kind(lhs_type)) { in VisitBinaryOperation()
1094 DataType::PrettyDescriptor(result_type), in VisitBinaryOperation()
[all …]
Dinstruction_simplifier_arm.cc272 DataType::Type result_type = instruction->GetResultType(); 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_arm64.cc243 DataType::Type result_type = instruction->GetResultType(); 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.cc1077 static bool IsTypeConversionLossless(DataType::Type input_type, DataType::Type result_type) { in IsTypeConversionLossless() argument
1079 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in IsTypeConversionLossless()
1080 << input_type << "," << result_type; in IsTypeConversionLossless()
1086 return DataType::Size(result_type) > DataType::Size(input_type) && in IsTypeConversionLossless()
1087 result_type != DataType::Type::kUint16 && in IsTypeConversionLossless()
1088 !(result_type == DataType::Type::kInt64 && input_type == DataType::Type::kFloat32); in IsTypeConversionLossless()
1113 DataType::Type result_type = type_conversion->GetResultType(); in IsTypeConversionForStoringIntoNoWiderFieldOnly() local
1115 !DataType::IsIntegralType(result_type) || in IsTypeConversionForStoringIntoNoWiderFieldOnly()
1117 result_type == DataType::Type::kInt64) { in IsTypeConversionForStoringIntoNoWiderFieldOnly()
1122 if (DataType::Size(input_type) >= DataType::Size(result_type)) { in IsTypeConversionForStoringIntoNoWiderFieldOnly()
[all …]
Dnodes_shared.h67 HBitwiseNegatedRight(DataType::Type result_type,
73 result_type, in HBinaryOperation() argument
Dnodes.h3487 DataType::Type result_type,
3490 : HExpression(kind, result_type, SideEffects::None(), dex_pc) { in HExpression() argument
3525 DataType::Type result_type,
3530 : HExpression(kind, result_type, side_effects, dex_pc) { in HExpression() argument
4875 HNeg(DataType::Type result_type, HInstruction* input, uint32_t dex_pc = kNoDexPc)
4876 : HUnaryOperation(kNeg, result_type, input, dex_pc) { in HUnaryOperation() argument
4877 DCHECK_EQ(result_type, DataType::Kind(input->GetType())); in HUnaryOperation()
4950 HAdd(DataType::Type result_type,
4954 : HBinaryOperation(kAdd, result_type, left, right, SideEffects::None(), dex_pc) { in HBinaryOperation() argument
4986 HSub(DataType::Type result_type,
[all …]
Dinstruction_builder.h130 DataType::Type result_type,
Dcode_generator_arm64.cc5729 DataType::Type result_type = conversion->GetResultType(); in VisitTypeConversion() local
5730 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
5731 << input_type << " -> " << result_type; in VisitTypeConversion()
5733 (result_type == DataType::Type::kReference) || (result_type == DataType::Type::kVoid)) { in VisitTypeConversion()
5734 LOG(FATAL) << "Unexpected type conversion from " << input_type << " to " << result_type; in VisitTypeConversion()
5743 if (DataType::IsFloatingPointType(result_type)) { in VisitTypeConversion()
5751 DataType::Type result_type = conversion->GetResultType(); in VisitTypeConversion() local
5754 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
5755 << input_type << " -> " << result_type; in VisitTypeConversion()
5757 if (DataType::IsIntegralType(result_type) && DataType::IsIntegralType(input_type)) { in VisitTypeConversion()
[all …]
Dcode_generator_x86_64.cc2732 DataType::Type result_type = conversion->GetResultType(); in VisitTypeConversion() local
2734 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
2735 << input_type << " -> " << result_type; in VisitTypeConversion()
2737 switch (result_type) { in VisitTypeConversion()
2766 << " to " << result_type; in VisitTypeConversion()
2796 << " to " << result_type; in VisitTypeConversion()
2824 << " to " << result_type; in VisitTypeConversion()
2852 << " to " << result_type; in VisitTypeConversion()
2858 << " to " << result_type; in VisitTypeConversion()
2866 DataType::Type result_type = conversion->GetResultType(); in VisitTypeConversion() local
[all …]
Dcode_generator_x86.cc2569 DataType::Type result_type = conversion->GetResultType(); in VisitTypeConversion() local
2571 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
2572 << input_type << " -> " << result_type; in VisitTypeConversion()
2578 && result_type == DataType::Type::kInt64) in VisitTypeConversion()
2584 switch (result_type) { in VisitTypeConversion()
2612 << " to " << result_type; in VisitTypeConversion()
2644 << " to " << result_type; in VisitTypeConversion()
2673 << " to " << result_type; in VisitTypeConversion()
2701 << " to " << result_type; in VisitTypeConversion()
2729 << " to " << result_type; in VisitTypeConversion()
[all …]
Dscheduler_arm.cc1053 DataType::Type result_type = instr->GetResultType(); in VisitTypeConversion() local
1056 switch (result_type) { in VisitTypeConversion()
Dcode_generator_arm_vixl.cc3541 DataType::Type result_type = conversion->GetResultType(); in VisitTypeConversion() local
3543 DCHECK(!DataType::IsTypeConversionImplicit(input_type, result_type)) in VisitTypeConversion()
3544 << input_type << " -> " << result_type; in VisitTypeConversion()
3550 && result_type == DataType::Type::kInt64) in VisitTypeConversion()
3551 || (input_type == DataType::Type::kInt64 && result_type == DataType::Type::kFloat32)) in VisitTypeConversion()
3557 switch (result_type) { in VisitTypeConversion()
3588 << " to " << result_type; in VisitTypeConversion()
3621 << " to " << result_type; in VisitTypeConversion()
3652 << " to " << result_type; in VisitTypeConversion()
3682 << " to " << result_type; in VisitTypeConversion()
[all …]
Dinstruction_builder.cc632 DataType::Type result_type, in Conversion_12x() argument
635 AppendInstruction(new (allocator_) HTypeConversion(result_type, first, dex_pc)); in Conversion_12x()
/art/libartbase/base/
Dutils.h95 typedef uint32_t result_type; typedef
/art/runtime/entrypoints/
Dentrypoint_utils.cc114 ObjPtr<mirror::Class> result_type = interface_method->ResolveReturnType(); in InvokeProxyInvocationHandler() local
117 if (!UnboxPrimitiveForResult(result_ref, result_type, &result_unboxed)) { in InvokeProxyInvocationHandler()