Home
last modified time | relevance | path

Searched refs:predicate (Results 1 - 8 of 8) sorted by relevance

/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
H A Dstring_builder_utils.cpp139 bool HasInput(Inst *inst, const FindInputPredicate &predicate) in HasInput() argument
141 // Check if any instruction input satisfy predicate in HasInput()
143 auto found = std::find_if(inst->GetInputs().begin(), inst->GetInputs().end(), predicate); in HasInput()
147 bool HasInputPhiRecursively(Inst *inst, Marker visited, const FindInputPredicate &predicate) in HasInputPhiRecursively() argument
149 // Check if any instruction input satisfy predicate in HasInputPhiRecursively()
152 if (HasInput(inst, predicate)) { in HasInputPhiRecursively()
166 if (HasInputPhiRecursively(inputInst, visited, predicate)) { in HasInputPhiRecursively()
190 bool HasUser(Inst *inst, const FindUserPredicate &predicate) in HasUser() argument
192 // Check if instruction is used in a context defined by predicate in HasUser()
194 auto found = std::find_if(inst->GetUsers().begin(), inst->GetUsers().end(), predicate); in HasUser()
198 HasUserPhiRecursively(Inst *inst, Marker visited, const FindUserPredicate &predicate) HasUserPhiRecursively() argument
225 CountUsers(Inst *inst, const FindUserPredicate &predicate) CountUsers() argument
[all...]
H A Dstring_builder_utils.h38 bool HasInput(Inst *inst, const FindInputPredicate &predicate);
39 bool HasInputPhiRecursively(Inst *inst, Marker visited, const FindInputPredicate &predicate);
42 bool HasUser(Inst *inst, const FindUserPredicate &predicate);
43 bool HasUserPhiRecursively(Inst *inst, Marker visited, const FindUserPredicate &predicate);
44 size_t CountUsers(Inst *inst, const FindUserPredicate &predicate);
/arkcompiler/toolchain/tooling/test/utils/
H A Dtest_util.h54 auto predicate = [&location]() REQUIRES(eventMutex_) { return lastEventLocation_ == location; }; in WaitForBreakpoint() local
60 WaitForEvent(DebugEvent::BREAKPOINT, predicate, onSuccess); in WaitForBreakpoint()
65 auto predicate = []() REQUIRES(eventMutex_) { return lastEvent_ == DebugEvent::DROPFRAME; }; in WaitForDropframe() local
66 return WaitForEvent(DebugEvent::DROPFRAME, predicate, [] {}); in WaitForDropframe()
71 auto predicate = []() REQUIRES(eventMutex_) { return lastEvent_ == DebugEvent::CHECK_COMPLETE; }; in WaitForCheckComplete() local
72 return WaitForEvent(DebugEvent::CHECK_COMPLETE, predicate, [] {}); in WaitForCheckComplete()
85 auto predicate = [&location]() REQUIRES(eventMutex_) { return lastEventLocation_ == location; }; in WaitForStepComplete() local
91 WaitForEvent(DebugEvent::STEP_COMPLETE, predicate, onSuccess); in WaitForStepComplete()
96 auto predicate = []() REQUIRES(eventMutex_) { return lastEvent_ == DebugEvent::EXCEPTION; }; in WaitForException() local
97 return WaitForEvent(DebugEvent::EXCEPTION, predicate, [] {}); in WaitForException()
110 auto predicate = []() REQUIRES(eventMutex_) { return lastEvent_ == DebugEvent::LOAD_MODULE; }; WaitForLoadModule() local
198 WaitForEvent(DebugEvent event, Predicate predicate, OnSuccessAction action) WaitForEvent() argument
[all...]
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/ark_frame_lowering/
H A Dframe_builder.cpp65 void RemoveInstsIf(llvm::MachineBasicBlock &mblock, const std::function<bool(llvm::MachineInstr &)> &predicate) in RemoveInstsIf() argument
69 if (predicate(inst)) { in RemoveInstsIf()
85 auto predicate = [](llvm::MachineInstr &inst) -> bool { in RemovePrologue() local
89 RemoveInstsIf(mblock, predicate); in RemovePrologue()
96 auto predicate = [&isEpilogue](llvm::MachineInstr &inst) -> bool { in RemoveEpilogue() local
103 RemoveInstsIf(mblock, predicate); in RemoveEpilogue()
187 auto predicate = [](llvm::MachineInstr &inst) -> bool { in RemovePrologue() local
191 RemoveInstsIf(mblock, predicate); in RemovePrologue()
198 auto predicate = [&isEpilogue](llvm::MachineInstr &inst) -> bool { in RemoveEpilogue() local
205 RemoveInstsIf(mblock, predicate); in RemoveEpilogue()
[all...]
/arkcompiler/runtime_core/static_core/runtime/tests/tooling/
H A Dtest_util.h71 auto predicate = [&location]() REQUIRES(eventMutex_) { return lastEventLocation_ == location; }; in WaitForBreakpoint() local
79 WaitForEvent(DebugEvent::BREAKPOINT, predicate, onSuccess); in WaitForBreakpoint()
193 static bool WaitForEvent(DebugEvent event, Predicate predicate, OnSuccessAction action) in WaitForEvent() argument
196 while (!predicate()) { in WaitForEvent()
/arkcompiler/ets_runtime/ecmascript/
H A Djs_stable_array.h118 static JSTaggedValue FindRawData(IndexOfContext &ctx, Predicate &&predicate);
120 static JSTaggedValue FindLastRawData(IndexOfContext &ctx, Predicate &&predicate);
122 static JSTaggedValue FindRawDataDispatch(IndexOfType type, IndexOfContext &ctx, Predicate &&predicate);
H A Djs_stable_array.cpp803 JSTaggedValue JSStableArray::FindRawData(IndexOfContext &ctx, Predicate &&predicate) in FindRawData() argument
829 if (UNLIKELY(std::invoke(predicate, convertedCur.GetRawData()))) { in FindRawData()
847 JSTaggedValue JSStableArray::FindLastRawData(IndexOfContext &ctx, Predicate &&predicate) in FindLastRawData() argument
874 if (UNLIKELY(std::invoke(predicate, convertedCur.GetRawData()))) { in FindLastRawData()
892 JSTaggedValue JSStableArray::FindRawDataDispatch(IndexOfType type, IndexOfContext &ctx, Predicate &&predicate) in FindRawDataDispatch() argument
896 return FindRawData(ctx, std::forward<Predicate>(predicate)); in FindRawDataDispatch()
898 return FindLastRawData(ctx, std::forward<Predicate>(predicate)); in FindRawDataDispatch()
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/
H A Dllvm_optimizer.cpp110 auto predicate = [](char sym) { return std::isspace(sym); }; in PreprocessPipelineFile() local
111 rawData.erase(std::remove_if(rawData.begin(), rawData.end(), predicate), rawData.end()); in PreprocessPipelineFile()

Completed in 6 milliseconds