Home
last modified time | relevance | path

Searched refs:GetPrev (Results 1 - 25 of 74) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
H A Dcfgo.cpp135 DEBUG_ASSERT(sucBB.GetPrev() != nullptr, "the target of current goto BB will not be the first bb"); in MoveSuccBBAsCurBBNext()
136 sucBB.GetPrev()->SetNext(sucBB.GetNext()); in MoveSuccBBAsCurBBNext()
138 sucBB.GetNext()->SetPrev(sucBB.GetPrev()); in MoveSuccBBAsCurBBNext()
144 cgFunc->SetLastBB(*(sucBB.GetPrev())); in MoveSuccBBAsCurBBNext()
182 for (brInsn = curBB.GetLastMachineInsn(); brInsn != nullptr; brInsn = brInsn->GetPrev()) { in ClearCurBBAndResetTargetBB()
188 BB *newTarget = sucBB.GetPrev(); in ClearCurBBAndResetTargetBB()
194 newTarget->GetFirstInsn() != nullptr && br != newTarget->GetFirstInsn()->GetPrev(); br = br->GetPrev()) { in ClearCurBBAndResetTargetBB()
226 curBB.RemoveInsnSequence(*curBB.GetFirstInsn(), *brInsn->GetPrev()); in ClearCurBBAndResetTargetBB()
233 sucBB.GetPrev() in ClearCurBBAndResetTargetBB()
[all...]
H A Dcg_cfg.cpp221 BB *prevLast = mergee.GetPrev(); in MergeBB()
265 if (mergee.GetPrev() != nullptr) { in MergeBB()
266 mergee.GetPrev()->SetNext(mergee.GetNext()); in MergeBB()
269 mergee.GetNext()->SetPrev(mergee.GetPrev()); in MergeBB()
432 curBB.GetNext()->SetPrev(curBB.GetPrev()); in RemoveBB()
434 cgFunc->SetLastBB(*curBB.GetPrev()); in RemoveBB()
436 if (curBB.GetPrev() != nullptr) { in RemoveBB()
437 curBB.GetPrev()->SetNext(curBB.GetNext()); in RemoveBB()
469 if (isGotoIf && (curBB.GetPrev() != nullptr) && in GetTargetSuc()
471 (curBB.GetPrev() in GetTargetSuc()
[all...]
H A Dcgbb.cpp27 Insn *pre = existing.GetPrev(); in InsertInsnBefore()
64 newInsn.SetPrev(insn.GetPrev()); in ReplaceInsn()
73 } else if (newInsn.GetPrev() != nullptr) { in ReplaceInsn()
74 newInsn.GetPrev()->SetNext(&newInsn); in ReplaceInsn()
87 lastInsn = insn.GetPrev(); in RemoveInsn()
90 Insn *prevInsn = insn.GetPrev(); in RemoveInsn()
110 lastInsn = insn.GetPrev(); in RemoveInsnSequence()
113 if (insn.GetPrev() != nullptr) { in RemoveInsnSequence()
114 insn.GetPrev()->SetNext(nextInsn.GetNext()); in RemoveInsnSequence()
117 nextInsn.GetNext()->SetPrev(insn.GetPrev()); in RemoveInsnSequence()
[all...]
/arkcompiler/runtime_core/static_core/bytecode_optimizer/
H A Dconst_array_resolver.cpp185 inst = inst->GetPrev(); in FindConstantArrays()
192 inst = inst->GetPrev(); in FindConstantArrays()
198 inst = inst->GetPrev(); in FindConstantArrays()
204 inst = IsSameBB(inst, newArrayInst) ? newArrayInst->GetPrev() : inst->GetPrev(); in FindConstantArrays()
211 inst = newArrayInst->GetPrev(); in FindConstantArrays()
216 inst = newArrayInst->GetPrev(); in FindConstantArrays()
223 inst = newArrayInst->GetPrev(); in FindConstantArrays()
237 inst = newArrayInst->GetPrev(); in FindConstantArrays()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
H A Dptr_list_ref.h28 T *GetPrev() const in GetPrev() function in maple::PtrListNodeBase
183 this->ptr = this->ptr->GetPrev(); in operator --()
285 return reverse_iterator(iterator(this->first == nullptr ? nullptr : this->first->GetPrev())); in rend()
290 return const_reverse_iterator(const_iterator(this->first == nullptr ? nullptr : this->first->GetPrev())); in rend()
295 return const_reverse_iterator(const_iterator(this->first == nullptr ? nullptr : this->first->GetPrev())); in crend()
387 if (this->last->GetPrev() == nullptr) { in pop_back()
391 this->last = this->last->GetPrev(); in pop_back()
405 value->SetPrev(ptr->GetPrev()); in insert()
407 value->GetPrev()->SetNext(value); in insert()
486 DEBUG_ASSERT(where->GetPrev() ! in erase()
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Djs_finalization_registry.cpp99 if (obj->GetPrev().IsNull() && obj->GetNext().IsNull()) { in CleanFinRegLists()
103 if (!obj->GetPrev().IsNull()) { in CleanFinRegLists()
104 JSHandle<JSFinalizationRegistry> prev(thread, obj->GetPrev()); in CleanFinRegLists()
109 next->SetPrev(thread, obj->GetPrev()); in CleanFinRegLists()
111 env->SetFinRegLists(thread, obj->GetPrev()); in CleanFinRegLists()
133 current.Update(jsFinalizationRegistry->GetPrev()); in CheckAndCall()
225 if (!next->GetPrev().IsNull() || !next->GetNext().IsNull()) { in AddFinRegLists()
H A Decma_global_storage.h50 Node *GetPrev() const in GetPrev() function in panda::ecmascript::Node
273 if (node->GetPrev() != nullptr) { in FreeNode()
274 node->GetPrev()->SetNext(node->GetNext()); in FreeNode()
277 node->GetNext()->SetPrev(node->GetPrev()); in FreeNode()
344 inline NodeList<T> *GetPrev() const in GetPrev() function in panda::ecmascript::NodeList
525 *lastNodes = list->GetPrev(); in DisposeGlobalHandleInner()
/arkcompiler/ets_runtime/ecmascript/mem/
H A Decma_list.h64 node->LinkPrev(first_->GetPrev()); in AddNodeToFront()
87 last_ = node->GetPrev(); in RemoveNode()
96 T *prev = node->GetPrev(); in RemoveNode()
H A Darea.h60 Area *GetPrev() const in GetPrev() function in panda::ecmascript::Area
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
H A Dets_finalizable_weak_ref_list.h44 auto *prev = weakRef->GetPrev(); in Unlink()
120 ASSERT(GetPrev() == nullptr); in GetHead()
127 ASSERT(GetPrev() == nullptr); in SetHead()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/maple_be/
H A Dcg_cgbb_test.cpp52 EXPECT_EQ(existing.GetPrev(), nullptr); in TEST()
57 EXPECT_NE(existing.GetPrev(), nullptr); in TEST()
97 EXPECT_EQ((*(insn.GetNext())).GetPrev(), nullptr); in TEST()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
H A Daarch64_fixshortbranch.cpp92 insn = insn->GetPrev(); in PatchLongBranch()
124 for (auto *insn = bb->GetLastInsn(); insn != nullptr && !change; insn = insn->GetPrev()) { in FixShortBranches()
183 for (auto *bb = cgFunc->GetLastBB(); bb != nullptr && !findLast; bb = bb->GetPrev()) { in CheckFunctionSize()
184 for (auto *insn = bb->GetLastInsn(); insn != nullptr && !findLast; insn = insn->GetPrev()) { in CheckFunctionSize()
H A Daarch64_optimize_common.cpp25 for (Insn *insn = bb.GetLastInsn(); insn != nullptr; insn = insn->GetPrev()) { in ModifyJumpTarget()
/arkcompiler/runtime_core/compiler/tests/
H A Dsplit_resolver_new_test.cpp161 auto sf_data1 = add_inst->GetPrev()->CastToSpillFill()->GetSpillFill(0); in HWTEST_F()
162 auto sf_data2 = mul_inst->GetPrev()->CastToSpillFill()->GetSpillFill(0); in HWTEST_F()
223 EXPECT_EQ(call_inst->GetPrev(), input_fill_inst); in HWTEST_F()
224 auto sf_data = input_fill_inst->GetPrev()->CastToSpillFill()->GetSpillFills(); in HWTEST_F()
271 auto sf_inst1 = mul_inst->GetPrev()->CastToSpillFill(); in HWTEST_F()
/arkcompiler/runtime_core/compiler/optimizer/ir/
H A Dbasicblock.cpp365 Inst *prev = first_inst_->GetPrev(); in AppendPhi()
403 auto first_prev = first_inst_->GetPrev(); in AddInst()
419 ASSERT(range_first->GetPrev() == nullptr); in AppendRangeInst()
473 Inst *prev = before->GetPrev(); in InsertBefore()
493 ASSERT(range_first->GetPrev() == nullptr); in InsertRangeBefore()
506 Inst *prev = before->GetPrev(); in InsertRangeBefore()
525 Inst *prev = old_inst->GetPrev(); in ReplaceInst()
555 Inst *prev = inst->GetPrev(); in EraseInst()
H A Dgraph_cloner.cpp220 if (ifimm->GetPrev() != compare) { in SplitBackEdge()
228 if (compare->GetPrev() != nullptr) { in SplitBackEdge()
229 auto back_edge_split = back_edge->SplitBlockAfterInstruction(compare->GetPrev(), true); in SplitBackEdge()
270 auto last_phi = header_block->GetFirstInst()->GetPrev(); in PrepareLoopToUnroll()
306 auto compare = unroll_data->backedge->GetLastInst()->GetPrev(); in UpdateUsersAfterNoSideExitsUnroll()
785 if (ifimm->GetPrev() != compare) { in PrepareLoopToClone()
793 if (compare->GetPrev() != nullptr) { in PrepareLoopToClone()
794 auto new_pre_header = pre_header->SplitBlockAfterInstruction(compare->GetPrev(), true); in PrepareLoopToClone()
811 auto last_phi = outside_succ->GetFirstInst()->GetPrev(); in PrepareLoopToClone()
1005 if (ifimm->GetPrev() ! in IsLoopClonable()
[all...]
H A Dbasicblock.h713 current_ = (block.first_inst_ != nullptr) ? block.first_inst_->GetPrev() : block.last_inst_;
839 this->SetCurrent(this->GetCurrent()->GetPrev());
866 final_ = (block.first_inst_ != nullptr) ? block.first_inst_->GetPrev() : nullptr;
933 return this->GetCurrent() == nullptr ? nullptr : this->GetCurrent()->GetPrev();
1005 final_ = (block.first_inst_ != nullptr) ? block.first_inst_->GetPrev() : nullptr;
1031 return this->GetCurrent() == final_ ? nullptr : this->GetCurrent()->GetPrev();
/arkcompiler/runtime_core/static_core/runtime/mem/refstorage/
H A Dref_block.h54 refBlock_ = refBlock_->GetPrev(); in operator ++()
115 RefBlock *GetPrev() const in GetPrev() function in ark::mem::ark::mem::RefBlock
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/
H A Dsplit_resolver.cpp187 auto prev = connectAt->GetPrev(); in CreateSpillFillForSiblings()
194 prev = prev->GetPrev(); in CreateSpillFillForSiblings()
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
H A Dreg_alloc_resolver.cpp122 if (inst->GetPrev() != nullptr && inst->GetPrev()->IsSpillFill()) { in AddMoveToFixedLocation()
123 sf_inst = inst->GetPrev()->CastToSpillFill(); in AddMoveToFixedLocation()
H A Dsplit_resolver.cpp185 auto prev = connect_at->GetPrev(); in CreateSpillFillForSiblings()
192 prev = prev->GetPrev(); in CreateSpillFillForSiblings()
/arkcompiler/runtime_core/static_core/irtoc/backend/compiler/
H A Ddangling_pointers_checker.cpp42 return inst->GetPrev(); in MoveToPrevInst()
269 auto prevInst = runtimeCallInst->GetPrev(); in GetLastAccDefinition()
453 auto prevInst = runtimeCallInst->GetPrev(); in CheckStoreAcc()
475 auto prevInst = runtimeCallInst->GetPrev(); in CheckStoreAccTag()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/mem/
H A Dets_reference_processor.cpp113 refHandler(finalizableWeakRef->GetPrev(), ark::ets::EtsFinalizableWeakRef::GetPrevOffset()); in HandleOtherFields()
123 refHandler(finalizableWeakRef->GetPrev()); in HandleOtherFields()
/arkcompiler/runtime_core/static_core/compiler/tests/
H A Dlowering_test.cpp173 ASSERT_EQ(INS(4U).GetPrev()->GetOpcode(), Opcode::AddI); in TEST_F()
174 ASSERT_EQ(INS(5U).GetPrev()->GetOpcode(), Opcode::SubI); in TEST_F()
175 ASSERT_EQ(INS(6U).GetPrev()->GetOpcode(), Opcode::Add); in TEST_F()
176 ASSERT_EQ(INS(7U).GetPrev()->GetOpcode(), Opcode::SubI); in TEST_F()
177 ASSERT_EQ(INS(8U).GetPrev()->GetOpcode(), Opcode::AddI); in TEST_F()
178 ASSERT_EQ(INS(9U).GetPrev()->GetOpcode(), Opcode::Sub); in TEST_F()
268 ASSERT_EQ(INS(3U).GetPrev()->GetOpcode(), Opcode::OrI); in TEST_F()
269 ASSERT_EQ(INS(4U).GetPrev()->GetOpcode(), Opcode::OrI); in TEST_F()
270 ASSERT_EQ(INS(5U).GetPrev()->GetOpcode(), Opcode::Or); in TEST_F()
271 ASSERT_EQ(INS(6U).GetPrev() in TEST_F()
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
H A Dcondition_chain_manager.cpp84 return bb->GetSuccsBlocks().size() == MAX_SUCCS_NUM && bb->GetLastInst()->GetPrev() == nullptr && in IsConditionChainCandidate()

Completed in 16 milliseconds

123