/art/compiler/optimizing/ |
D | constant_folding.cc | 154 instruction->ReplaceWith(GetGraph()->GetConstant(DataType::Type::kBool, 0)); in VisitEqual() 166 instruction->ReplaceWith(GetGraph()->GetConstant(DataType::Type::kBool, 1)); in VisitNotEqual() 178 instruction->ReplaceWith(GetGraph()->GetConstant(DataType::Type::kBool, 0)); in VisitAbove() 190 instruction->ReplaceWith(GetGraph()->GetConstant(DataType::Type::kBool, 1)); in VisitAboveOrEqual() 202 instruction->ReplaceWith(GetGraph()->GetConstant(DataType::Type::kBool, 0)); in VisitBelow() 214 instruction->ReplaceWith(GetGraph()->GetConstant(DataType::Type::kBool, 1)); in VisitBelowOrEqual() 245 instruction->ReplaceWith(GetGraph()->GetConstant(type, 0)); in VisitAnd() 264 instruction->ReplaceWith(GetGraph()->GetConstant(DataType::Type::kInt32, in VisitCompare() 336 instruction->ReplaceWith(GetGraph()->GetConstant(type, 0)); in VisitRem() 369 instruction->ReplaceWith(GetGraph()->GetConstant(type, 0)); in VisitSub() [all …]
|
D | bounds_check_elimination.cc | 137 int32_t GetConstant() const { return constant_; } in GetConstant() function in art::ValueBound 414 if (!lower.IsConstant() || lower.GetConstant() == std::numeric_limits<int32_t>::min()) { in Narrow() 430 upper = upper_bound.GetConstant(); in Narrow() 431 } else if (upper_bound.IsRelatedToArrayLength() && upper_bound.GetConstant() <= 0) { in Narrow() 433 upper = max_array_len + upper_bound.GetConstant(); in Narrow() 464 if ((!upper.IsConstant() || upper.GetConstant() == std::numeric_limits<int32_t>::max()) && in Narrow() 473 int32_t constant = range->GetLower().GetConstant(); in Narrow() 645 right_range->GetBound().GetConstant() < 0) { in HandleIfBetweenTwoMonotonicValueRanges() 805 if (lower.GetConstant() == 0 && upper.GetConstant() == 0) { in HandleIf() 849 existing_range->GetLower().GetConstant() > 0) { in VisitBoundsCheck() [all …]
|
D | stack_map_test.cc | 92 ASSERT_EQ(-2, dex_register_map[1].GetConstant()); in TEST() 180 ASSERT_EQ(-2, dex_register_map[1].GetConstant()); in TEST() 350 ASSERT_EQ(-2, map[1].GetConstant()); in TEST() 400 ASSERT_EQ(-2, dex_register_map[1].GetConstant()); in TEST() 444 ASSERT_EQ(-2, dex_registers0[1].GetConstant()); in TEST() 451 ASSERT_EQ(-2, dex_registers1[1].GetConstant()); in TEST() 458 ASSERT_EQ(-2, dex_registers2[1].GetConstant()); in TEST() 593 ASSERT_EQ(4, dex_registers0[1].GetConstant()); in TEST() 609 ASSERT_EQ(20, dex_registers2[1].GetConstant()); in TEST() 620 ASSERT_EQ(0, dex_registers0[1].GetConstant()); in TEST() [all …]
|
D | code_generator_x86_64.cc | 1553 HConstant* constant = source.GetConstant(); in Move() 1570 HConstant* constant = source.GetConstant(); in Move() 1591 HConstant* constant = source.GetConstant(); in Move() 1608 HConstant* constant = source.GetConstant(); in Move() 1727 right.GetConstant()->AsFloatConstant()->GetValue())); in GenerateCompareTest() 1741 right.GetConstant()->AsDoubleConstant()->GetValue())); in GenerateCompareTest() 2110 float value = rhs.GetConstant()->AsFloatConstant()->GetValue(); in HandleCondition() 2123 double value = rhs.GetConstant()->AsDoubleConstant()->GetValue(); in HandleCondition() 2284 float value = right.GetConstant()->AsFloatConstant()->GetValue(); in VisitCompare() 2298 double value = right.GetConstant()->AsDoubleConstant()->GetValue(); in VisitCompare() [all …]
|
D | code_generator_x86.cc | 1359 HConstant* constant = source.GetConstant(); in Move32() 1423 HConstant* constant = source.GetConstant(); in Move64() 1580 int64_t value = right.GetConstant()->AsLongConstant()->GetValue(); in GenerateLongComparesAndJumps() 1640 const_area->GetConstant()->AsDoubleConstant()->GetValue(), in GenerateFPCompare() 1654 const_area->GetConstant()->AsFloatConstant()->GetValue(), in GenerateFPCompare() 2808 DCHECK(in.GetConstant()->IsIntConstant()); in VisitTypeConversion() 2809 int32_t value = in.GetConstant()->AsIntConstant()->GetValue(); in VisitTypeConversion() 2817 DCHECK(in.GetConstant()->IsLongConstant()); in VisitTypeConversion() 2818 int64_t value = in.GetConstant()->AsLongConstant()->GetValue(); in VisitTypeConversion() 2838 DCHECK(in.GetConstant()->IsIntConstant()); in VisitTypeConversion() [all …]
|
D | induction_var_range.cc | 358 *offset = graph->GetConstant(info->op_b->type, off_value); in IsUnitStride() 386 HInstruction* zero = graph->GetConstant(trip->type, 0); in GenerateTripCount() 1041 Insert(block, new (graph->GetAllocator()) HAdd(type, graph->GetConstant(type, sum), c)); in GenerateLastValuePolynomial() 1082 *result = graph->GetConstant(type, 0); in GenerateLastValueGeometric() 1088 e = new (allocator) HMul(type, opa, graph->GetConstant(type, fpow)); in GenerateLastValueGeometric() 1090 e = new (allocator) HDiv(type, opa, graph->GetConstant(type, fpow), kNoDexPc); in GenerateLastValueGeometric() 1175 Insert(block, new (allocator) HAnd(type, t, graph->GetConstant(type, 1))); in GenerateLastValuePeriodic() 1177 Insert(block, new (allocator) HEqual(msk, graph->GetConstant(type, 0), kNoDexPc)); in GenerateLastValuePeriodic() 1285 *result = graph->GetConstant(type, 0); in GenerateCode() 1293 Insert(block, new (allocator) HSub(type, opb, graph->GetConstant(type, 1))); in GenerateCode() [all …]
|
D | common_arm.h | 170 return Int32ConstantFrom(location.GetConstant()); in Int32ConstantFrom() 174 HConstant* instr = location.GetConstant(); in Int64ConstantFrom()
|
D | loop_optimization.cc | 313 *b = graph->GetConstant(instruction->GetType(), (*c)); in IsAddConst2() 333 *b = graph->GetConstant(instruction->GetType(), -c); in IsSubConst2() 1077 ptc = graph_->GetConstant(induc_type, vector_static_peeling_factor_); in Vectorize() 1087 HInstruction* adjusted_offset = graph_->GetConstant(induc_type, hidden_offset >> shift); in Vectorize() 1091 induc_type, offset, graph_->GetConstant(induc_type, align - 1u))); in Vectorize() 1093 induc_type, graph_->GetConstant(induc_type, align), rem)); in Vectorize() 1095 rem, graph_->GetConstant(induc_type, 0))); in Vectorize() 1097 cond, graph_->GetConstant(induc_type, 0), sub, kNoDexPc)); in Vectorize() 1121 graph_->GetConstant(induc_type, chunk - 1))); in Vectorize() 1124 vector_index_ = graph_->GetConstant(induc_type, 0); in Vectorize() [all …]
|
D | intrinsics_x86_64.cc | 617 int32_t pos_const = pos.GetConstant()->AsIntConstant()->GetValue(); in CheckPosition() 623 Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in CheckPosition() 637 __ cmpl(temp, Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in CheckPosition() 662 __ cmpl(temp, Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in CheckPosition() 718 __ movl(count, Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in VisitSystemArrayCopyChar() 731 int32_t src_pos_const = src_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopyChar() 738 int32_t dest_pos_const = dest_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopyChar() 782 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() 789 int32_t constant = dst_pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() 796 int32_t constant = copy_length.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() [all …]
|
D | intrinsics_x86.cc | 120 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in EmitNativeCode() 143 int32_t constant = dest_pos.GetConstant()->AsIntConstant()->GetValue(); in EmitNativeCode() 822 int32_t pos_const = pos.GetConstant()->AsIntConstant()->GetValue(); in CheckPosition() 828 Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in CheckPosition() 842 __ cmpl(temp, Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in CheckPosition() 867 __ cmpl(temp, Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in CheckPosition() 917 __ movl(count, Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in VisitSystemArrayCopyChar() 936 int32_t srcPos_const = srcPos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopyChar() 943 int32_t destPos_const = destPos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopyChar() 1399 srcBegin.IsConstant() ? srcBegin.GetConstant()->AsIntConstant()->GetValue() : 0; in VisitStringGetCharsNoCheck() [all …]
|
D | nodes_x86.h | 58 HConstant* GetConstant() const { in GetConstant() function
|
D | instruction_simplifier_arm64.cc | 111 left = GetGraph()->GetConstant(right->GetType(), 0); in TryMergeIntoShifterOperand()
|
D | code_generator.cc | 85 if (location.GetConstant()->IsIntConstant()) { in CheckType() 87 } else if (location.GetConstant()->IsNullConstant()) { in CheckType() 89 } else if (location.GetConstant()->IsLongConstant()) { in CheckType() 91 } else if (location.GetConstant()->IsFloatConstant()) { in CheckType() 94 return location.GetConstant()->IsDoubleConstant() in CheckType() 1379 DCHECK_EQ(current, location.GetConstant()); in EmitVRegInfo()
|
D | instruction_simplifier_shared.cc | 155 mul->GetBlock()->GetGraph()->GetConstant(type, 0), in TryCombineMultiplyAccumulate()
|
D | intrinsics_arm64.cc | 2052 int32_t pos_const = pos.GetConstant()->AsIntConstant()->GetValue(); in CheckSystemArrayCopyPosition() 2108 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() 2116 int32_t constant = dst_pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() 2124 int32_t constant = copy_length.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() 2163 DCHECK_GE(length.GetConstant()->AsIntConstant()->GetValue(), 0); in VisitSystemArrayCopyChar() 2164 DCHECK_LE(length.GetConstant()->AsIntConstant()->GetValue(), 32); in VisitSystemArrayCopyChar() 2328 int32_t src_pos_constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopy() 2330 int32_t dest_pos_constant = dest_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopy() 2340 || (src_pos_constant >= dest_pos.GetConstant()->AsIntConstant()->GetValue())); in VisitSystemArrayCopy() 2613 if (length.IsConstant() && length.GetConstant()->AsIntConstant()->GetValue() == 0) { in VisitSystemArrayCopy() [all …]
|
D | code_generator_vector_arm64_sve.cc | 122 __ Fmov(dst.V4S(), src_loc.GetConstant()->AsFloatConstant()->GetValue()); in VisitVecReplicateScalar() 130 __ Fmov(dst.V2D(), src_loc.GetConstant()->AsDoubleConstant()->GetValue()); in VisitVecReplicateScalar() 870 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShl() 904 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShr() 938 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecUShr()
|
D | code_generator_vector_arm64_neon.cc | 122 __ Fmov(dst.V4S(), src_loc.GetConstant()->AsFloatConstant()->GetValue()); in VisitVecReplicateScalar() 130 __ Fmov(dst.V2D(), src_loc.GetConstant()->AsDoubleConstant()->GetValue()); in VisitVecReplicateScalar() 870 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShl() 904 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShr() 938 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecUShr()
|
D | common_arm64.h | 160 return Int64FromConstant(location.GetConstant()); in Int64FromLocation()
|
D | code_generator_vector_arm_vixl.cc | 660 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShl() 690 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShr() 720 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecUShr()
|
D | locations.h | 110 HConstant* GetConstant() const { in GetConstant() function
|
/art/runtime/ |
D | dex_register_location.h | 66 int32_t GetConstant() const { in GetConstant() function
|
D | stack.cc | 324 uint32_t result = dex_register_map[vreg].GetConstant(); in GetVRegFromOptimizedCode() 356 *val = location.GetConstant(); in GetVRegFromOptimizedCode()
|
D | quick_exception_handler.cc | 517 value = vreg_map[vreg].GetConstant(); in HandleOptimizingDeoptimization()
|
/art/tools/veridex/ |
D | flow_analysis.h | 68 uint32_t GetConstant() const { in GetConstant() function
|
D | flow_analysis.cc | 154 if (lhs.GetConstant() op rhs.GetConstant()) { \ in GetBranchFlags() 165 if (val.GetConstant() op 0) { /* NOLINT */ \ in GetBranchFlags()
|