Lines Matching refs:replacement
961 void HBasicBlock::ReplaceAndRemovePhiWith(HPhi* initial, HPhi* replacement) { in ReplaceAndRemovePhiWith() argument
963 InsertPhiAfter(replacement, initial); in ReplaceAndRemovePhiWith()
964 initial->ReplaceWith(replacement); in ReplaceAndRemovePhiWith()
969 HInstruction* replacement) { in ReplaceAndRemoveInstructionWith() argument
973 DCHECK(replacement->IsControlFlow()); in ReplaceAndRemoveInstructionWith()
974 DCHECK_EQ(replacement->GetId(), -1); in ReplaceAndRemoveInstructionWith()
975 DCHECK_EQ(replacement->GetType(), DataType::Type::kVoid); in ReplaceAndRemoveInstructionWith()
980 replacement->SetBlock(this); in ReplaceAndRemoveInstructionWith()
981 replacement->SetId(GetGraph()->GetNextInstructionId()); in ReplaceAndRemoveInstructionWith()
982 instructions_.InsertInstructionBefore(replacement, initial); in ReplaceAndRemoveInstructionWith()
983 UpdateInputsUsers(replacement); in ReplaceAndRemoveInstructionWith()
985 InsertInstructionBefore(replacement, initial); in ReplaceAndRemoveInstructionWith()
986 initial->ReplaceWith(replacement); in ReplaceAndRemoveInstructionWith()
1127 void HEnvironment::ReplaceInput(HInstruction* replacement, size_t index) { in ReplaceInput() argument
1131 DCHECK(orig_instr != replacement); in ReplaceInput()
1135 auto fixup_end = replacement->env_uses_.empty() ? replacement->env_uses_.begin() in ReplaceInput()
1136 : ++replacement->env_uses_.begin(); in ReplaceInput()
1137 replacement->env_uses_.splice_after(replacement->env_uses_.before_begin(), in ReplaceInput()
1140 replacement->FixUpUserRecordsAfterEnvUseInsertion(fixup_end); in ReplaceInput()
1298 void HInstruction::ReplaceUsesDominatedBy(HInstruction* dominator, HInstruction* replacement) { in ReplaceUsesDominatedBy() argument
1306 user->ReplaceInput(replacement, index); in ReplaceUsesDominatedBy()
1314 user->ReplaceInput(replacement, index); in ReplaceUsesDominatedBy()
1320 void HInstruction::ReplaceEnvUsesDominatedBy(HInstruction* dominator, HInstruction* replacement) { in ReplaceEnvUsesDominatedBy() argument
1328 user->ReplaceInput(replacement, index); in ReplaceEnvUsesDominatedBy()
1333 void HInstruction::ReplaceInput(HInstruction* replacement, size_t index) { in ReplaceInput() argument
1335 if (input_use.GetInstruction() == replacement) { in ReplaceInput()
1342 replacement->uses_.empty() ? replacement->uses_.begin() : ++replacement->uses_.begin(); in ReplaceInput()
1343 replacement->uses_.splice_after(replacement->uses_.before_begin(), in ReplaceInput()
1346 replacement->FixUpUserRecordsAfterUseInsertion(fixup_end); in ReplaceInput()
2613 HInstruction* replacement = nullptr; in InlineInto() local
2615 replacement = outer_graph->GetNullConstant(current->GetDexPc()); in InlineInto()
2617 replacement = outer_graph->GetIntConstant( in InlineInto()
2620 replacement = outer_graph->GetLongConstant( in InlineInto()
2623 replacement = outer_graph->GetFloatConstant( in InlineInto()
2626 replacement = outer_graph->GetDoubleConstant( in InlineInto()
2637 replacement = invoke->InputAt(parameter_index++); in InlineInto()
2639 replacement = outer_graph->GetCurrentMethod(); in InlineInto()
2644 if (replacement != nullptr) { in InlineInto()
2645 current->ReplaceWith(replacement); in InlineInto()
2649 return_value = replacement; in InlineInto()
3095 HInstruction* replacement = nullptr; in InsertOppositeCondition() local
3097 case kCondEQ: replacement = new (allocator) HEqual(lhs, rhs); break; in InsertOppositeCondition()
3098 case kCondNE: replacement = new (allocator) HNotEqual(lhs, rhs); break; in InsertOppositeCondition()
3099 case kCondLT: replacement = new (allocator) HLessThan(lhs, rhs); break; in InsertOppositeCondition()
3100 case kCondLE: replacement = new (allocator) HLessThanOrEqual(lhs, rhs); break; in InsertOppositeCondition()
3101 case kCondGT: replacement = new (allocator) HGreaterThan(lhs, rhs); break; in InsertOppositeCondition()
3102 case kCondGE: replacement = new (allocator) HGreaterThanOrEqual(lhs, rhs); break; in InsertOppositeCondition()
3103 case kCondB: replacement = new (allocator) HBelow(lhs, rhs); break; in InsertOppositeCondition()
3104 case kCondBE: replacement = new (allocator) HBelowOrEqual(lhs, rhs); break; in InsertOppositeCondition()
3105 case kCondA: replacement = new (allocator) HAbove(lhs, rhs); break; in InsertOppositeCondition()
3106 case kCondAE: replacement = new (allocator) HAboveOrEqual(lhs, rhs); break; in InsertOppositeCondition()
3111 cursor->GetBlock()->InsertInstructionBefore(replacement, cursor); in InsertOppositeCondition()
3112 return replacement; in InsertOppositeCondition()
3122 HInstruction* replacement = new (allocator) HBooleanNot(cond); in InsertOppositeCondition() local
3123 cursor->GetBlock()->InsertInstructionBefore(replacement, cursor); in InsertOppositeCondition()
3124 return replacement; in InsertOppositeCondition()