Home
last modified time | relevance | path

Searched refs:GetConstant (Results 1 – 25 of 34) sorted by relevance

12

/art/compiler/optimizing/
Dconstant_folding.cc154 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 …]
Dbounds_check_elimination.cc137 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 …]
Dstack_map_test.cc92 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 …]
Dcode_generator_x86_64.cc1626 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()
1800 right.GetConstant()->AsFloatConstant()->GetValue())); in GenerateCompareTest()
1814 right.GetConstant()->AsDoubleConstant()->GetValue())); in GenerateCompareTest()
2183 float value = rhs.GetConstant()->AsFloatConstant()->GetValue(); in HandleCondition()
2196 double value = rhs.GetConstant()->AsDoubleConstant()->GetValue(); in HandleCondition()
2357 float value = right.GetConstant()->AsFloatConstant()->GetValue(); in VisitCompare()
2371 double value = right.GetConstant()->AsDoubleConstant()->GetValue(); in VisitCompare()
[all …]
Dcode_generator_x86.cc1363 int32_t value = GetInt32ValueOf(source.GetConstant()); in Move32()
1385 HConstant* constant = source.GetConstant(); in Move32()
1449 HConstant* constant = source.GetConstant(); in Move64()
1544 __ movb(dst, Immediate(CodeGenerator::GetInt8ValueOf(src.GetConstant()))); in MoveToMemory()
1553 __ movw(dst, Immediate(CodeGenerator::GetInt16ValueOf(src.GetConstant()))); in MoveToMemory()
1562 int32_t v = CodeGenerator::GetInt32ValueOf(src.GetConstant()); in MoveToMemory()
1573 int64_t v = CodeGenerator::GetInt64ValueOf(src.GetConstant()); in MoveToMemory()
1584 int32_t v = CodeGenerator::GetInt32ValueOf(src.GetConstant()); in MoveToMemory()
1594 int64_t v = CodeGenerator::GetInt64ValueOf(src.GetConstant()); in MoveToMemory()
1746 int64_t value = right.GetConstant()->AsLongConstant()->GetValue(); in GenerateLongComparesAndJumps()
[all …]
Dinduction_var_range.cc358 *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 …]
Dcommon_arm.h170 return Int32ConstantFrom(location.GetConstant()); in Int32ConstantFrom()
174 HConstant* instr = location.GetConstant(); in Int64ConstantFrom()
Dloop_optimization.cc313 *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()
1090 HInstruction* adjusted_offset = graph_->GetConstant(induc_type, hidden_offset >> shift); 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()
1125 graph_->GetConstant(induc_type, chunk - 1))); in Vectorize()
1128 vector_index_ = graph_->GetConstant(induc_type, 0); in Vectorize()
[all …]
Dintrinsics_x86_64.cc617 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 …]
Dnodes_x86.h58 HConstant* GetConstant() const { in GetConstant() function
Dintrinsics_x86.cc122 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()
844 __ cmpl(temp, 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()
1401 srcBegin.IsConstant() ? srcBegin.GetConstant()->AsIntConstant()->GetValue() : 0; in VisitStringGetCharsNoCheck()
[all …]
Dinstruction_simplifier_arm64.cc111 left = GetGraph()->GetConstant(right->GetType(), 0); in TryMergeIntoShifterOperand()
Dcode_generator.cc86 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()
Dinstruction_simplifier_shared.cc155 mul->GetBlock()->GetGraph()->GetConstant(type, 0), in TryCombineMultiplyAccumulate()
Dcode_generator_vector_arm64_sve.cc152 __ 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()
Dcode_generator_vector_arm64_neon.cc153 __ 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()
Dcode_generator_vector_arm_vixl.cc660 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()
Dcommon_arm64.h165 return Int64FromConstant(location.GetConstant()); in Int64FromLocation()
Dlocations.h110 HConstant* GetConstant() const { in GetConstant() function
Dintrinsics_arm64.cc2425 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 …]
/art/runtime/
Ddex_register_location.h66 int32_t GetConstant() const { in GetConstant() function
Dstack.cc318 uint32_t result = dex_register_map[vreg].GetConstant(); in GetVRegFromOptimizedCode()
348 *val = location.GetConstant(); in GetVRegFromOptimizedCode()
Dquick_exception_handler.cc517 value = vreg_map[vreg].GetConstant(); in HandleOptimizingDeoptimization()
/art/tools/veridex/
Dflow_analysis.h68 uint32_t GetConstant() const { in GetConstant() function
Dflow_analysis.cc172 if (lhs.GetConstant() op rhs.GetConstant()) { \ in GetBranchFlags()
183 if (val.GetConstant() op 0) { /* NOLINT */ \ in GetBranchFlags()

12