/art/compiler/optimizing/ |
D | instruction_simplifier_arm64.cc | 43 if (index->IsConstant() || in TryExtractArrayAccessAddress() 44 (index->IsBoundsCheck() && index->AsBoundsCheck()->GetIndex()->IsConstant())) { in TryExtractArrayAccessAddress() 218 if (instruction->InputAt(1)->IsConstant()) { in VisitShl() 224 if (instruction->InputAt(1)->IsConstant()) { in VisitShr() 244 if (instruction->InputAt(1)->IsConstant()) { in VisitUShr()
|
D | constant_folding.cc | 123 if (check_input->IsConstant() && !check_input->AsConstant()->IsArithmeticZero()) { in VisitDivZeroCheck() 133 if (left->IsConstant() && left->AsConstant()->IsArithmeticZero()) { in VisitShift() 144 if (instruction->GetLeft()->IsConstant() && in VisitAbove() 156 if (instruction->GetRight()->IsConstant() && in VisitAboveOrEqual() 168 if (instruction->GetRight()->IsConstant() && in VisitBelow() 180 if (instruction->GetLeft()->IsConstant() && in VisitBelowOrEqual() 266 if (instruction->GetLeft()->IsConstant() && in VisitRem()
|
D | locations.cc | 46 return instruction->IsConstant() in RegisterOrConstant() 74 return instruction->IsConstant() in ByteRegisterOrConstant() 80 return instruction->IsConstant() in FpuRegisterOrConstant()
|
D | code_generator_x86_64.cc | 1135 } else if (source.IsConstant()) { in Move() 1152 } else if (source.IsConstant()) { in Move() 1173 } else if (source.IsConstant()) { in Move() 1190 } else if (source.IsConstant()) { in Move() 1298 if (right.IsConstant()) { in GenerateCompareTest() 1314 if (right.IsConstant()) { in GenerateCompareTest() 1327 } else if (right.IsConstant()) { in GenerateCompareTest() 1341 } else if (right.IsConstant()) { in GenerateCompareTest() 1478 } else if (rhs.IsConstant()) { in GenerateTestAndBranch() 1557 if (select->InputAt(1)->IsConstant()) { in VisitSelect() [all …]
|
D | intrinsics_x86_64.cc | 987 if (pos.IsConstant()) { in CheckPosition() 992 if (length.IsConstant()) { in CheckPosition() 1008 if (length.IsConstant()) { in CheckPosition() 1033 if (length.IsConstant()) { in CheckPosition() 1077 if (!length.IsConstant()) { in VisitSystemArrayCopyChar() 1089 if (length.IsConstant()) { in VisitSystemArrayCopyChar() 1102 if (src_pos.IsConstant()) { in VisitSystemArrayCopyChar() 1109 if (dest_pos.IsConstant()) { in VisitSystemArrayCopyChar() 1157 (!src_pos.IsConstant() || !dest_pos.IsConstant())) { in VisitSystemArrayCopy() 1162 if (src_pos.IsConstant()) { in VisitSystemArrayCopy() [all …]
|
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 | instruction_simplifier_shared.cc | 52 if (input_binop->GetRight()->IsConstant() && in TrySimpleMultiplyAccumulatePatterns() 60 } else if (input_binop->GetLeft()->IsConstant() && in TrySimpleMultiplyAccumulatePatterns()
|
D | bounds_check_elimination.cc | 145 bool IsConstant() const { in IsConstant() function in art::ValueBound 231 return bound1.IsConstant() ? bound1 : bound2; in NarrowLowerBound() 267 if (IsConstant() || (IsRelatedToArrayLength() && new_constant <= 0)) { in Add() 282 if (IsConstant() || IsRelatedToArrayLength()) { in Add() 319 bool IsConstantValueRange() { return lower_.IsConstant() && upper_.IsConstant(); } in IsConstantValueRange() 428 if (!lower.IsConstant() || lower.GetConstant() == std::numeric_limits<int32_t>::min()) { in Narrow() 443 if (upper_bound.IsConstant()) { in Narrow() 478 if ((!upper.IsConstant() || upper.GetConstant() == std::numeric_limits<int32_t>::max()) && in Narrow() 486 if (range->GetLower().IsConstant()) { in Narrow() 654 left_range->GetBound().IsConstant() && in HandleIfBetweenTwoMonotonicValueRanges() [all …]
|
D | code_generator_x86.cc | 1011 } else if (source.IsConstant()) { in Move32() 1074 } else if (source.IsConstant()) { in Move64() 1105 if (dst_type == Primitive::kPrimLong && !src.IsConstant() && !src.IsFpuRegister()) { in MoveLocation() 1231 if (right.IsConstant()) { in GenerateLongComparesAndJumps() 1436 } else if (rhs.IsConstant()) { in GenerateTestAndBranch() 1518 if (select->InputAt(1)->IsConstant()) { in VisitSelect() 1536 if (rhs.IsConstant()) { in GenerateIntCompare() 1646 } else if (cond->InputAt(1)->IsConstant()) { in HandleCondition() 2182 Location input_location = input->IsConstant() in VisitTypeConversion() 2463 DCHECK(in.IsConstant()); in VisitTypeConversion() [all …]
|
D | locations.h | 94 bool IsConstant() const { in IsConstant() function 104 DCHECK(IsConstant()); in GetConstant() 278 return IsConstant() ? kConstant : KindField::Decode(value_); in GetKind()
|
D | code_generator_mips64.cc | 646 HConstant* src_cst = source.IsConstant() ? source.GetConstant() : nullptr; in MoveLocation() 678 } else if (source.IsConstant()) { in MoveLocation() 759 } else if (source.IsConstant()) { in MoveLocation() 795 DCHECK(!loc1.IsConstant()); in SwapLocations() 796 DCHECK(!loc2.IsConstant()); in SwapLocations() 1028 if (right->IsConstant()) { in HandleBinaryOp() 1072 bool use_imm = rhs_location.IsConstant(); in HandleBinaryOp() 1179 bool use_imm = rhs_location.IsConstant(); in HandleShift() 1296 if (index.IsConstant()) { in VisitArrayGet() 1310 if (index.IsConstant()) { in VisitArrayGet() [all …]
|
D | code_generator_arm.cc | 1310 if (right.IsConstant()) { in GenerateLongComparesAndJumps() 1448 DCHECK(right.IsConstant()); in GenerateTestAndBranch() 1584 DCHECK(right.IsConstant()); in HandleCondition() 2265 DCHECK(in.IsConstant()); in VisitTypeConversion() 2701 DCHECK(second.IsConstant()); in DivRemOneOrMinusOne() 2725 DCHECK(second.IsConstant()); in DivRemByPowerOfTwo() 2759 DCHECK(second.IsConstant()); in GenerateDivRemWithAnyConstant() 2800 DCHECK(second.IsConstant()); in GenerateDivRemConstantIntegral() 2820 } else if (div->GetResultType() == Primitive::kPrimInt && div->InputAt(1)->IsConstant()) { in VisitDiv() 2832 if (div->InputAt(1)->IsConstant()) { in VisitDiv() [all …]
|
D | instruction_simplifier.cc | 258 sub->GetLeft()->IsConstant() && in IsSubRegBitsMinusOther() 295 if (ushr->GetRight()->IsConstant() && shl->GetRight()->IsConstant()) { in TryReplaceWithRotate() 965 if ((input_other->IsUShr() || input_other->IsShr()) && input_other->InputAt(1)->IsConstant()) { in VisitAnd() 1042 if (condition->GetLeft()->IsConstant() && !condition->GetRight()->IsConstant()) { in VisitCondition() 1067 if (!left->IsCompare() || !right->IsConstant() || right->AsIntConstant()->GetValue() != 0) { in VisitCondition() 1392 if (left->IsConstant()) { in VisitSub() 1738 if (cond->IsConstant()) { in VisitDeoptimize()
|
D | intrinsics_arm.cc | 1320 if (pos.IsConstant()) { in CheckPosition() 1326 if (length.IsConstant()) { in CheckPosition() 1340 if (length.IsConstant()) { in CheckPosition() 1363 if (length.IsConstant()) { in CheckPosition() 1401 (!src_pos.IsConstant() || !dest_pos.IsConstant())) { in VisitSystemArrayCopy() 1406 if (src_pos.IsConstant()) { in VisitSystemArrayCopy() 1408 if (dest_pos.IsConstant()) { in VisitSystemArrayCopy() 1423 if (dest_pos.IsConstant()) { in VisitSystemArrayCopy() 1446 if (!length.IsConstant() && in VisitSystemArrayCopy() 1550 if (src_pos.IsConstant()) { in VisitSystemArrayCopy() [all …]
|
D | induction_var_range.h | 133 bool IsConstant(HInductionVarAnalysis::InductionInfo* info,
|
D | intrinsics_x86.cc | 1135 if (pos.IsConstant()) { in CheckPosition() 1205 if (!length.IsConstant()) { in VisitSystemArrayCopyChar() 1211 if (length.IsConstant()) { in VisitSystemArrayCopyChar() 1230 if (srcPos.IsConstant()) { in VisitSystemArrayCopyChar() 1237 if (destPos.IsConstant()) { in VisitSystemArrayCopyChar() 1636 srcBegin.IsConstant() ? srcBegin.GetConstant()->AsIntConstant()->GetValue() : 0; in VisitStringGetCharsNoCheck() 1649 if (srcBegin.IsConstant()) { in VisitStringGetCharsNoCheck() 1664 if (srcBegin.IsConstant()) { in VisitStringGetCharsNoCheck() 1759 if (value_loc.IsConstant()) { in GenPoke() 1767 if (value_loc.IsConstant()) { in GenPoke() [all …]
|
D | code_generator_mips.cc | 531 DCHECK(!loc1.IsConstant()); in EmitSwap() 532 DCHECK(!loc2.IsConstant()); in EmitSwap() 812 if (src.IsConstant()) { in MoveLocation() 1145 if (right->IsConstant()) { in HandleBinaryOp() 1196 bool use_imm = rhs_location.IsConstant(); in HandleBinaryOp() 1239 bool use_imm = rhs_location.IsConstant(); in HandleBinaryOp() 1430 bool use_imm = rhs_location.IsConstant(); in HandleShift() 1674 if (index.IsConstant()) { in VisitArrayGet() 1688 if (index.IsConstant()) { in VisitArrayGet() 1702 if (index.IsConstant()) { in VisitArrayGet() [all …]
|
D | intrinsics_arm64.cc | 1773 if (pos.IsConstant()) { in CheckSystemArrayCopyPosition() 1827 if (src_pos.IsConstant()) { in GenSystemArrayCopyAddresses() 1835 if (dst_pos.IsConstant()) { in GenSystemArrayCopyAddresses() 1843 if (copy_length.IsConstant()) { in GenSystemArrayCopyAddresses() 1874 if (!length.IsConstant()) { in VisitSystemArrayCopyChar() 2021 (!src_pos.IsConstant() || !dest_pos.IsConstant())) { in VisitSystemArrayCopy() 2026 if (src_pos.IsConstant()) { in VisitSystemArrayCopy() 2028 if (dest_pos.IsConstant()) { in VisitSystemArrayCopy() 2061 if (!length.IsConstant() && in VisitSystemArrayCopy()
|
D | ssa_phi_elimination.cc | 213 if (irreducible_loop_phi_in_cycle && !candidate->IsConstant()) { in Run()
|
D | code_generator_arm64.cc | 1173 DCHECK(constant.IsConstant()); in CoherentConstantAndType() 1198 HConstant* src_cst = source.IsConstant() ? source.GetConstant() : nullptr; in MoveLocation() 1219 } else if (source.IsConstant()) { in MoveLocation() 1257 } else if (source.IsConstant()) { in MoveLocation() 1977 accumulator->IsConstant() && in VisitMultiplyAccumulate() 2017 if (accum_instr->IsConstant() && accum_instr->AsConstant()->IsArithmeticZero()) { in VisitMultiplyAccumulate() 2074 if (index.IsConstant()) { in VisitArrayGet() 2105 if (index.IsConstant()) { in VisitArrayGet() 2165 if (index.IsConstant()) { in VisitArraySet() 2203 if (index.IsConstant()) { in VisitArraySet() [all …]
|
D | register_allocator.cc | 391 DCHECK(output.IsUnallocated() || output.IsConstant()); in ProcessInstruction() 399 if (current->HasSpillSlot() || instruction->IsConstant()) { in ProcessInstruction() 1317 if (defined_by->IsConstant()) { in AllocateSpillSlotFor() 1415 && !source.IsConstant()) { in AddMove() 1641 } else if (!expected_location.IsConstant()) { in ConnectSiblings() 1744 (instruction->IsConstant() || instruction->IsCurrentMethod()); in IsMaterializableEntryBlockInstructionOfGraphWithIrreducibleLoop() 1795 if (defined_by->IsConstant()) { in ConnectSplitSiblings()
|
D | induction_var_range_test.cc | 222 return range_.IsConstant(info, InductionVarRange::kExact, value); in IsExact() 226 return range_.IsConstant(info, InductionVarRange::kAtMost, value); in IsAtMost() 230 return range_.IsConstant(info, InductionVarRange::kAtLeast, value); in IsAtLeast() 261 TEST_F(InductionVarRangeTest, IsConstant) { in TEST_F() argument
|
/art/runtime/verifier/ |
D | reg_type.h | 82 bool IsConstant() const { in IsConstant() function 134 return IsChar() || IsInteger() || IsFloat() || IsConstant() || IsByte() || in IsCategory1Types() 151 return IsInteger() || IsConstant() || IsByte() || IsShort() || IsChar() || in IsIntegralTypes() 158 bool IsFloatTypes() const { return IsFloat() || IsConstant(); } in IsFloatTypes() 603 return IsConstant() && ConstantValue() >= 0 && in IsConstantChar() 607 return IsConstant() && in IsConstantByte() 612 return IsConstant() && in IsConstantShort()
|
D | reg_type.cc | 594 } else if (IsConstant() && incoming_type.IsConstant()) { in Merge() 681 DCHECK(!IsConstant() || !incoming_type.IsConstant()); in Merge() 770 if (IsConstant() || IsConstantLo() || IsConstantHi()) { in CheckInvariants()
|
D | reg_type-inl.h | 57 if (!IsConstant()) { in IsConstantBoolean()
|