Home
last modified time | relevance | path

Searched refs:CG (Results 1 – 25 of 105) sorted by relevance

12345

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DCallGraphUpdater.cpp29 if (CG) { in finalize()
34 CallGraphNode *DeadCGN = (*CG)[DeadFn]; in finalize()
36 CG->getExternalCallingNode()->removeAnyCallEdgeTo(DeadCGN); in finalize()
42 CallGraphNode *DeadCGN = CG->getOrInsertFunction(DeadFn); in finalize()
45 delete CG->removeFunctionFromModule(DeadCGN); in finalize()
88 if (CG) { in reanalyzeFunction()
89 CallGraphNode *OldCGN = CG->getOrInsertFunction(&Fn); in reanalyzeFunction()
91 CG->populateCallGraphNode(OldCGN); in reanalyzeFunction()
101 if (CG) in registerOutlinedFunction()
102 CG->addToCallGraph(&NewFn); in registerOutlinedFunction()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DCallGraphSCCPass.cpp73 bool doInitialization(CallGraph &CG);
74 bool doFinalization(CallGraph &CG);
108 bool RunAllPassesOnSCC(CallGraphSCC &CurSCC, CallGraph &CG,
112 CallGraph &CG, bool &CallGraphUpToDate,
114 bool RefreshCallGraph(const CallGraphSCC &CurSCC, CallGraph &CG,
123 CallGraph &CG, bool &CallGraphUpToDate, in RunPassOnSCC() argument
127 Module &M = CG.getModule(); in RunPassOnSCC()
132 DevirtualizedCall |= RefreshCallGraph(CurSCC, CG, false); in RunPassOnSCC()
164 RefreshCallGraph(CurSCC, CG, true); in RunPassOnSCC()
205 bool CGPassManager::RefreshCallGraph(const CallGraphSCC &CurSCC, CallGraph &CG, in RefreshCallGraph() argument
[all …]
H A DCallPrinter.cpp53 CallGraph *CG; member in llvm::CallGraphDOTInfo
60 CallGraphDOTInfo(Module *M, CallGraph *CG, in CallGraphDOTInfo() argument
62 : M(M), CG(CG), LookupBFI(LookupBFI) { in CallGraphDOTInfo()
83 CallGraph *getCallGraph() const { return CG; } in getCallGraph()
91 for (auto &I : (*CG)) { in removeParallelEdges()
237 CallGraph CG(M); in runOnModule() local
238 CallGraphDOTInfo CFGInfo(&M, &CG, LookupBFI); in runOnModule()
279 CallGraph CG(M); in runOnModule() local
280 CallGraphDOTInfo CFGInfo(&M, &CG, LookupBFI); in runOnModule()
H A DCGSCCPassManager.cpp152 LazyCallGraph &CG = AM.getResult<LazyCallGraphAnalysis>(M); in run() local
181 CG.buildRefSCCs(); in run()
182 for (auto RCI = CG.postorder_ref_scc_begin(), in run()
183 RCE = CG.postorder_ref_scc_end(); in run()
248 CGAM.getResult<FunctionAnalysisManagerCGSCCProxy>(*C, CG).updateFAM( in run()
288 PassPA = Pass->run(*C, CGAM, CG, UR); in run()
303 CGAM.getResult<FunctionAnalysisManagerCGSCCProxy>(*C, CG).updateFAM( in run()
370 LazyCallGraph &CG, in run() argument
374 AM.getResult<PassInstrumentationAnalysis>(InitialC, CG); in run()
421 PreservedAnalyses PassPA = Pass->run(*C, AM, CG, UR); in run()
[all …]
H A DCallGraph.cpp50 CallsExternalNode->CG = this; in CallGraph()
52 P.second->CG = this; in CallGraph()
224 removeOneAbstractEdgeTo(CG->getOrInsertFunction(CB)); in removeCallEdgeFor()
277 OldCBs.push_back(CG->getOrInsertFunction(CB)); in replaceCallEdge()
280 NewCBs.push_back(CG->getOrInsertFunction(CB)); in replaceCallEdge()
H A DSyntheticCountsUtils.cpp86 void SyntheticCountsUtils<CallGraphType>::propagate(const CallGraphType &CG, in propagate() argument
92 for (auto I = scc_begin(CG); !I.isAtEnd(); ++I) in propagate()
H A DGlobalsModRef.cpp472 void GlobalsAAResult::CollectSCCMembership(CallGraph &CG) { in CollectSCCMembership() argument
476 for (scc_iterator<CallGraph *> I = scc_begin(&CG); !I.isAtEnd(); ++I) { in CollectSCCMembership()
491 void GlobalsAAResult::AnalyzeCallGraph(CallGraph &CG, Module &M) { in AnalyzeCallGraph() argument
494 for (scc_iterator<CallGraph *> I = scc_begin(&CG); !I.isAtEnd(); ++I) { in AnalyzeCallGraph()
553 CallGraphNode *CalleeNode = CG[Callee]; in AnalyzeCallGraph()
986 CallGraph &CG) { in analyzeModule() argument
990 Result.CollectSCCMembership(CG); in analyzeModule()
996 Result.AnalyzeCallGraph(CG, M); in analyzeModule()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DInliner.cpp285 bool LegacyInlinerBase::doInitialization(CallGraph &CG) { in doInitialization() argument
287 ImportedFunctionsStats.setModuleInfo(CG.getModule()); in doInitialization()
298 inlineCallsImpl(CallGraphSCC &SCC, CallGraph &CG, in inlineCallsImpl() argument
377 InlineFunctionInfo InlineInfo(&CG, GetAssumptionCache, PSI); in inlineCallsImpl()
434 CG[Caller]->removeCallEdgeFor(CB); in inlineCallsImpl()
500 CG[Callee]->getNumReferences() == 0) { in inlineCallsImpl()
503 CallGraphNode *CalleeNode = CG[Callee]; in inlineCallsImpl()
509 delete CG.removeFunctionFromModule(CalleeNode); in inlineCallsImpl()
534 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in inlineCalls() local
544 SCC, CG, GetAssumptionCache, PSI, GetTLI, InsertLifetime, in inlineCalls()
[all …]
H A DInternalize.cpp150 bool InternalizePass::internalizeModule(Module &M, CallGraph *CG) { in internalizeModule() argument
152 CallGraphNode *ExternalNode = CG ? CG->getExternalCallingNode() : nullptr; in internalizeModule()
189 ExternalNode->removeOneAbstractEdgeTo((*CG)[&I]); in internalizeModule()
269 CallGraph *CG = CGPass ? &CGPass->getCallGraph() : nullptr; in runOnModule() local
270 return internalizeModule(M, MustPreserveGV, CG); in runOnModule()
H A DArgumentPromotion.cpp1014 LazyCallGraph &CG, in run() argument
1026 AM.getResult<FunctionAnalysisManagerCGSCCProxy>(C, CG).getManager(); in run()
1085 bool doInitialization(CallGraph &CG) override;
1115 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnSCC() local
1133 CG.getOrInsertFunction(NewCS.getCalledFunction()); in runOnSCC()
1134 CallGraphNode *CallerNode = CG[Caller]; in runOnSCC()
1146 CallGraphNode *NewNode = CG.getOrInsertFunction(NewF); in runOnSCC()
1149 delete CG.removeFunctionFromModule(OldNode); in runOnSCC()
1164 bool ArgPromotion::doInitialization(CallGraph &CG) { in doInitialization() argument
1165 return CallGraphSCCPass::doInitialization(CG); in doInitialization()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Analysis/
H A DCallGraph.h278 static nodes_iterator nodes_begin(clang::CallGraph *CG) {
279 return nodes_iterator(CG->begin(), &CGGetValue);
282 static nodes_iterator nodes_end (clang::CallGraph *CG) {
283 return nodes_iterator(CG->end(), &CGGetValue);
286 static unsigned size(clang::CallGraph *CG) { return CG->size(); }
304 static nodes_iterator nodes_begin(const clang::CallGraph *CG) {
305 return nodes_iterator(CG->begin(), &CGGetValue);
308 static nodes_iterator nodes_end(const clang::CallGraph *CG) {
309 return nodes_iterator(CG->end(), &CGGetValue);
312 static unsigned size(const clang::CallGraph *CG) { return CG->size(); }
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DCallGraph.h185 inline CallGraphNode(CallGraph *CG, Function *F) : CG(CG), F(F) {} in CallGraphNode() argument
284 CallGraph *CG; variable
484 static nodes_iterator nodes_begin(CallGraph *CG) {
485 return nodes_iterator(CG->begin(), &CGGetValuePtr);
488 static nodes_iterator nodes_end(CallGraph *CG) {
489 return nodes_iterator(CG->end(), &CGGetValuePtr);
511 static nodes_iterator nodes_begin(const CallGraph *CG) {
512 return nodes_iterator(CG->begin(), &CGGetValuePtr);
515 static nodes_iterator nodes_end(const CallGraph *CG) {
516 return nodes_iterator(CG->end(), &CGGetValuePtr);
H A DCallGraphSCCPass.h48 virtual bool doInitialization(CallGraph &CG) { in doInitialization() argument
63 virtual bool doFinalization(CallGraph &CG) { in doFinalization() argument
88 const CallGraph &CG; // The call graph for this SCC. variable
93 CallGraphSCC(CallGraph &cg, void *context) : CG(cg), Context(context) {} in CallGraphSCC()
115 const CallGraph &getCallGraph() { return CG; } in getCallGraph()
H A DGlobalsModRef.h92 CallGraph &CG);
118 void AnalyzeCallGraph(CallGraph &CG, Module &M);
124 void CollectSCCMembership(CallGraph &CG);
H A DCGSCCPassManager.h160 LazyCallGraph &CG, CGSCCUpdateResult &) {
161 (void)AM.template getResult<AnalysisT>(C, CG);
482 LazyCallGraph &CG, CGSCCUpdateResult &UR);
529 LazyCallGraph &CG, CGSCCUpdateResult &UR);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp169 CallGraph *CG) { in maybeFreeRetconStorage() argument
175 Shape.emitDealloc(Builder, FramePtr, CG); in maybeFreeRetconStorage()
226 bool InResume, CallGraph *CG) { in replaceFallthroughCoroEnd() argument
252 maybeFreeRetconStorage(Builder, Shape, FramePtr, CG); in replaceFallthroughCoroEnd()
259 maybeFreeRetconStorage(Builder, Shape, FramePtr, CG); in replaceFallthroughCoroEnd()
284 CallGraph *CG) { in replaceUnwindCoroEnd() argument
299 maybeFreeRetconStorage(Builder, Shape, FramePtr, CG); in replaceUnwindCoroEnd()
313 Value *FramePtr, bool InResume, CallGraph *CG) { in replaceCoroEnd() argument
315 replaceUnwindCoroEnd(End, Shape, FramePtr, InResume, CG); in replaceCoroEnd()
317 replaceFallthroughCoroEnd(End, Shape, FramePtr, InResume, CG); in replaceCoroEnd()
[all …]
H A DCoroutines.cpp196 static void buildCGN(CallGraph &CG, CallGraphNode *Node) { in buildCGN() argument
207 Node->addCalledFunction(Call, CG.getCallsExternalNode()); in buildCGN()
209 Node->addCalledFunction(Call, CG.getOrInsertFunction(Callee)); in buildCGN()
216 CallGraph &CG, CallGraphSCC &SCC) { in updateCallGraph() argument
218 auto *ParentNode = CG[&ParentFunc]; in updateCallGraph()
220 buildCGN(CG, ParentNode); in updateCallGraph()
225 CallGraphNode *Callee = CG.getOrInsertFunction(F); in updateCallGraph()
227 buildCGN(CG, Callee); in updateCallGraph()
524 static void addCallToCallGraph(CallGraph *CG, CallInst *Call, Function *Callee){ in addCallToCallGraph() argument
525 if (CG) in addCallToCallGraph()
[all …]
H A DCoroInternal.h52 CallGraph &CG, CallGraphSCC &SCC);
267 Value *emitAlloc(IRBuilder<> &Builder, Value *Size, CallGraph *CG) const;
272 void emitDealloc(IRBuilder<> &Builder, Value *Ptr, CallGraph *CG) const;
/netbsd-src/external/apache2/llvm/dist/llvm/tools/lto/
H A Dlto.cpp152 LTOCodeGenerator *CG = unwrap(cg); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() local
153 CG->setAttrs(codegen::getMAttrs()); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
157 CG->setOptLevel(OptLevel - '0'); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
158 CG->setFreestanding(EnableFreestanding); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
159 CG->setDisableVerify(DisableVerify); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
440 LibLTOCodeGenerator *CG = unwrap(cg); in lto_codegen_compile() local
441 CG->NativeObjectFile = CG->compile(); in lto_codegen_compile()
442 if (!CG->NativeObjectFile) in lto_codegen_compile()
444 *length = CG->NativeObjectFile->getBufferSize(); in lto_codegen_compile()
445 return CG->NativeObjectFile->getBufferStart(); in lto_codegen_compile()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DCallGraphUpdater.h42 CallGraph *CG = nullptr; variable
62 void initialize(CallGraph &CG, CallGraphSCC &SCC) { in initialize() argument
63 this->CG = &CG; in initialize()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/IPO/
H A DInliner.h42 bool doInitialization(CallGraph &CG) override;
52 bool doFinalization(CallGraph &CG) override;
65 bool removeDeadFunctions(CallGraph &CG, bool AlwaysInlineOnly = false);
104 LazyCallGraph &CG, CGSCCUpdateResult &UR);
H A DInternalize.h63 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr);
72 CallGraph *CG = nullptr) {
74 .internalizeModule(TheModule, CG);
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DDebugCheckers.cpp215 CallGraph CG; in checkASTDecl() local
216 CG.addToCallGraph(const_cast<TranslationUnitDecl*>(TU)); in checkASTDecl()
217 CG.viewGraph(); in checkASTDecl()
239 CallGraph CG; in checkASTDecl() local
240 CG.addToCallGraph(const_cast<TranslationUnitDecl*>(TU)); in checkASTDecl()
241 CG.dump(); in checkASTDecl()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/opt/
H A DPrintSCC.cpp94 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnModule() local
97 for (scc_iterator<CallGraph*> SCCI = scc_begin(&CG); !SCCI.isAtEnd(); in runOnModule()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Interpreter/
H A DIncrementalParser.cpp247 if (CodeGenerator *CG = getCodeGen(Act.get())) { in Parse() local
248 std::unique_ptr<llvm::Module> M(CG->ReleaseModule()); in Parse()
249 CG->StartModule("incr_module_" + std::to_string(Transactions.size()), in Parse()

12345