/aosp12/art/compiler/optimizing/ |
H A 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 …]
|
H A D | bounds_check_elimination.cc | 137 int32_t GetConstant() const { return constant_; } in GetConstant() function in art::ValueBound 430 upper = upper_bound.GetConstant(); in Narrow() 433 upper = max_array_len + upper_bound.GetConstant(); in Narrow() 645 right_range->GetBound().GetConstant() < 0) { in HandleIfBetweenTwoMonotonicValueRanges() 805 if (lower.GetConstant() == 0 && upper.GetConstant() == 0) { in HandleIf() 883 if (constant < lower.GetConstant()) { in VisitBoundsCheck() 1157 int32_t c1 = lower.GetConstant(); in VisitSub() 1158 int32_t c2 = upper.GetConstant(); in VisitSub() 1415 int32_t max_c = value.GetConstant(); in AddComparesWithDeoptimization() 1534 int32_t max_c = value.GetConstant(); in TransformLoopForDynamicBCE() [all …]
|
H A 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() 620 ASSERT_EQ(0, dex_registers0[1].GetConstant()); in TEST() 649 ASSERT_EQ(4, dex_registers0[1].GetConstant()); in TEST() [all …]
|
H A D | code_generator_x86_64.cc | 1626 HConstant* constant = source.GetConstant(); in Move() 1643 HConstant* constant = source.GetConstant(); in Move() 1664 HConstant* constant = source.GetConstant(); in Move() 1681 HConstant* constant = source.GetConstant(); in Move() 3180 DCHECK(in.GetConstant()->IsLongConstant()); in VisitTypeConversion() 3829 int64_t imm = Int64FromConstant(second.GetConstant()); in DivRemOneOrMinusOne() 3867 int64_t imm = Int64FromConstant(second.GetConstant()); in RemByPowerOfTwo() 3903 int64_t imm = Int64FromConstant(second.GetConstant()); in DivByPowerOfTwo() 4079 int64_t imm = Int64FromConstant(second.GetConstant()); in GenerateDivRemIntegral() 5338 DCHECK(obj.GetConstant()->IsNullConstant()); in GenerateExplicitNullCheck() [all …]
|
H A D | code_generator_x86.cc | 1385 HConstant* constant = source.GetConstant(); in Move32() 1449 HConstant* constant = source.GetConstant(); in Move64() 2994 DCHECK(in.GetConstant()->IsIntConstant()); in VisitTypeConversion() 3003 DCHECK(in.GetConstant()->IsLongConstant()); in VisitTypeConversion() 3024 DCHECK(in.GetConstant()->IsIntConstant()); in VisitTypeConversion() 3055 DCHECK(in.GetConstant()->IsIntConstant()); in VisitTypeConversion() 3087 DCHECK(in.GetConstant()->IsIntConstant()); in VisitTypeConversion() 5071 DCHECK(right.GetConstant()->IsLongConstant()); in VisitCompare() 6178 DCHECK(obj.GetConstant()->IsNullConstant()); in GenerateExplicitNullCheck() 6870 HConstant* constant = source.GetConstant(); in EmitMove() [all …]
|
H A 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() 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() 1326 new (allocator) HMul(type, graph->GetConstant(type, stride_value), opa); in GenerateCode() [all …]
|
H A D | loop_optimization.cc | 313 *b = graph->GetConstant(instruction->GetType(), (*c)); in IsAddConst2() 333 *b = graph->GetConstant(instruction->GetType(), -c); in IsSubConst2() 1079 ptc = graph_->GetConstant(induc_type, vector_static_peeling_factor_); in Vectorize() 1094 induc_type, offset, graph_->GetConstant(induc_type, align - 1u))); in Vectorize() 1096 induc_type, graph_->GetConstant(induc_type, align), rem)); in Vectorize() 1098 rem, graph_->GetConstant(induc_type, 0))); in Vectorize() 1100 cond, graph_->GetConstant(induc_type, 0), sub, kNoDexPc)); in Vectorize() 1128 vector_index_ = graph_->GetConstant(induc_type, 0); in Vectorize() 1138 HSelect(rt, vtc, graph_->GetConstant(induc_type, 0), kNoDexPc)); in Vectorize() 1157 graph_->GetConstant(induc_type, 1), in Vectorize() [all …]
|
H A D | intrinsics_x86_64.cc | 617 int32_t pos_const = pos.GetConstant()->AsIntConstant()->GetValue(); in CheckPosition() 623 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() 1707 Immediate(CodeGenerator::GetInt32ValueOf(value.GetConstant()))); in GenPoke() 1715 Immediate(CodeGenerator::GetInt32ValueOf(value.GetConstant()))); in GenPoke() [all …]
|
H A D | common_arm.h | 170 return Int32ConstantFrom(location.GetConstant()); in Int32ConstantFrom() 174 HConstant* instr = location.GetConstant(); in Int64ConstantFrom()
|
H A D | intrinsics_x86.cc | 122 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in EmitNativeCode() 145 int32_t constant = dest_pos.GetConstant()->AsIntConstant()->GetValue(); in EmitNativeCode() 824 int32_t pos_const = pos.GetConstant()->AsIntConstant()->GetValue(); in CheckPosition() 830 Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in CheckPosition() 869 __ cmpl(temp, Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in CheckPosition() 919 __ movl(count, Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in VisitSystemArrayCopyChar() 938 int32_t srcPos_const = srcPos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopyChar() 945 int32_t destPos_const = destPos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopyChar() 1577 int64_t value = value_loc.GetConstant()->AsLongConstant()->GetValue(); in GenPoke() 2565 int32_t constant = pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyBaseAddress() [all …]
|
H A D | nodes_x86.h | 58 HConstant* GetConstant() const { in GetConstant() function
|
H A D | code_generator.cc | 86 if (location.GetConstant()->IsIntConstant()) { in CheckType() 88 } else if (location.GetConstant()->IsNullConstant()) { in CheckType() 90 } else if (location.GetConstant()->IsLongConstant()) { in CheckType() 92 } else if (location.GetConstant()->IsFloatConstant()) { in CheckType() 95 return location.GetConstant()->IsDoubleConstant() in CheckType() 1401 DCHECK_EQ(current, location.GetConstant()); in EmitVRegInfo()
|
H A D | code_generator_vector_arm64_sve.cc | 152 __ Fdup(dst.VnS(), src_loc.GetConstant()->AsFloatConstant()->GetValue()); in VisitVecReplicateScalar() 159 __ Fdup(dst.VnD(), src_loc.GetConstant()->AsDoubleConstant()->GetValue()); in VisitVecReplicateScalar() 776 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShl() 809 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShr() 842 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecUShr()
|
H A D | instruction_simplifier_arm64.cc | 111 left = GetGraph()->GetConstant(right->GetType(), 0); in TryMergeIntoShifterOperand()
|
H A D | instruction_simplifier_shared.cc | 155 mul->GetBlock()->GetGraph()->GetConstant(type, 0), in TryCombineMultiplyAccumulate()
|
H A D | code_generator_vector_arm64_neon.cc | 153 __ Fmov(dst.V4S(), src_loc.GetConstant()->AsFloatConstant()->GetValue()); in VisitVecReplicateScalar() 161 __ Fmov(dst.V2D(), src_loc.GetConstant()->AsDoubleConstant()->GetValue()); in VisitVecReplicateScalar() 901 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShl() 935 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShr() 969 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecUShr()
|
H A 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()
|
H A D | intrinsics_arm64.cc | 2425 int32_t pos_const = pos.GetConstant()->AsIntConstant()->GetValue(); in CheckSystemArrayCopyPosition() 2481 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() 2489 int32_t constant = dst_pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() 2497 int32_t constant = copy_length.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() 2536 DCHECK_GE(length.GetConstant()->AsIntConstant()->GetValue(), 0); in VisitSystemArrayCopyChar() 2537 DCHECK_LE(length.GetConstant()->AsIntConstant()->GetValue(), 32); in VisitSystemArrayCopyChar() 2701 int32_t src_pos_constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopy() 2703 int32_t dest_pos_constant = dest_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopy() 2713 || (src_pos_constant >= dest_pos.GetConstant()->AsIntConstant()->GetValue())); in VisitSystemArrayCopy() 2986 if (length.IsConstant() && length.GetConstant()->AsIntConstant()->GetValue() == 0) { in VisitSystemArrayCopy() [all …]
|
H A D | common_arm64.h | 165 return Int64FromConstant(location.GetConstant()); in Int64FromLocation()
|
H A D | locations.h | 110 HConstant* GetConstant() const { in GetConstant() function
|
H A D | code_generator_vector_x86.cc | 1000 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShl() 1029 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShr() 1054 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecUShr()
|
/aosp12/art/runtime/ |
H A D | dex_register_location.h | 66 int32_t GetConstant() const { in GetConstant() function
|
H A D | stack.cc | 318 uint32_t result = dex_register_map[vreg].GetConstant(); in GetVRegFromOptimizedCode() 348 *val = location.GetConstant(); in GetVRegFromOptimizedCode()
|
/aosp12/art/tools/veridex/ |
H A D | flow_analysis.cc | 172 if (lhs.GetConstant() op rhs.GetConstant()) { \ in GetBranchFlags() 183 if (val.GetConstant() op 0) { /* NOLINT */ \ in GetBranchFlags()
|
H A D | flow_analysis.h | 68 uint32_t GetConstant() const { in GetConstant() function
|