Lines Matching refs:replacement

960 void HBasicBlock::ReplaceAndRemovePhiWith(HPhi* initial, HPhi* replacement) {  in ReplaceAndRemovePhiWith()  argument
962 InsertPhiAfter(replacement, initial); in ReplaceAndRemovePhiWith()
963 initial->ReplaceWith(replacement); in ReplaceAndRemovePhiWith()
968 HInstruction* replacement) { in ReplaceAndRemoveInstructionWith() argument
972 DCHECK(replacement->IsControlFlow()); in ReplaceAndRemoveInstructionWith()
973 DCHECK_EQ(replacement->GetId(), -1); in ReplaceAndRemoveInstructionWith()
974 DCHECK_EQ(replacement->GetType(), DataType::Type::kVoid); in ReplaceAndRemoveInstructionWith()
979 replacement->SetBlock(this); in ReplaceAndRemoveInstructionWith()
980 replacement->SetId(GetGraph()->GetNextInstructionId()); in ReplaceAndRemoveInstructionWith()
981 instructions_.InsertInstructionBefore(replacement, initial); in ReplaceAndRemoveInstructionWith()
982 UpdateInputsUsers(replacement); in ReplaceAndRemoveInstructionWith()
984 InsertInstructionBefore(replacement, initial); in ReplaceAndRemoveInstructionWith()
985 initial->ReplaceWith(replacement); in ReplaceAndRemoveInstructionWith()
1126 void HEnvironment::ReplaceInput(HInstruction* replacement, size_t index) { in ReplaceInput() argument
1130 DCHECK(orig_instr != replacement); in ReplaceInput()
1134 auto fixup_end = replacement->env_uses_.empty() ? replacement->env_uses_.begin() in ReplaceInput()
1135 : ++replacement->env_uses_.begin(); in ReplaceInput()
1136 replacement->env_uses_.splice_after(replacement->env_uses_.before_begin(), in ReplaceInput()
1139 replacement->FixUpUserRecordsAfterEnvUseInsertion(fixup_end); in ReplaceInput()
1297 void HInstruction::ReplaceUsesDominatedBy(HInstruction* dominator, HInstruction* replacement) { in ReplaceUsesDominatedBy() argument
1305 user->ReplaceInput(replacement, index); in ReplaceUsesDominatedBy()
1313 user->ReplaceInput(replacement, index); in ReplaceUsesDominatedBy()
1319 void HInstruction::ReplaceEnvUsesDominatedBy(HInstruction* dominator, HInstruction* replacement) { in ReplaceEnvUsesDominatedBy() argument
1327 user->ReplaceInput(replacement, index); in ReplaceEnvUsesDominatedBy()
1332 void HInstruction::ReplaceInput(HInstruction* replacement, size_t index) { in ReplaceInput() argument
1334 if (input_use.GetInstruction() == replacement) { in ReplaceInput()
1341 replacement->uses_.empty() ? replacement->uses_.begin() : ++replacement->uses_.begin(); in ReplaceInput()
1342 replacement->uses_.splice_after(replacement->uses_.before_begin(), in ReplaceInput()
1345 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()
3031 HInstruction* replacement = nullptr; in InsertOppositeCondition() local
3033 case kCondEQ: replacement = new (allocator) HEqual(lhs, rhs); break; in InsertOppositeCondition()
3034 case kCondNE: replacement = new (allocator) HNotEqual(lhs, rhs); break; in InsertOppositeCondition()
3035 case kCondLT: replacement = new (allocator) HLessThan(lhs, rhs); break; in InsertOppositeCondition()
3036 case kCondLE: replacement = new (allocator) HLessThanOrEqual(lhs, rhs); break; in InsertOppositeCondition()
3037 case kCondGT: replacement = new (allocator) HGreaterThan(lhs, rhs); break; in InsertOppositeCondition()
3038 case kCondGE: replacement = new (allocator) HGreaterThanOrEqual(lhs, rhs); break; in InsertOppositeCondition()
3039 case kCondB: replacement = new (allocator) HBelow(lhs, rhs); break; in InsertOppositeCondition()
3040 case kCondBE: replacement = new (allocator) HBelowOrEqual(lhs, rhs); break; in InsertOppositeCondition()
3041 case kCondA: replacement = new (allocator) HAbove(lhs, rhs); break; in InsertOppositeCondition()
3042 case kCondAE: replacement = new (allocator) HAboveOrEqual(lhs, rhs); break; in InsertOppositeCondition()
3047 cursor->GetBlock()->InsertInstructionBefore(replacement, cursor); in InsertOppositeCondition()
3048 return replacement; in InsertOppositeCondition()
3058 HInstruction* replacement = new (allocator) HBooleanNot(cond); in InsertOppositeCondition() local
3059 cursor->GetBlock()->InsertInstructionBefore(replacement, cursor); in InsertOppositeCondition()
3060 return replacement; in InsertOppositeCondition()