Home
last modified time | relevance | path

Searched refs:CallGraphNode (Results 1 – 15 of 15) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DCallGraph.h62 class CallGraphNode; variable
83 CallGraphNode *ExternalCallingNode;
129 CallGraphNode *getCallsExternalNode() const { in getCallsExternalNode()
135 void ReplaceExternalCallEdge(CallGraphNode *Old, CallGraphNode *New);
166 class CallGraphNode {
186 CallGraphNode(const CallGraphNode &) = delete;
187 CallGraphNode &operator=(const CallGraphNode &) = delete;
189 ~CallGraphNode() { in ~CallGraphNode()
211 CallGraphNode *operator[](unsigned i) const {
433 using NodeRef = CallGraphNode *;
[all …]
H A DCallGraphSCCPass.h30 class CallGraphNode; variable
90 std::vector<CallGraphNode *> Nodes;
95 void initialize(ArrayRef<CallGraphNode *> NewNodes) { in initialize()
104 void ReplaceNode(CallGraphNode *Old, CallGraphNode *New);
108 void DeleteNode(CallGraphNode *Old);
110 using iterator = std::vector<CallGraphNode *>::const_iterator;
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/
H A DCallGraph.h32 class CallGraphNode; variable
43 friend class CallGraphNode; variable
52 CallGraphNode *Root;
79 CallGraphNode *getOrInsertNode(Decl *);
147 class CallGraphNode {
150 CallGraphNode *Callee;
171 CallGraphNode(Decl *D) : FD(D) {} in CallGraphNode() function
244 using NodeType = clang::CallGraphNode;
245 using NodeRef = clang::CallGraphNode *;
269 static clang::CallGraphNode *
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DCallGraph.cpp76 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph()
119 SmallVector<CallGraphNode *, 16> Nodes; in print()
125 llvm::sort(Nodes, [](CallGraphNode *LHS, CallGraphNode *RHS) { in print()
133 for (CallGraphNode *CN : Nodes) in print()
184 void CallGraphNode::print(raw_ostream &OS) const { in print()
229 void CallGraphNode::removeAnyCallEdgeTo(CallGraphNode *Callee) { in removeAnyCallEdgeTo()
241 void CallGraphNode::removeOneAbstractEdgeTo(CallGraphNode *Callee) { in removeOneAbstractEdgeTo()
269 SmallVector<CallGraphNode *, 4u> OldCBs; in replaceCallEdge()
270 SmallVector<CallGraphNode *, 4u> NewCBs; in replaceCallEdge()
279 CallGraphNode *OldNode = OldCBs[N]; in replaceCallEdge()
[all …]
H A DCallGraphSCCPass.cpp175 for (CallGraphNode *CGN : CurSCC) { in RunPassOnSCC()
207 DenseMap<Value *, CallGraphNode *> Calls; in RefreshCallGraph()
211 for (CallGraphNode *CGN in RefreshCallGraph()
221 CallGraphNode *CGN = *SCCIdx; in RefreshCallGraph()
232 CallGraphNode::iterator CGNEnd = CGN->end(); in RefreshCallGraph()
347 CallGraphNode *CalleeNode; in RefreshCallGraph()
371 CallGraphNode *CalleeNode; in RefreshCallGraph()
412 for (CallGraphNode *CGN : CurSCC) in RefreshCallGraph()
585 void CallGraphSCC::ReplaceNode(CallGraphNode *Old, CallGraphNode *New) { in ReplaceNode()
695 for (CallGraphNode *CGN : SCC) { in runOnSCC()
[all …]
H A DCallPrinter.cpp97 CallGraphNode *Node = I.second.get(); in removeParallelEdges()
117 : public GraphTraits<const CallGraphNode *> {
123 typedef std::pair<const Function *const, std::unique_ptr<CallGraphNode>>
125 static const CallGraphNode *CGGetValuePtr(const PairTy &P) { in CGGetValuePtr()
151 static bool isNodeHidden(const CallGraphNode *Node, in isNodeHidden()
158 std::string getNodeLabel(const CallGraphNode *Node, in getNodeLabel()
169 static const CallGraphNode *CGGetValuePtr(CallGraphNode::CallRecord P) { in CGGetValuePtr()
174 typedef mapped_iterator<CallGraphNode::const_iterator,
178 std::string getEdgeAttributes(const CallGraphNode *Node, nodes_iterator I, in getEdgeAttributes()
199 std::string getNodeAttributes(const CallGraphNode *Node, in getNodeAttributes()
H A DGlobalsModRef.cpp473 const std::vector<CallGraphNode *> &SCC = *I; in CollectSCCMembership()
491 const std::vector<CallGraphNode *> &SCC = *I; in AnalyzeCallGraph()
552 for (CallGraphNode::iterator CI = SCC[i]->begin(), E = SCC[i]->end(); in AnalyzeCallGraph()
561 CallGraphNode *CalleeNode = CG[Callee]; in AnalyzeCallGraph()
H A DMLInlineAdvisor.cpp143 const std::vector<CallGraphNode *> &CGNodes = *I; in MLInlineAdvisor()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DCallGraph.cpp48 CallGraphNode *CallerNode;
71 CallGraphNode *CalleeNode = G->getOrInsertNode(D); in addCalledDecl()
182 CallGraphNode *Node = getOrInsertNode(D); in addNodeForDecl()
197 CallGraphNode *CallGraph::getNode(const Decl *F) const { in getNode()
203 CallGraphNode *CallGraph::getOrInsertNode(Decl *F) { in getOrInsertNode()
207 std::unique_ptr<CallGraphNode> &Node = FunctionMap[F]; in getOrInsertNode()
211 Node = std::make_unique<CallGraphNode>(F); in getOrInsertNode()
226 const CallGraphNode *N = *I; in print()
235 for (CallGraphNode::const_iterator CI = N->begin(), in print()
254 void CallGraphNode::print(raw_ostream &os) const { in print()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallGraphUpdater.cpp36 CallGraphNode *DeadCGN = (*CG)[DeadFn]; in finalize()
44 CallGraphNode *DeadCGN = CG->getOrInsertFunction(DeadFn); in finalize()
91 CallGraphNode *OldCGN = CG->getOrInsertFunction(&Fn); in reanalyzeFunction()
119 CallGraphNode *DeadCGN = (*CG)[&DeadFn]; in removeFunction()
132 CallGraphNode *OldCGN = (*CG)[&OldFn]; in replaceFunctionWith()
133 CallGraphNode *NewCGN = CG->getOrInsertFunction(&NewFn); in replaceFunctionWith()
153 CallGraphNode *NewCalleeNode = in replaceCallSite()
155 CallGraphNode *CallerNode = (*CG)[Caller]; in replaceCallSite()
156 if (llvm::none_of(*CallerNode, [&OldCS](const CallGraphNode::CallRecord &CR) { in replaceCallSite()
170 CallGraphNode *CallerNode = (*CG)[Caller]; in removeCallSite()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSyntheticCountsPropagation.cpp102 auto GetCallSiteProfCount = [&](const CallGraphNode *, in run()
103 const CallGraphNode::CallRecord &Edge) { in run()
124 &CG, GetCallSiteProfCount, [&](const CallGraphNode *N, Scaled64 New) { in run() argument
H A DFunctionAttrs.cpp1930 for (CallGraphNode *I : SCC) { in runImpl()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAnnotateKernelFeatures.cpp115 for (CallGraphNode *I : SCC) { in runOnSCC()
H A DAMDGPULowerModuleLDSPass.cpp393 for (const CallGraphNode::CallRecord &R : *CG[F]) { in getTransitiveUsesOfLDS()
431 for (const CallGraphNode::CallRecord &R : *CG[F]) { in getTransitiveUsesOfLDS()
451 for (const CallGraphNode::CallRecord &R : *CG[&Func]) { in getTransitiveUsesOfLDS()
H A DAMDGPUPerfHintAnalysis.cpp401 for (CallGraphNode *I : SCC) { in runOnSCC()