Home
last modified time | relevance | path

Searched refs:Arc (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/bolt/lib/Passes/
H A DPettisAndHansen.cpp26 using Arc = CallGraph::Arc; typedef
65 for (const Arc &Arc : Cg.arcs()) { in orderFuncs() local
66 if ((Arc.src() == C1head && Arc.dst() == C2head) || in orderFuncs()
67 (Arc.dst() == C1head && Arc.src() == C2head)) in orderFuncs()
69 else if ((Arc.src() == C1head && Arc.dst() == C2tail) || in orderFuncs()
70 (Arc.dst() == C1head && Arc.src() == C2tail)) in orderFuncs()
72 else if ((Arc.src() == C1tail && Arc.dst() == C2head) || in orderFuncs()
73 (Arc.dst() == C1tail && Arc.src() == C2head)) in orderFuncs()
75 else if ((Arc.src() == C1tail && Arc.dst() == C2tail) || in orderFuncs()
76 (Arc.dst() == C1tail && Arc.src() == C2tail)) in orderFuncs()
[all …]
H A DCallGraph.cpp67 int64_t CallGraph::Arc::Hash::operator()(const Arc &Arc) const { in operator ()()
70 return hashCombine(Hasher(Arc.src()), Arc.dst()); in operator ()()
72 return hash_int64_pair(int64_t(Arc.src()), int64_t(Arc.dst())); in operator ()()
82 const CallGraph::Arc &CallGraph::incArcWeight(NodeId Src, NodeId Dst, double W, in incArcWeight()
102 ArcIterator Arc = findArc(Caller, FuncId); in normalizeArcWeights() local
103 Arc->NormalizedWeight = Arc->weight() / Func.samples(); in normalizeArcWeights()
104 if (Arc->weight() > 0) in normalizeArcWeights()
105 Arc->AvgCallOffset /= Arc->weight(); in normalizeArcWeights()
106 assert(Arc->AvgCallOffset <= size(Caller) && in normalizeArcWeights()
117 ArcIterator Arc = findArc(Caller, FuncId); in adjustArcWeights() local
[all …]
H A DHFSortPlus.cpp71 using Arc = CallGraph::Arc; typedef
279 const Arc &Arc = *Cg.findArc(F, Succ); in initialize() local
290 const Arc &Arc = *Cg.findArc(F, Succ); in initialize() local
355 for (const Arc *Arc : Edge->Arcs) { in shortCalls() local
356 uint64_t SrcAddr = Addr[Arc->src()] + uint64_t(Arc->avgCallOffset()); in shortCalls()
367 for (const Arc *Arc : Edge->Arcs) { in shortCalls() local
372 SrcAddr = Addr[Arc->src()] + uint64_t(Arc->avgCallOffset()); in shortCalls()
376 Addr[Arc->src()] + uint64_t(Arc->avgCallOffset()) + ChainPred->Size; in shortCalls()
432 const Arc &Arc = *Cg.findArc(F, Succ); in runPassOne() local
456 llvm::sort(ArcsToMerge, [](const Arc *L, const Arc *R) { in runPassOne()
[all …]
H A DReorderFunctions.cpp113 using Arc = CallGraph::Arc; typedef
185 const Arc &Arc = *Cg.findArc(FuncId, Dst); in reorder() local
186 const auto D = std::abs(FuncAddr[Arc.dst()] - in reorder()
188 const double W = Arc.weight(); in reorder()
199 Dist += Arc.weight() * D; in reorder()
203 Arc.src(), in reorder()
204 FuncAddr[Arc.src()], in reorder()
205 Arc.avgCallOffset(), in reorder()
206 Arc.dst(), in reorder()
207 FuncAddr[Arc.dst()], in reorder()
[all …]
H A DHFSort.cpp31 using Arc = CallGraph::Arc; typedef
172 const Arc &Arc = *Cg.findArc(Src, Fid); in clusterize() local
174 Arc.normalizedWeight() > BestProb) { in clusterize()
175 BestPred = Arc.src(); in clusterize()
176 BestProb = Arc.normalizedWeight(); in clusterize()
/llvm-project-15.0.7/bolt/include/bolt/Passes/
H A DCallGraph.h48 class Arc {
51 int64_t operator()(const Arc &Arc) const;
54 Arc(NodeId S, NodeId D, double W = 0) : Src(S), Dst(D), Weight(W) {} in Src()
55 Arc(const Arc &) = delete;
57 friend bool operator==(const Arc &Lhs, const Arc &Rhs) {
76 using ArcsType = std::unordered_set<Arc, Arc::Hash>;
125 const Arc &incArcWeight(NodeId Src, NodeId Dst, double W = 1.0,
128 return Arcs.find(Arc(Src, Dst)); in findArc()
131 return Arcs.find(Arc(Src, Dst)); in findArc()
181 ArcConstIterator Arc = findArc(F, Dst); in printDot() local
[all …]
/llvm-project-15.0.7/llvm/unittests/IR/
H A DCFGBuilder.h55 struct Arc { struct
59 friend bool operator<(const Arc &LHS, const Arc &RHS) { argument
68 Arc Edge;
71 CFGBuilder(Function *F, const std::vector<Arc> &InitialArcs,
80 void buildCFG(const std::vector<Arc> &Arcs);
81 bool connect(const Arc &A);
82 bool disconnect(const Arc &A);
87 std::set<Arc> Arcs;
H A DCFGBuilder.cpp30 CFGBuilder::CFGBuilder(Function *F, const std::vector<Arc> &InitialArcs, in CFGBuilder()
97 bool CFGBuilder::connect(const Arc &A) { in connect()
108 bool CFGBuilder::disconnect(const Arc &A) { in disconnect()
121 void CFGBuilder::buildCFG(const std::vector<Arc> &NewArcs) { in buildCFG()
167 std::vector<CFGBuilder::Arc> Arcs = {{"entry", "a"}, {"a", "b"}, {"a", "c"}, in TEST()
214 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
248 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
H A DDominatorTreeBatchUpdatesTest.cpp194 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
224 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
260 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
290 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
323 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
H A DDominatorTreeTest.cpp711 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
739 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
765 std::vector<CFGBuilder::Arc> Arcs = {{"1", "2"}, {"2", "3"}, {"3", "4"}, in TEST()
793 std::vector<CFGBuilder::Arc> Arcs = {{"1", "2"}, {"2", "3"}, {"3", "4"}}; in TEST()
816 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
843 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
875 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
901 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
926 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
961 std::vector<CFGBuilder::Arc> Arcs = { in TEST()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A Dllvm-readobj.cpp512 static void dumpArchive(const Archive *Arc, ScopedPrinter &Writer) { in dumpArchive() argument
514 for (auto &Child : Arc->children(Err)) { in dumpArchive()
518 reportError(std::move(E), Arc->getFileName()); in dumpArchive()
524 dumpObject(*Obj, Writer, Arc); in dumpArchive()
531 Arc->getFileName()); in dumpArchive()
534 reportError(std::move(Err), Arc->getFileName()); in dumpArchive()
583 if (Archive *Arc = dyn_cast<Archive>(Bin.get())) in dumpInput() local
584 dumpArchive(Arc, Writer); in dumpInput()
/llvm-project-15.0.7/llvm/tools/llvm-cxxdump/
H A Dllvm-cxxdump.cpp500 static void dumpArchive(const Archive *Arc) { in dumpArchive() argument
502 for (auto &ArcC : Arc->children(Err)) { in dumpArchive()
511 reportError(Arc->getFileName(), Buf); in dumpArchive()
520 reportError(Arc->getFileName(), cxxdump_error::unrecognized_file_format); in dumpArchive()
536 if (Archive *Arc = dyn_cast<Archive>(&Binary)) in dumpInput() local
537 dumpArchive(Arc); in dumpInput()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVGLOps.td294 let summary = "Arc Sine of operand in radians";
328 let summary = "Arc Cosine of operand in radians";
362 let summary = "Arc Tangent of operand in radians";
/llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/
H A Dregalloc-fast-debug-spill.ll162 …ucture_type, name: "Key<core::cell::Cell<core::option::Option<alloc::sync::Arc<std::sync::mutex::M…