Lines Matching refs:replacement
768 HInstruction* replacement) { in ReplaceAndRemoveInstructionWith() argument
772 DCHECK(replacement->IsControlFlow()); in ReplaceAndRemoveInstructionWith()
773 DCHECK_EQ(replacement->GetId(), -1); in ReplaceAndRemoveInstructionWith()
774 DCHECK_EQ(replacement->GetType(), Primitive::kPrimVoid); in ReplaceAndRemoveInstructionWith()
779 replacement->SetBlock(this); in ReplaceAndRemoveInstructionWith()
780 replacement->SetId(GetGraph()->GetNextInstructionId()); in ReplaceAndRemoveInstructionWith()
781 instructions_.InsertInstructionBefore(replacement, initial); in ReplaceAndRemoveInstructionWith()
782 UpdateInputsUsers(replacement); in ReplaceAndRemoveInstructionWith()
784 InsertInstructionBefore(replacement, initial); in ReplaceAndRemoveInstructionWith()
785 initial->ReplaceWith(replacement); in ReplaceAndRemoveInstructionWith()
1099 void HInstruction::ReplaceInput(HInstruction* replacement, size_t index) { in ReplaceInput() argument
1101 if (input_use.GetInstruction() == replacement) { in ReplaceInput()
1108 replacement->uses_.empty() ? replacement->uses_.begin() : ++replacement->uses_.begin(); in ReplaceInput()
1109 replacement->uses_.splice_after(replacement->uses_.before_begin(), in ReplaceInput()
1112 replacement->FixUpUserRecordsAfterUseInsertion(fixup_end); in ReplaceInput()
2142 HInstruction* replacement = nullptr; in InlineInto() local
2144 replacement = outer_graph->GetNullConstant(current->GetDexPc()); in InlineInto()
2146 replacement = outer_graph->GetIntConstant( in InlineInto()
2149 replacement = outer_graph->GetLongConstant( in InlineInto()
2152 replacement = outer_graph->GetFloatConstant( in InlineInto()
2155 replacement = outer_graph->GetDoubleConstant( in InlineInto()
2166 replacement = invoke->InputAt(parameter_index++); in InlineInto()
2168 replacement = outer_graph->GetCurrentMethod(); in InlineInto()
2173 if (replacement != nullptr) { in InlineInto()
2174 current->ReplaceWith(replacement); in InlineInto()
2178 return_value = replacement; in InlineInto()
2514 HInstruction* replacement = nullptr; in InsertOppositeCondition() local
2516 case kCondEQ: replacement = new (allocator) HEqual(lhs, rhs); break; in InsertOppositeCondition()
2517 case kCondNE: replacement = new (allocator) HNotEqual(lhs, rhs); break; in InsertOppositeCondition()
2518 case kCondLT: replacement = new (allocator) HLessThan(lhs, rhs); break; in InsertOppositeCondition()
2519 case kCondLE: replacement = new (allocator) HLessThanOrEqual(lhs, rhs); break; in InsertOppositeCondition()
2520 case kCondGT: replacement = new (allocator) HGreaterThan(lhs, rhs); break; in InsertOppositeCondition()
2521 case kCondGE: replacement = new (allocator) HGreaterThanOrEqual(lhs, rhs); break; in InsertOppositeCondition()
2522 case kCondB: replacement = new (allocator) HBelow(lhs, rhs); break; in InsertOppositeCondition()
2523 case kCondBE: replacement = new (allocator) HBelowOrEqual(lhs, rhs); break; in InsertOppositeCondition()
2524 case kCondA: replacement = new (allocator) HAbove(lhs, rhs); break; in InsertOppositeCondition()
2525 case kCondAE: replacement = new (allocator) HAboveOrEqual(lhs, rhs); break; in InsertOppositeCondition()
2530 cursor->GetBlock()->InsertInstructionBefore(replacement, cursor); in InsertOppositeCondition()
2531 return replacement; in InsertOppositeCondition()
2541 HInstruction* replacement = new (allocator) HBooleanNot(cond); in InsertOppositeCondition() local
2542 cursor->GetBlock()->InsertInstructionBefore(replacement, cursor); in InsertOppositeCondition()
2543 return replacement; in InsertOppositeCondition()