Home
last modified time | relevance | path

Searched refs:edge (Results 1 - 19 of 19) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dstate_split_linearizer.cpp234 auto &edge = map_.GetEdge(curRegion->preds_[0], curRegion); in TryLoadDependStart() local
235 ASSERT(edge.dependOut != Circuit::NullGate()); in TryLoadDependStart()
236 replacement_.SetDepend(edge.dependOut); in TryLoadDependStart()
237 frameState_ = edge.frameStateOut; in TryLoadDependStart()
264 auto &edge = map_.GetEdge(pred, curRegion); in ConnectStateDepend() local
266 if (edge.stateOut == Circuit::NullGate()) { in ConnectStateDepend()
267 ASSERT(edge.dependOut == Circuit::NullGate()); in ConnectStateDepend()
270 ConnectEdge(edge, currentState, stateInput, i); in ConnectStateDepend()
275 void ConnectEdge(RegionEdge& edge, GateRef currentState, GateRef stateInput, size_t i) in ConnectEdge() argument
277 if (edge in ConnectEdge()
296 auto &edge = map_.GetEdge(regionEdge.from, regionEdge.to); ConnectPendingRegionEdges() local
310 auto &edge = map_.GetEdge(curRegion, succ); StoreStateDepend() local
[all...]
H A Dgraph_editor.cpp62 Edge& edge = workList_.back(); in RemoveGate() local
63 GateRef gate = edge.GetGate(); in RemoveGate()
75 PropagateMerge(edge); in RemoveGate()
78 PropagateGate(edge); in RemoveGate()
84 void GraphEditor::PropagateGate(const Edge& edge) in PropagateGate() argument
86 GateRef gate = edge.GetGate(); in PropagateGate()
88 if (acc_.IsStateIn(gate, edge.GetIndex())) { in PropagateGate()
95 if (acc_.IsValueIn(gate, edge.GetIndex())) { in PropagateGate()
101 void GraphEditor::PropagateMerge(const Edge& edge) in PropagateMerge() argument
103 GateRef gate = edge in PropagateMerge()
[all...]
H A Dgraph_editor.h38 void PropagateGate(const Edge& edge);
39 void PropagateMerge(const Edge& edge);
H A Dgraph_linearizer.cpp641 void VisitUpperBoundGate(Edge edge) in VisitUpperBoundGate() argument
643 GateRef succGate = edge.GetGate(); in VisitUpperBoundGate()
649 auto curGate = acc_.GetIn(succGate, edge.GetIndex()); in VisitUpperBoundGate()
674 void VisitPreparedGate(Edge edge) in VisitPreparedGate() argument
676 auto curGate = edge.GetGate(); in VisitPreparedGate()
677 auto prevGate = acc_.GetIn(curGate, edge.GetIndex()); in VisitPreparedGate()
/arkcompiler/runtime_core/static_core/runtime/
H A Dlock_order_graph.h50 for (auto const &edge : edges_) { in LockOrderGraph()
51 if (nodes_[edge.second]) { in LockOrderGraph()
52 LOG(DEBUG, RUNTIME) << "Edge in LockOrderGraph: " << edge.first << " -> " << edge.second << " [T]"; in LockOrderGraph()
54 LOG(DEBUG, RUNTIME) << "Edge in LockOrderGraph: " << edge.first << " -> " << edge.second; in LockOrderGraph()
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/
H A Dalias_analysis.cpp48 * variable is a node in the graph, and an edge from Q to P is added for each
52 * edges, such that an edge from Q to P causes Sol(P) <- Sol(P) union Sol(Q).
241 auto edge = sorted.begin(); in DumpChains() local
242 if (edge != sorted.end()) { in DumpChains()
243 edge->Dump(out); in DumpChains()
244 while (++edge != sorted.end()) { in DumpChains()
246 edge->Dump(out); in DumpChains()
507 void AliasAnalysis::SolveConstraintsMainLoop(Pointer &ref, Pointer &edge, bool &added, PointerSet &sols) in SolveConstraintsMainLoop() argument
511 if (edge.GetType() == OBJECT_FIELD && ref.GetBase() == edge in SolveConstraintsMainLoop()
[all...]
H A Dloop_analyzer.cpp79 * While doing DFS, if we encounter a block with a gray mark, then edge to this block is back edge.
97 * Append information about its header, back edge and check if this loop is irreducible.
98 * Loop is irreducible when its header doesn't dominate back edge.
160 auto edge = header->GetPredBlockByIndex(predIdx); in UpdateControlFlowWithPreHeader() local
161 edge->ReplaceSucc(header, preHeader); in UpdateControlFlowWithPreHeader()
162 header->RemovePred(edge); in UpdateControlFlowWithPreHeader()
167 auto edge = header->GetPredBlockByIndex(fwEdgesIndexes[0]); in UpdateControlFlowWithPreHeader() local
168 edge->ReplaceSucc(header, preHeader); in UpdateControlFlowWithPreHeader()
169 header->ReplacePred(edge, preHeade in UpdateControlFlowWithPreHeader()
[all...]
H A Dalias_analysis.h428 void SolveConstraintsMainLoop(Pointer &ref, Pointer &edge, bool &added, PointerSet &sols);
/arkcompiler/runtime_core/bytecode_optimizer/constant_propagation/
H A Dconstant_propagation.h56 uint32_t operator()(Edge const &edge) const in operator ()()
59 uint32_t lhash = block_hash(edge.first); in operator ()()
60 uint32_t rhash = block_hash(edge.second); in operator ()()
H A Dconstant_propagation.cpp72 auto &edge = flow_edges_.front(); in RunFlowEdge() local
75 if (executable_flag_.count(edge) != 0) { in RunFlowEdge()
78 executable_flag_.insert(edge); in RunFlowEdge()
79 auto dest = edge.second; in RunFlowEdge()
379 auto edge = Edge(src, dst); in AddUntraversedFlowEdges() local
380 if (executable_flag_.count(edge) != 0) { in AddUntraversedFlowEdges()
383 flow_edges_.push(edge); in AddUntraversedFlowEdges()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
H A Dheap_snapshot_json_serializer.cpp173 for (auto *edge : *edges) { in SerializeEdges()
174 StringId nameOrIndex = edge->GetType() == EdgeType::ELEMENT ? in SerializeEdges()
175 edge->GetIndex() : stringTable->GetStringId(edge->GetName()); in SerializeEdges()
179 writer->WriteNumber(static_cast<int>(edge->GetType())); // 1. in SerializeEdges()
185 writer->WriteNumber(edge->GetTo()->GetIndex() * Node::NODE_FIELD_COUNT); // 3. in SerializeEdges()
188 writer->WriteNumber(edge->GetTo()->GetIndex() * Node::NODE_FIELD_COUNT); // 3. in SerializeEdges()
H A Dheap_snapshot.cpp50 auto edge = chunk->New<Edge>(type, from, to, name); in NewEdge() local
51 if (UNLIKELY(edge == nullptr)) { in NewEdge()
55 return edge; in NewEdge()
60 auto edge = chunk->New<Edge>(type, from, to, index); in NewEdge() local
61 if (UNLIKELY(edge == nullptr)) { in NewEdge()
65 return edge; in NewEdge()
73 for (Edge *edge : edges_) { in ~HeapSnapshot()
74 chunk_->Delete(edge); in ~HeapSnapshot()
1072 Edge *edge = (it.type_ == Reference::ReferenceType::ELEMENT) ? in FillEdges() local
1076 InsertEdgeUnique(edge); in FillEdges()
1123 Edge *edge = (it.type_ == Reference::ReferenceType::ELEMENT) ? FillEdgesForBinMod() local
1141 Edge *edge = Edge::NewEdge(chunk_, AddSyntheticRootForBinMod() local
1252 InsertEdgeUnique(Edge *edge) InsertEdgeUnique() argument
1323 InsertEdgeAt(size_t pos, Edge *edge) InsertEdgeAt() argument
[all...]
H A Dheap_snapshot.h542 Edge *InsertEdgeUnique(Edge *edge);
547 Edge *InsertEdgeAt(size_t pos, Edge *edge);
/arkcompiler/runtime_core/compiler/optimizer/analysis/
H A Dloop_analyzer.cpp79 * While doing DFS, if we encounter a block with a gray mark, then edge to this block is back edge.
97 * Append information about its header, back edge and check if this loop is irreducible.
98 * Loop is irreducible when its header doesn't dominate back edge.
160 auto edge = header->GetPredBlockByIndex(pred_idx); in UpdateControlFlowWithPreHeader() local
161 edge->ReplaceSucc(header, pre_header); in UpdateControlFlowWithPreHeader()
162 header->RemovePred(edge); in UpdateControlFlowWithPreHeader()
167 auto edge = header->GetPredBlockByIndex(fw_edges_indexes[0]); in UpdateControlFlowWithPreHeader() local
168 edge->ReplaceSucc(header, pre_header); in UpdateControlFlowWithPreHeader()
169 header->ReplacePred(edge, pre_heade in UpdateControlFlowWithPreHeader()
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
H A Dloop_unroll.cpp108 // Unroll loop without side-exits and fix compare in the pre-header and back-edge in TransformLoopImpl()
120 // Unroll loop without side-exits and fix compare in the pre-header and back-edge in TransformLoopImpl()
257 void NormalizeControlFlow(BasicBlock *edge, const BasicBlock *loopHeader) in NormalizeControlFlow() argument
259 auto ifImm = edge->GetLastInst()->CastToIfImm(); in NormalizeControlFlow()
263 edge->SwapTrueFalseSuccessors<true>(); in NormalizeControlFlow()
267 auto newCmp = cmp->Clone(edge->GetGraph()); in NormalizeControlFlow()
272 if (edge->GetFalseSuccessor() == loopHeader) { in NormalizeControlFlow()
275 edge->SwapTrueFalseSuccessors<true>(); in NormalizeControlFlow()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
H A Dgraph_cloner.h191 for (auto edge : *blockEdges) { in CloneEdges()
192 cloneEdges->push_back(GetClone(edge)); in CloneEdges()
200 for (auto edge : *blockEdges) { in CloneEdges()
201 cloneEdges->push_back(GetClone(edge)); in CloneEdges()
/arkcompiler/runtime_core/compiler/optimizer/ir/
H A Dgraph_cloner.h317 for (auto edge : *block_edges) { in CloneEdges()
318 clone_edges->push_back(GetClone(edge)); in CloneEdges()
/arkcompiler/runtime_core/compiler/tools/
H A Ddraw_cfg.py138 dot.edge(str(block.id), str(succ))
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
H A Dcocos_worker_test.js20347 t.EDGE = "edge";
[all...]

Completed in 46 milliseconds