/art/compiler/optimizing/ |
D | scheduler_arm.cc | 111 if (rhs->IsConstant()) { in VisitRor() 137 if (!rhs->IsConstant()) { in HandleShiftLatencies() 143 if (!rhs->IsConstant()) { in HandleShiftLatencies() 307 condition->InputAt(1)->IsConstant() in HandleGenerateTest() 323 if (right->IsConstant()) { in CanGenerateTest() 384 if (right->IsConstant()) { in HandleGenerateConditionLong() 442 if (right->IsConstant()) { in HandleGenerateConditionIntegralOrNonPrimitive() 647 if (index->IsConstant()) { in VisitArrayGet() 675 if (index->IsConstant()) { in VisitArrayGet() 689 if (index->IsConstant()) { in VisitArrayGet() [all …]
|
D | x86_memory_gen.cc | 47 if (array->IsConstant() || (array->IsNullCheck() && array->InputAt(0)->IsConstant())) { in VisitBoundsCheck()
|
D | locations.cc | 59 return instruction->IsConstant() in RegisterOrConstant() 87 return instruction->IsConstant() in ByteRegisterOrConstant() 93 return instruction->IsConstant() in FpuRegisterOrConstant()
|
D | constant_folding.cc | 126 if (check_input->IsConstant() && !check_input->AsConstant()->IsArithmeticZero()) { in VisitDivZeroCheck() 136 if (left->IsConstant() && left->AsConstant()->IsArithmeticZero()) { in VisitShift() 171 if (instruction->GetLeft()->IsConstant() && in VisitAbove() 183 if (instruction->GetRight()->IsConstant() && in VisitAboveOrEqual() 195 if (instruction->GetRight()->IsConstant() && in VisitBelow() 207 if (instruction->GetLeft()->IsConstant() && in VisitBelowOrEqual() 293 if (instruction->GetLeft()->IsConstant() && in VisitRem()
|
D | induction_var_range.cc | 372 IsConstant(trip->op_a, kExact, tc); in IsFinite() 389 if (IsConstant(info->op_a, kExact, &stride_value) && stride_value == 1) { in IsUnitStride() 391 if (IsConstant(info->op_b, kExact, &off_value)) { in IsUnitStride() 434 bool InductionVarRange::IsConstant(HInductionVarAnalysis::InductionInfo* info, in IsConstant() function in art::InductionVarRange 494 return (!HasFetchInLoop(lower) || range.IsConstant(lower, kAtLeast, ¬_used)) && in IsWellBehavedTripCount() 495 (!HasFetchInLoop(upper) || range.IsConstant(upper, kAtLeast, ¬_used)); in IsWellBehavedTripCount() 515 return IsConstant(info->op_a, kExact, stride_value); in NeedsTripCount() 559 if (IsConstant(info->op_a, kExact, &stride_value)) { in GetLinear() 605 if (IsConstant(info->op_a->op_a, kExact, &a) && CanLongValueFitIntoInt(a) && a >= 0 && in GetPolynomial() 606 IsConstant(info->op_a->op_b, kExact, &b) && CanLongValueFitIntoInt(b) && b >= 0) { in GetPolynomial() [all …]
|
D | instruction_simplifier_shared.cc | 54 if (input_binop->GetRight()->IsConstant() && in TrySimpleMultiplyAccumulatePatterns() 62 } else if (input_binop->GetLeft()->IsConstant() && in TrySimpleMultiplyAccumulatePatterns() 236 if (index->IsConstant() || in TryExtractArrayAccessAddress() 237 (index->IsBoundsCheck() && index->AsBoundsCheck()->GetIndex()->IsConstant())) { in TryExtractArrayAccessAddress() 285 if (index->IsConstant()) { in TryExtractVecArrayAccessAddress()
|
D | instruction_simplifier_mips.cc | 56 if (index->IsConstant() || in TryExtractArrayAccessIndex() 57 (index->IsBoundsCheck() && index->AsBoundsCheck()->GetIndex()->IsConstant())) { in TryExtractArrayAccessIndex()
|
D | instruction_simplifier_arm64.cc | 231 if (instruction->InputAt(1)->IsConstant()) { in VisitShl() 237 if (instruction->InputAt(1)->IsConstant()) { in VisitShr() 257 if (instruction->InputAt(1)->IsConstant()) { in VisitUShr()
|
D | instruction_simplifier_arm.cc | 255 if (instruction->InputAt(1)->IsConstant()) { in VisitShl() 261 if (instruction->InputAt(1)->IsConstant()) { in VisitShr() 281 if (instruction->InputAt(1)->IsConstant()) { in VisitUShr()
|
D | scheduler_arm64.cc | 93 if (instr->GetRight()->IsConstant()) { in VisitDiv() 161 if (instruction->GetRight()->IsConstant()) { in VisitRem() 323 if (!index->IsConstant()) { in HandleVecAddress()
|
D | parallel_move_resolver.cc | 46 if (move.IsEliminated() || move.GetSource().IsConstant()) { in EmitNativeCode() 61 if (!move.IsEliminated() && !move.GetSource().IsConstant()) { in EmitNativeCode() 70 DCHECK(move->GetSource().IsConstant()); in EmitNativeCode() 318 if (!move.IsEliminated() && !move.GetSource().IsConstant()) { in EmitNativeCode()
|
D | code_generator_mips64.cc | 1202 HConstant* src_cst = source.IsConstant() ? source.GetConstant() : nullptr; in MoveLocation() 1239 } else if (source.IsConstant()) { in MoveLocation() 1343 } else if (source.IsConstant()) { in MoveLocation() 1379 DCHECK(!loc1.IsConstant()); in SwapLocations() 1380 DCHECK(!loc2.IsConstant()); in SwapLocations() 1834 if (right->IsConstant()) { in HandleBinaryOp() 1886 bool use_imm = rhs_location.IsConstant(); in HandleBinaryOp() 2053 bool use_imm = rhs_location.IsConstant(); in HandleShift() 2176 bool temp_needed = instruction->GetIndex()->IsConstant() in VisitArrayGet() 2208 if (index.IsConstant()) { in VisitArrayGet() [all …]
|
D | bounds_check_elimination.cc | 146 bool IsConstant() const { in IsConstant() function in art::ValueBound 217 return bound1.IsConstant() ? bound1 : bound2; in NarrowLowerBound() 253 if (IsConstant() || (IsRelatedToArrayLength() && new_constant <= 0)) { in Add() 268 if (IsConstant() || IsRelatedToArrayLength()) { in Add() 305 bool IsConstantValueRange() const { return lower_.IsConstant() && upper_.IsConstant(); } in IsConstantValueRange() 414 if (!lower.IsConstant() || lower.GetConstant() == std::numeric_limits<int32_t>::min()) { in Narrow() 429 if (upper_bound.IsConstant()) { in Narrow() 464 if ((!upper.IsConstant() || upper.GetConstant() == std::numeric_limits<int32_t>::max()) && in Narrow() 472 if (range->GetLower().IsConstant()) { in Narrow() 642 left_range->GetBound().IsConstant() && in HandleIfBetweenTwoMonotonicValueRanges() [all …]
|
D | intrinsics_x86_64.cc | 972 if (pos.IsConstant()) { in CheckPosition() 977 if (length.IsConstant()) { in CheckPosition() 992 if (length.IsConstant()) { in CheckPosition() 1017 if (length.IsConstant()) { in CheckPosition() 1061 if (!length.IsConstant()) { in VisitSystemArrayCopyChar() 1073 if (length.IsConstant()) { in VisitSystemArrayCopyChar() 1086 if (src_pos.IsConstant()) { in VisitSystemArrayCopyChar() 1093 if (dest_pos.IsConstant()) { in VisitSystemArrayCopyChar() 1137 if (src_pos.IsConstant()) { in GenSystemArrayCopyAddresses() 1144 if (dst_pos.IsConstant()) { in GenSystemArrayCopyAddresses() [all …]
|
D | code_generator_x86_64.cc | 1370 } else if (source.IsConstant()) { in Move() 1387 } else if (source.IsConstant()) { in Move() 1408 } else if (source.IsConstant()) { in Move() 1425 } else if (source.IsConstant()) { in Move() 1546 } else if (right.IsConstant()) { in GenerateCompareTest() 1560 } else if (right.IsConstant()) { in GenerateCompareTest() 1783 if (select->InputAt(1)->IsConstant()) { in VisitSelect() 1921 if (rhs.IsConstant()) { in HandleCondition() 1934 if (rhs.IsConstant()) { in HandleCondition() 2095 if (right.IsConstant()) { in VisitCompare() [all …]
|
D | code_generator_mips.cc | 1087 DCHECK(!loc1.IsConstant()); in EmitSwap() 1088 DCHECK(!loc2.IsConstant()); in EmitSwap() 1415 if (source.IsConstant()) { in MoveLocation() 1990 if (right->IsConstant()) { in HandleBinaryOp() 2053 bool use_imm = rhs_location.IsConstant(); in HandleBinaryOp() 2111 bool use_imm = rhs_location.IsConstant(); in HandleBinaryOp() 2302 bool use_imm = rhs_location.IsConstant(); in HandleShift() 2575 bool temp_needed = instruction->GetIndex()->IsConstant() in VisitArrayGet() 2607 if (index.IsConstant()) { in VisitArrayGet() 2620 if (index.IsConstant()) { in VisitArrayGet() [all …]
|
D | common_arm64.h | 146 if (input->IsConstant() && input->AsConstant()->IsZeroBitPattern()) { in InputCPURegisterOrZeroRegAt() 287 if (constant->IsConstant() in ARM64EncodableConstantOrRegister() 356 return instruction->IsConstant() && instruction->AsConstant()->IsZeroBitPattern(); in IsConstantZeroBitPattern()
|
D | intrinsics_x86.cc | 129 if (src_pos.IsConstant()) { in EmitNativeCode() 152 if (dest_pos.IsConstant()) { in EmitNativeCode() 1192 if (pos.IsConstant()) { in CheckPosition() 1197 if (length.IsConstant()) { in CheckPosition() 1212 if (length.IsConstant()) { in CheckPosition() 1237 if (length.IsConstant()) { in CheckPosition() 1281 if (!length.IsConstant()) { in VisitSystemArrayCopyChar() 1287 if (length.IsConstant()) { in VisitSystemArrayCopyChar() 1306 if (srcPos.IsConstant()) { in VisitSystemArrayCopyChar() 1313 if (destPos.IsConstant()) { in VisitSystemArrayCopyChar() [all …]
|
D | instruction_simplifier.cc | 348 if (shift_amount->IsConstant()) { in VisitShift() 411 sub->GetLeft()->IsConstant() && in IsSubRegBitsMinusOther() 450 if (ushr->GetRight()->IsConstant() && shl->GetRight()->IsConstant()) { in TryReplaceWithRotate() 1373 if ((input_other->IsUShr() || input_other->IsShr()) && input_other->InputAt(1)->IsConstant()) { in VisitAnd() 1538 if (condition->GetLeft()->IsConstant() && !condition->GetRight()->IsConstant()) { in VisitCondition() 1564 if (!left->IsCompare() || !right->IsConstant() || right->AsIntConstant()->GetValue() != 0) { in VisitCondition() 1921 if (left->IsConstant()) { in VisitSub() 2523 if (cond->IsConstant()) { in VisitDeoptimize() 2556 if (instruction->InstructionTypeEquals(left) && right->IsConstant()) { in TryHandleAssociativeAndCommutativeOperation() 2559 } else if (left->IsConstant() && instruction->InstructionTypeEquals(right)) { in TryHandleAssociativeAndCommutativeOperation() [all …]
|
D | code_generator_arm_vixl.cc | 1737 if (rhs_loc.IsConstant()) { in GenerateVcmp() 1814 DCHECK(right.IsConstant()); in GenerateLongTestConstant() 2001 ret = condition->GetLocations()->InAt(1).IsConstant() in GenerateTest() 2058 if (right.IsConstant()) { in GenerateEqualLong() 2110 if (right.IsConstant()) { in GenerateConditionLong() 2182 if (right.IsConstant()) { in GenerateConditionIntegralOrNonPrimitive() 2225 if (right.IsConstant()) { in GenerateConditionIntegralOrNonPrimitive() 2276 if (constant->IsConstant() && CanEncodeConstantAs8BitImmediate(constant->AsConstant())) { in Arm8BitEncodableConstantOrRegister() 2294 if (src.IsConstant()) { in CanGenerateConditionalMove() 3066 if (!locations->InAt(1).IsConstant()) { in VisitSelect() [all …]
|
D | locations.h | 101 bool IsConstant() const { in IsConstant() function 111 DCHECK(IsConstant()); in GetConstant() 297 return IsConstant() ? kConstant : KindField::Decode(value_); in GetKind()
|
D | code_generator_x86.cc | 1248 } else if (source.IsConstant()) { in Move32() 1311 } else if (source.IsConstant()) { in Move64() 1338 if (dst_type == DataType::Type::kInt64 && !src.IsConstant() && !src.IsFpuRegister()) { in MoveLocation() 1473 if (right.IsConstant()) { in GenerateLongComparesAndJumps() 1770 if (select->InputAt(1)->IsConstant()) { in VisitSelect() 1886 } else if (cond->InputAt(1)->IsConstant()) { in HandleCondition() 2454 Location input_location = input->IsConstant() in VisitTypeConversion() 2735 DCHECK(in.IsConstant()); in VisitTypeConversion() 2955 } else if (add->InputAt(1)->IsConstant()) { in VisitAdd() 2987 } else if (second.IsConstant()) { in VisitAdd() [all …]
|
/art/tools/veridex/ |
D | flow_analysis.h | 68 CHECK(IsConstant()); in GetConstant() 74 bool IsConstant() const { return source_ == RegisterSource::kConstant; } in IsConstant() function
|
/art/runtime/verifier/ |
D | reg_type.h | 85 bool IsConstant() const { in IsConstant() function 141 return IsChar() || IsInteger() || IsFloat() || IsConstant() || IsByte() || in IsCategory1Types() 158 return IsInteger() || IsConstant() || IsByte() || IsShort() || IsChar() || in IsIntegralTypes() 165 bool IsFloatTypes() const { return IsFloat() || IsConstant(); } in IsFloatTypes() 749 return IsConstant() && ConstantValue() >= 0 && in IsConstantChar() 753 return IsConstant() && in IsConstantByte() 758 return IsConstant() && in IsConstantShort()
|
D | reg_type.cc | 608 } else if (IsConstant() && incoming_type.IsConstant()) { in Merge() 695 DCHECK(!IsConstant() || !incoming_type.IsConstant()); in Merge() 823 if (IsConstant() || IsConstantLo() || IsConstantHi()) { in CheckInvariants()
|