Home
last modified time | relevance | path

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

/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 …]
Dinduction_var_range.cc380 *offset = graph->GetConstant(info->op_b->type, off_value); in IsUnitStride()
408 HInstruction* zero = graph->GetConstant(trip->type, 0); in GenerateTripCount()
1063 Insert(block, new (graph->GetAllocator()) HAdd(type, graph->GetConstant(type, sum), c)); in GenerateLastValuePolynomial()
1104 *result = graph->GetConstant(type, 0); in GenerateLastValueGeometric()
1110 e = new (allocator) HMul(type, opa, graph->GetConstant(type, fpow)); in GenerateLastValueGeometric()
1112 e = new (allocator) HDiv(type, opa, graph->GetConstant(type, fpow), kNoDexPc); in GenerateLastValueGeometric()
1197 Insert(block, new (allocator) HAnd(type, t, graph->GetConstant(type, 1))); in GenerateLastValuePeriodic()
1199 Insert(block, new (allocator) HEqual(msk, graph->GetConstant(type, 0), kNoDexPc)); in GenerateLastValuePeriodic()
1307 *result = graph->GetConstant(type, 0); in GenerateCode()
1315 Insert(block, new (allocator) HSub(type, opb, graph->GetConstant(type, 1))); in GenerateCode()
[all …]
Dloop_optimization.cc311 *b = graph->GetConstant(instruction->GetType(), (*c)); in IsAddConst2()
331 *b = graph->GetConstant(instruction->GetType(), -c); in IsSubConst2()
1080 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()
1124 graph_->GetConstant(induc_type, chunk - 1))); in Vectorize()
1127 vector_index_ = graph_->GetConstant(induc_type, 0); in Vectorize()
[all …]
Dcommon_arm.h170 return Int32ConstantFrom(location.GetConstant()); in Int32ConstantFrom()
174 HConstant* instr = location.GetConstant(); in Int64ConstantFrom()
Dnodes_x86.h58 HConstant* GetConstant() const { in GetConstant() function
Dinstruction_simplifier_arm64.cc109 left = GetGraph()->GetConstant(right->GetType(), 0); in TryMergeIntoShifterOperand()
Dcode_generator.cc84 if (location.GetConstant()->IsIntConstant()) { in CheckType()
86 } else if (location.GetConstant()->IsNullConstant()) { in CheckType()
88 } else if (location.GetConstant()->IsLongConstant()) { in CheckType()
90 } else if (location.GetConstant()->IsFloatConstant()) { in CheckType()
93 return location.GetConstant()->IsDoubleConstant() in CheckType()
1328 DCHECK_EQ(current, location.GetConstant()); in EmitVRegInfo()
Dinstruction_simplifier_shared.cc155 mul->GetBlock()->GetGraph()->GetConstant(type, 0), in TryCombineMultiplyAccumulate()
Dcode_generator_vector_arm64.cc124 __ Fmov(dst.V4S(), src_loc.GetConstant()->AsFloatConstant()->GetValue()); in VisitVecReplicateScalar()
132 __ Fmov(dst.V2D(), src_loc.GetConstant()->AsDoubleConstant()->GetValue()); in VisitVecReplicateScalar()
872 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShl()
906 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShr()
940 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecUShr()
Dcommon_arm64.h160 return Int64FromConstant(location.GetConstant()); in Int64FromLocation()
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()
Dlocations.h110 HConstant* GetConstant() const { in GetConstant() function
Dcode_generator_vector_x86_64.cc983 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShl()
1012 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShr()
1037 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecUShr()
Dcode_generator_vector_x86.cc1000 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()
Dgraph_visualizer.cc294 HConstant* constant = location.GetConstant(); in DumpLocation()
Dinstruction_simplifier.cc1389 HConstant* new_const = GetGraph()->GetConstant(DataType::Type::kInt32, value); in VisitAnd()
2978 HConstant* const3 = block->GetGraph()->GetConstant(type, const3_val); in TrySubtractionChainSimplification()
Dnodes.cc702 HConstant* HGraph::GetConstant(DataType::Type type, int64_t value, uint32_t dex_pc) { in GetConstant() function in art::HGraph
/art/runtime/
Ddex_register_location.h66 int32_t GetConstant() const { in GetConstant() function
Dstack.cc323 uint32_t result = dex_register_map[vreg].GetConstant(); in GetVRegFromOptimizedCode()
355 *val = location.GetConstant(); in GetVRegFromOptimizedCode()
Dquick_exception_handler.cc510 value = vreg_map[vreg].GetConstant(); in HandleOptimizingDeoptimization()
/art/tools/veridex/
Dflow_analysis.h68 uint32_t GetConstant() const { in GetConstant() function
Dflow_analysis.cc154 if (lhs.GetConstant() op rhs.GetConstant()) { \ in GetBranchFlags()
165 if (val.GetConstant() op 0) { /* NOLINT */ \ in GetBranchFlags()