/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() 244 instruction->ReplaceWith(GetGraph()->GetConstant(DataType::Type::kInt32, in VisitCompare() 316 instruction->ReplaceWith(GetGraph()->GetConstant(type, 0)); in VisitRem() 349 instruction->ReplaceWith(GetGraph()->GetConstant(type, 0)); in VisitSub() 366 instruction->ReplaceWith(GetGraph()->GetConstant(type, 0)); in VisitXor()
|
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 | 1448 HConstant* constant = source.GetConstant(); in Move() 1465 HConstant* constant = source.GetConstant(); in Move() 1486 HConstant* constant = source.GetConstant(); in Move() 1503 HConstant* constant = source.GetConstant(); in Move() 1626 right.GetConstant()->AsFloatConstant()->GetValue())); in GenerateCompareTest() 1640 right.GetConstant()->AsDoubleConstant()->GetValue())); in GenerateCompareTest() 1999 float value = rhs.GetConstant()->AsFloatConstant()->GetValue(); in HandleCondition() 2012 double value = rhs.GetConstant()->AsDoubleConstant()->GetValue(); in HandleCondition() 2173 float value = right.GetConstant()->AsFloatConstant()->GetValue(); in VisitCompare() 2187 double value = right.GetConstant()->AsDoubleConstant()->GetValue(); in VisitCompare() [all …]
|
D | code_generator_x86.cc | 1265 HConstant* constant = source.GetConstant(); in Move32() 1328 HConstant* constant = source.GetConstant(); in Move64() 1490 int64_t value = right.GetConstant()->AsLongConstant()->GetValue(); in GenerateLongComparesAndJumps() 1550 const_area->GetConstant()->AsDoubleConstant()->GetValue(), in GenerateFPCompare() 1564 const_area->GetConstant()->AsFloatConstant()->GetValue(), in GenerateFPCompare() 2637 DCHECK(in.GetConstant()->IsIntConstant()); in VisitTypeConversion() 2638 int32_t value = in.GetConstant()->AsIntConstant()->GetValue(); in VisitTypeConversion() 2646 DCHECK(in.GetConstant()->IsLongConstant()); in VisitTypeConversion() 2647 int64_t value = in.GetConstant()->AsLongConstant()->GetValue(); in VisitTypeConversion() 2667 DCHECK(in.GetConstant()->IsIntConstant()); in VisitTypeConversion() [all …]
|
D | induction_var_range.cc | 380 *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 …]
|
D | code_generator_mips64.cc | 1210 HConstant* src_cst = source.IsConstant() ? source.GetConstant() : nullptr; in MoveLocation() 1254 int32_t value = GetInt32ValueOf(source.GetConstant()->AsConstant()); in MoveLocation() 1261 int64_t value = GetInt64ValueOf(source.GetConstant()->AsConstant()); in MoveLocation() 1353 HConstant* src_cst = source.GetConstant(); in MoveLocation() 2013 rhs_imm = CodeGenerator::GetInt64ValueOf(rhs_location.GetConstant()); in HandleBinaryOp() 2180 rhs_imm = CodeGenerator::GetInt64ValueOf(rhs_location.GetConstant()); in HandleShift() 2335 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_1) + data_offset; in VisitArrayGet() 2348 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_1) + data_offset; in VisitArrayGet() 2367 int32_t const_index = index.GetConstant()->AsIntConstant()->GetValue(); in VisitArrayGet() 2413 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_2) + data_offset; in VisitArrayGet() [all …]
|
D | common_arm.h | 179 return Int32ConstantFrom(location.GetConstant()); in Int32ConstantFrom() 183 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 | 675 int32_t pos_const = pos.GetConstant()->AsIntConstant()->GetValue(); in CheckPosition() 681 Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in CheckPosition() 695 __ cmpl(temp, Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in CheckPosition() 720 __ cmpl(temp, Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in CheckPosition() 776 __ movl(count, Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in VisitSystemArrayCopyChar() 789 int32_t src_pos_const = src_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopyChar() 796 int32_t dest_pos_const = dest_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopyChar() 840 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() 847 int32_t constant = dst_pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() 854 int32_t constant = copy_length.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() [all …]
|
D | intrinsics_x86.cc | 125 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in EmitNativeCode() 148 int32_t constant = dest_pos.GetConstant()->AsIntConstant()->GetValue(); in EmitNativeCode() 867 int32_t pos_const = pos.GetConstant()->AsIntConstant()->GetValue(); in CheckPosition() 873 Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in CheckPosition() 887 __ cmpl(temp, Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in CheckPosition() 912 __ cmpl(temp, Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in CheckPosition() 962 __ movl(count, Immediate(length.GetConstant()->AsIntConstant()->GetValue())); in VisitSystemArrayCopyChar() 981 int32_t srcPos_const = srcPos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopyChar() 988 int32_t destPos_const = destPos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopyChar() 1444 srcBegin.IsConstant() ? srcBegin.GetConstant()->AsIntConstant()->GetValue() : 0; in VisitStringGetCharsNoCheck() [all …]
|
D | code_generator_mips.cc | 1424 MoveConstant(destination, source.GetConstant()); in MoveLocation() 2178 rhs_imm = CodeGenerator::GetInt32ValueOf(rhs_location.GetConstant()); in HandleBinaryOp() 2267 int64_t value = CodeGenerator::GetInt64ValueOf(rhs_location.GetConstant()->AsConstant()); in HandleBinaryOp() 2427 int64_t rhs_imm = use_imm ? CodeGenerator::GetInt64ValueOf(rhs_location.GetConstant()) : 0; in HandleShift() 2732 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_1) + data_offset; in VisitArrayGet() 2745 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_1) + data_offset; in VisitArrayGet() 2764 int32_t const_index = index.GetConstant()->AsIntConstant()->GetValue(); in VisitArrayGet() 2813 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_2) + data_offset; in VisitArrayGet() 2830 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_4) + data_offset; in VisitArrayGet() 2859 (index.GetConstant()->AsIntConstant()->GetValue() << TIMES_4) + data_offset; in VisitArrayGet() [all …]
|
D | nodes_x86.h | 58 HConstant* GetConstant() const { in GetConstant() function
|
D | instruction_simplifier_arm64.cc | 109 left = GetGraph()->GetConstant(right->GetType(), 0); in TryMergeIntoShifterOperand()
|
D | code_generator.cc | 91 if (location.GetConstant()->IsIntConstant()) { in CheckType() 93 } else if (location.GetConstant()->IsNullConstant()) { in CheckType() 95 } else if (location.GetConstant()->IsLongConstant()) { in CheckType() 97 } else if (location.GetConstant()->IsFloatConstant()) { in CheckType() 100 return location.GetConstant()->IsDoubleConstant() in CheckType() 1260 DCHECK_EQ(current, location.GetConstant()); in EmitEnvironment()
|
D | instruction_simplifier_shared.cc | 155 mul->GetBlock()->GetGraph()->GetConstant(type, 0), in TryCombineMultiplyAccumulate()
|
D | intrinsics_arm64.cc | 2094 int32_t pos_const = pos.GetConstant()->AsIntConstant()->GetValue(); in CheckSystemArrayCopyPosition() 2150 int32_t constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() 2158 int32_t constant = dst_pos.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() 2166 int32_t constant = copy_length.GetConstant()->AsIntConstant()->GetValue(); in GenSystemArrayCopyAddresses() 2205 DCHECK_GE(length.GetConstant()->AsIntConstant()->GetValue(), 0); in VisitSystemArrayCopyChar() 2206 DCHECK_LE(length.GetConstant()->AsIntConstant()->GetValue(), 32); in VisitSystemArrayCopyChar() 2370 int32_t src_pos_constant = src_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopy() 2372 int32_t dest_pos_constant = dest_pos.GetConstant()->AsIntConstant()->GetValue(); in VisitSystemArrayCopy() 2382 || (src_pos_constant >= dest_pos.GetConstant()->AsIntConstant()->GetValue())); in VisitSystemArrayCopy() 2655 if (length.IsConstant() && length.GetConstant()->AsIntConstant()->GetValue() == 0) { in VisitSystemArrayCopy() [all …]
|
D | code_generator_vector_arm64.cc | 124 __ 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()
|
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 | common_arm64.h | 155 return Int64FromConstant(location.GetConstant()); in Int64FromLocation()
|
D | code_generator_vector_mips64.cc | 844 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShl() 878 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShr() 912 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecUShr() 1329 offset += index.GetConstant()->AsIntConstant()->GetValue() << scale; in VecAddress()
|
D | code_generator_vector_mips.cc | 845 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShl() 879 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecShr() 913 int32_t value = locations->InAt(1).GetConstant()->AsIntConstant()->GetValue(); in VisitVecUShr() 1331 offset += index.GetConstant()->AsIntConstant()->GetValue() << scale; in VecAddress()
|
/art/runtime/ |
D | dex_register_location.h | 66 int32_t GetConstant() const { in GetConstant() function
|
/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()
|