Home
last modified time | relevance | path

Searched refs:user (Results 1 – 25 of 43) sorted by relevance

12

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DcontrolFlowBreakContinueWithLabel.ts23 let user: User = User.A variable
24 AssertType(user, "User");
28 switch (user) {
29 AssertType(user, "User");
34 user = User.B;
35 AssertType(user = User.B, "User.B");
36 AssertType(user, "User");
49 user;
50 AssertType(user, "User.B");
DmappedTypeCircularReferenceInAccessor.ts26 set bestFriend(user: SerializablePartial<User>)
DrecursiveConditionalCrash3.ts47 user: CanBeExpanded<User>, property
55 user: CanBeExpanded<User>, property
/arkcompiler/runtime_core/bytecode_optimizer/
Dreg_acc_alloc.cpp105 bool RegAccAlloc::CanUserReadAcc(compiler::Inst *inst, compiler::Inst *user) const in CanUserReadAcc()
107 if (user->IsPhi()) { in CanUserReadAcc()
108 return IsPhiOptimizable(user); in CanUserReadAcc()
111 if (!IsAccRead(user) || IsAccWriteBetween(inst, user)) { in CanUserReadAcc()
119 for (auto input : user->GetInputs()) { in CanUserReadAcc()
133 if (user->IsCall()) { in CanUserReadAcc()
134 return user->GetInputsCount() <= (MAX_NUM_NON_RANGE_ARGS + 1); // +1 for SaveState in CanUserReadAcc()
137 return user->GetInput(AccReadIndex(user)).GetInst() == inst || user->IsCommutative(); in CanUserReadAcc()
159 for (auto &user : phi->GetUsers()) { in IsPhiAccReady() local
160 compiler::Inst *uinst = user.GetInst(); in IsPhiAccReady()
[all …]
Dreg_acc_alloc.h50 bool CanUserReadAcc(compiler::Inst *inst, compiler::Inst *user) const;
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
Dphi_resolver.h57 for (auto user : real_users_) { in Run() local
58 ASSERT(user->IsSaveState()); in Run()
59 auto save_state = static_cast<SaveStateInst *>(user); in Run()
112 for (auto &user : inst->GetUsers()) { in FindUsersRec()
113 if (user.GetInst()->SetMarker(marker_)) { in FindUsersRec()
116 if (user.GetInst()->IsPhi() || user.GetInst()->GetOpcode() == Opcode::CatchPhi) { in FindUsersRec()
117 phi_users_.push_back(user.GetInst()); in FindUsersRec()
118 FindUsersRec(user.GetInst()); in FindUsersRec()
120 if (!user.GetInst()->IsSaveState()) { in FindUsersRec()
124 real_users_.push_back(user.GetInst()); in FindUsersRec()
Dinst_builder.cpp302 auto user = (*curr_it).GetInst(); in SplitConstant() local
303 DataType::Type type = user->GetInputType(curr_it->GetIndex()); in SplitConstant()
316 user->ReplaceInput(const_inst, new_const); in SplitConstant()
329 for (const auto &user : inst->GetUsers()) { in CleanupCatchPhis() local
330 if (!user.GetInst()->IsSaveState()) { in CleanupCatchPhis()
338 auto &user = users.Front(); in CleanupCatchPhis() local
339 user.GetInst()->RemoveInput(user.GetIndex()); in CleanupCatchPhis()
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
Dmove_constants.cpp87 for (auto &user : inst->GetUsers()) { in SingleBlockNoPhiDominatingUser() local
88 auto user_inst = user.GetInst(); in SingleBlockNoPhiDominatingUser()
112 for (auto &user : inst->GetUsers()) { in GetUsersDominatingBlocks() local
113 user_dominating_blocks_.emplace_back(GetDominators(user)); in GetUsersDominatingBlocks()
117 const ArenaVector<BasicBlock *> *MoveConstants::GetDominators(const User &user) in GetDominators() argument
119 auto inst = user.GetInst(); in GetDominators()
122 inst = inst->CastToCatchPhi()->GetThrowableInst(user.GetIndex()); in GetDominators()
Dcleanup.cpp124 auto user = user_item.GetInst(); in RunOnce() local
125 ASSERT((user->GetBasicBlock() == succ && user->IsPhi()) || user->IsCatchPhi()); in RunOnce()
335 auto user = user_item.GetInst(); in LiveUserSearchRec() local
336 if (user->IsMarked(mrk)) { in LiveUserSearchRec()
340 if (user->IsMarked(dead_mrk)) { in LiveUserSearchRec()
343 LiveUserSearchRec(user, mrk, live_mrk, dead_mrk); in LiveUserSearchRec()
344 if (user->IsMarked(live_mrk)) { in LiveUserSearchRec()
349 if (user->IsMarked(mrk)) { in LiveUserSearchRec()
350 ASSERT(!user->IsMarked(live_mrk) && !user->IsMarked(dead_mrk)); in LiveUserSearchRec()
353 ASSERT(user->IsMarked(dead_mrk)); in LiveUserSearchRec()
[all …]
Dmove_constants.h52 const ArenaVector<BasicBlock *> *GetDominators(const User &user);
Dlowering.cpp91 for (auto &user : input->GetUsers()) { in LowerIf() local
92 if (user.GetInst()->GetOpcode() != Opcode::IfImm) { in LowerIf()
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dgraph_checker.cpp55 for (auto &user : inst->GetUsers()) { in UserInputCheck() local
56 [[maybe_unused]] auto user_inst = user.GetInst(); in UserInputCheck()
207 for ([[maybe_unused]] auto &user : inst->GetUsers()) { in CheckDataFlow() local
208 auto user_inst = user.GetInst(); in CheckDataFlow()
225 [[maybe_unused]] auto user_input_type = user_inst->GetInputType(user.GetIndex()); in CheckDataFlow()
519 bool GraphChecker::CheckInstHasUser(Inst *inst, Inst *user) in CheckInstHasUser() argument
521 ASSERT(inst != nullptr && user != nullptr); in CheckInstHasUser()
522 ASSERT(user->GetBasicBlock() != nullptr); in CheckInstHasUser()
523 ASSERT(user->GetBasicBlock()->GetGraph() != nullptr); in CheckInstHasUser()
525 if (node.GetInst() == user) { in CheckInstHasUser()
[all …]
Dgraph_cloner.cpp192 auto user = user_it->GetInst(); in CreateResolverBlock() local
195 ASSERT(user->GetBasicBlock() != nullptr); in CreateResolverBlock()
196 if (user->GetBasicBlock()->GetLoop() != loop) { in CreateResolverBlock()
202 user->SetInput(input_idx, phi_resolver); in CreateResolverBlock()
316 auto user = user_it->GetInst(); in UpdateUsersAfterNoSideExitsUnroll() local
319 ASSERT(user->GetBasicBlock() != nullptr); in UpdateUsersAfterNoSideExitsUnroll()
320 if (user->GetBasicBlock()->GetLoop() != loop) { in UpdateUsersAfterNoSideExitsUnroll()
321 user->SetInput(input_idx, GetClone(inst)); in UpdateUsersAfterNoSideExitsUnroll()
541 auto user = user_it->GetInst(); in BuildClonedLoopHeaderDataFlow() local
544 ASSERT(user->GetBasicBlock() != nullptr); in BuildClonedLoopHeaderDataFlow()
[all …]
Dgraph_checker.h70 bool CheckInstHasUser(Inst *inst, Inst *user);
86 …void CheckObjectRec(const Inst *object, const Inst *user, const BasicBlock *block, Inst *start_fro…
90 … void CheckSaveStateOsrRec(const Inst *inst, const Inst *user, BasicBlock *block, Marker visited);
Dinst.h1005 void AddUser(User *user) in AddUser() argument
1007 ASSERT(user && user->GetInst()); in AddUser()
1008 user->SetNext(first_user_); in AddUser()
1009 user->SetPrev(nullptr); in AddUser()
1012 first_user_->SetPrev(user); in AddUser()
1014 first_user_ = user; in AddUser()
1021 void RemoveUser(User *user) in RemoveUser() argument
1023 ASSERT(user); in RemoveUser()
1025 if (user == first_user_) { in RemoveUser()
1026 first_user_ = user->GetNext(); in RemoveUser()
[all …]
Dinst.cpp110 auto user {GetUser(size_)}; in Append() local
112 user->SetBbNum(size_); in Append()
114 inst->AddUser(user); in Append()
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
Dreg_alloc_resolver.cpp170 for (auto &user : inst->GetUsers()) { in GetExplicitUser() local
171 if (user.GetInst()->IsPhi()) { in GetExplicitUser()
174 ASSERT(user_inst != nullptr && user_inst->IsDominate(user.GetInst())); in GetExplicitUser()
183 auto user = GetExplicitUser(GetFirstUserOrInst(save_state)); in PropagateCallerMasks() local
186 FillSaveStateRootsMask(save_state, user, save_state); in PropagateCallerMasks()
189 void RegAllocResolver::FillSaveStateRootsMask(SaveStateInst *save_state, Inst *user, SaveStateInst … in FillSaveStateRootsMask() argument
191 auto dst_ln = liveness_->GetInstLifeIntervals(user)->GetBegin(); in FillSaveStateRootsMask()
207 if (test_user.GetInst()->GetId() == user->GetId()) { in FillSaveStateRootsMask()
Dreg_alloc_resolver.h62 void FillSaveStateRootsMask(SaveStateInst *save_state, Inst *user, SaveStateInst *target_ss);
/arkcompiler/runtime_core/libark_defect_scan_aux/
Dgraph.cpp104 for (auto &user : user_list) { in GetUserInsts() local
105 if (!user.GetInst()->IsSaveState()) { in GetUserInsts()
106 users.emplace_back(user.GetInst()); in GetUserInsts()
/arkcompiler/runtime_core/compiler/tests/
Dunit_test.h173 for (auto &user : inst.GetUsers()) { in CheckUsers()
174 EXPECT_EQ(user.GetInst()->GetInput(user.GetIndex()).GetInst(), &inst); in CheckUsers()
175 if (users_map[user.GetInst()->GetId()]-- == 0) in CheckUsers()
Dinst_test.cpp105 for (auto &user : inst->GetUsers()) { in TEST_F() local
106 ASSERT_EQ(inst, user.GetInput()); in TEST_F()
112 for (auto &user : inst->GetUsers()) { in TEST_F() local
113 user.GetInst()->SetId(user.GetInst()->GetId()); in TEST_F()
551 auto user = graph->FindOrCreateConstant(i)->GetUsers().begin()->GetInst(); in TEST_F() local
552 ASSERT_EQ(user, save_state); in TEST_F()
Dcompiler_inst_test.cpp1019 User user(false, 0, 1); variable
1020 user.GetVirtualRegister();
1022 user.SetVirtualRegister(reg);
1023 EXPECT_TRUE(user.GetVirtualRegister().IsAccumulator());
1024 EXPECT_TRUE(user.IsDynamic());
/arkcompiler/toolchain/build/third_party_gn/musl/
Dmusl_template.gni766 "//third_party/musl/porting/linux/user/src/hook/malloc_common.c",
767 "//third_party/musl/porting/linux/user/src/hook/memory_trace.c",
768 "//third_party/musl/porting/linux/user/src/hook/musl_preinit.c",
769 "//third_party/musl/porting/linux/user/src/hook/musl_preinit_common.c",
770 "//third_party/musl/porting/linux/user/src/hook/musl_socket_preinit.c",
771 "//third_party/musl/porting/linux/user/src/hook/musl_socket_preinit_common.c",
772 "//third_party/musl/porting/linux/user/src/hook/socket_common.c",
802 sources = [ "./porting/linux/user/src/malloc/jemalloc/jemalloc.c" ]
Dmusl_config.gni53 musl_porting_dir = "//third_party/musl/porting/linux/user"
/arkcompiler/ets_runtime/ecmascript/
Djs_hclass.cpp567 JSHandle<JSHClass> user = jshclass; in RegisterOnProtoChain() local
568 JSHandle<ProtoChangeDetails> userDetails = GetProtoChangeDetails(thread, user); in RegisterOnProtoChain()
576 JSTaggedValue proto = user->GetPrototype(); in RegisterOnProtoChain()
595 …JSHandle<ChangeListener> newListeners = ChangeListener::Add(thread, listenersHandle, user, &regist… in RegisterOnProtoChain()
599 user = JSHandle<JSHClass>(thread, protoHandle->GetJSHClass()); in RegisterOnProtoChain()

12