Home
last modified time | relevance | path

Searched refs:CG (Results 1 - 25 of 39) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
H A DCallGraphSCCPass.cpp69 bool doInitialization(CallGraph &CG);
70 bool doFinalization(CallGraph &CG);
104 bool RunAllPassesOnSCC(CallGraphSCC &CurSCC, CallGraph &CG,
108 CallGraph &CG, bool &CallGraphUpToDate,
110 bool RefreshCallGraph(const CallGraphSCC &CurSCC, CallGraph &CG,
119 CallGraph &CG, bool &CallGraphUpToDate,
123 Module &M = CG.getModule();
128 DevirtualizedCall |= RefreshCallGraph(CurSCC, CG, false);
160 RefreshCallGraph(CurSCC, CG, true);
201 bool CGPassManager::RefreshCallGraph(const CallGraphSCC &CurSCC, CallGraph &CG, in RefreshCallGraph() argument
403 RunAllPassesOnSCC(CallGraphSCC &CurSCC, CallGraph &CG, bool &DevirtualizedCall) RunAllPassesOnSCC() argument
464 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); runOnModule() local
512 doInitialization(CallGraph &CG) doInitialization() argument
527 doFinalization(CallGraph &CG) doFinalization() argument
[all...]
H A DSyntheticCountsUtils.cpp78 /// Propgate synthetic entry counts on a callgraph \p CG.
87 void SyntheticCountsUtils<CallGraphType>::propagate(const CallGraphType &CG, in propagate() argument
93 for (auto I = scc_begin(CG); !I.isAtEnd(); ++I) in propagate()
H A DGlobalsModRef.cpp470 void GlobalsAAResult::CollectSCCMembership(CallGraph &CG) { in CollectSCCMembership() argument
474 for (scc_iterator<CallGraph *> I = scc_begin(&CG); !I.isAtEnd(); ++I) { in CollectSCCMembership()
489 void GlobalsAAResult::AnalyzeCallGraph(CallGraph &CG, Module &M) { in AnalyzeCallGraph() argument
492 for (scc_iterator<CallGraph *> I = scc_begin(&CG); !I.isAtEnd(); ++I) { in AnalyzeCallGraph()
551 CallGraphNode *CalleeNode = CG[Callee]; in AnalyzeCallGraph()
973 CallGraph &CG) { in analyzeModule()
977 Result.CollectSCCMembership(CG); in analyzeModule()
982 // Propagate on CG. in analyzeModule()
983 Result.AnalyzeCallGraph(CG, M); in analyzeModule()
971 analyzeModule( Module &M, std::function<const TargetLibraryInfo &(Function &F)> GetTLI, CallGraph &CG) analyzeModule() argument
H A DLoopAccessAnalysis.cpp479 const auto &CG = CheckingGroups[I]; in print() local
481 OS.indent(Depth + 2) << "Group " << &CG << ":\n"; in print()
482 OS.indent(Depth + 4) << "(Low: " << *CG.Low << " High: " << *CG.High in print()
484 for (unsigned J = 0; J < CG.Members.size(); ++J) { in print()
485 OS.indent(Depth + 6) << "Member: " << *Pointers[CG.Members[J]].Expr in print()
2143 /// Expand code for the lower and upper bound of the pointer group \p CG
2146 expandBounds(const RuntimePointerChecking::CheckingPtrGroup *CG, Loop *TheLoop, in expandBounds() argument
2149 Value *Ptr = PtrRtChecking.Pointers[CG->Members[0]].PointerValue; in expandBounds()
2174 Start = Exp.expandCodeFor(CG in expandBounds()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
H A DPruneEH.cpp51 static bool SimplifyFunction(Function *F, CallGraph &CG);
52 static void DeleteBasicBlock(BasicBlock *BB, CallGraph &CG);
63 static bool runImpl(CallGraphSCC &SCC, CallGraph &CG) { in runImpl() argument
76 MadeChange |= SimplifyFunction(F, CG); in runImpl()
128 CallGraphNode *CalleeNode = CG[Callee]; in runImpl()
171 MadeChange |= SimplifyFunction(F, CG); in runImpl()
181 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnSCC()
182 return runImpl(SCC, CG); in runOnSCC()
189 static bool SimplifyFunction(Function *F, CallGraph &CG) { in SimplifyFunction() argument
199 DeleteBasicBlock(UnwindBlock, CG); // Delet in SimplifyFunction()
232 DeleteBasicBlock(BasicBlock *BB, CallGraph &CG) DeleteBasicBlock() argument
[all...]
H A DInliner.cpp495 bool LegacyInlinerBase::doInitialization(CallGraph &CG) { in doInitialization() argument
497 ImportedFunctionsStats.setModuleInfo(CG.getModule()); in doInitialization()
528 inlineCallsImpl(CallGraphSCC &SCC, CallGraph &CG, in inlineCallsImpl() argument
607 InlineFunctionInfo InlineInfo(&CG, &GetAssumptionCache, PSI); in inlineCallsImpl()
676 CG[Caller]->removeCallEdgeFor(*cast<CallBase>(CS.getInstruction())); in inlineCallsImpl()
725 CG[Callee]->getNumReferences() == 0) { in inlineCallsImpl()
728 CallGraphNode *CalleeNode = CG[Callee]; in inlineCallsImpl()
734 delete CG.removeFunctionFromModule(CalleeNode); in inlineCallsImpl()
759 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in inlineCalls() local
769 SCC, CG, GetAssumptionCach 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; variable
270 return internalizeModule(M, MustPreserveGV, CG);
H A DAlwaysInliner.cpp122 bool doFinalization(CallGraph &CG) override {
123 return removeDeadFunctions(CG, /*AlwaysInlineOnly=*/true);
H A DSyntheticCountsPropagation.cpp128 CallGraph CG(M); in run()
131 &CG, GetCallSiteProfCount, [&](const CallGraphNode *N, Scaled64 New) { in run()
H A DArgumentPromotion.cpp1023 LazyCallGraph &CG, in run()
1035 AM.getResult<FunctionAnalysisManagerCGSCCProxy>(C, CG).getManager(); in run()
1093 bool doInitialization(CallGraph &CG) override;
1123 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnSCC()
1141 CG.getOrInsertFunction(NewCS.getCalledFunction()); in runOnSCC()
1142 CallGraphNode *CallerNode = CG[Caller]; in runOnSCC()
1155 CallGraphNode *NewNode = CG.getOrInsertFunction(NewF); in runOnSCC()
1158 delete CG.removeFunctionFromModule(OldNode); in runOnSCC()
1173 bool ArgPromotion::doInitialization(CallGraph &CG) { in doInitialization() argument
1174 return CallGraphSCCPass::doInitialization(CG); in doInitialization()
1021 run(LazyCallGraph::SCC &C, CGSCCAnalysisManager &AM, LazyCallGraph &CG, CGSCCUpdateResult &UR) run() argument
[all...]
H A DFunctionAttrs.cpp1412 LazyCallGraph &CG,
1415 AM.getResult<FunctionAnalysisManagerCGSCCProxy>(C, CG).getManager();
1585 static bool deduceFunctionAttributeInRPO(Module &M, CallGraph &CG) {
1594 for (scc_iterator<CallGraph *> I = scc_begin(&CG); !I.isAtEnd(); ++I) {
1615 auto &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph();
1617 return deduceFunctionAttributeInRPO(M, CG);
1622 auto &CG = AM.getResult<CallGraphAnalysis>(M);
1624 if (!deduceFunctionAttributeInRPO(M, CG))
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
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. member in llvm::CallGraphSCC
93 CallGraphSCC(CallGraph &cg, void *context) : CG(cg), Context(context) {} in CallGraphSCC()
111 const CallGraph &getCallGraph() { return CG; } in getCallGraph()
H A DCGSCCPassManager.h160 LazyCallGraph &CG, CGSCCUpdateResult &) { in run()
161 (void)AM.template getResult<AnalysisT>(C, CG); in run()
227 /// update result struct and use it to reflect the results of any CG updates
298 /// (changing both the CG structure and the function IR itself). However,
312 /// infinite inlining. See the comments in the inliner's CG update logic.
415 /// including returning whether any changes were made and populating a CG
456 LazyCallGraph &CG, CGSCCUpdateResult &UR) { in run()
459 AM.getResult<FunctionAnalysisManagerCGSCCProxy>(C, CG).getManager(); in run()
478 if (CG.lookupSCC(*N) != CurrentC) in run()
505 CurrentC = &updateCGAndAnalysisManagerForFunctionPass(CG, *Current in run()
455 run(LazyCallGraph::SCC &C, CGSCCAnalysisManager &AM, LazyCallGraph &CG, CGSCCUpdateResult &UR) run() argument
561 run(LazyCallGraph::SCC &InitialC, CGSCCAnalysisManager &AM, LazyCallGraph &CG, CGSCCUpdateResult &UR) run() argument
742 LazyCallGraph &CG = AM.getResult<LazyCallGraphAnalysis>(M); run() local
[all...]
H A DCallGraph.h471 static nodes_iterator nodes_begin(CallGraph *CG) { in nodes_begin()
472 return nodes_iterator(CG->begin(), &CGGetValuePtr); in nodes_begin()
475 static nodes_iterator nodes_end(CallGraph *CG) { in nodes_end()
476 return nodes_iterator(CG->end(), &CGGetValuePtr); in nodes_end()
498 static nodes_iterator nodes_begin(const CallGraph *CG) { in nodes_begin()
499 return nodes_iterator(CG->begin(), &CGGetValuePtr); in nodes_begin()
502 static nodes_iterator nodes_end(const CallGraph *CG) { in nodes_end()
503 return nodes_iterator(CG->end(), &CGGetValuePtr); in nodes_end()
H A DGlobalsModRef.h89 CallGraph &CG);
115 void AnalyzeCallGraph(CallGraph &CG, Module &M);
121 void CollectSCCMembership(CallGraph &CG);
H A DSyntheticCountsUtils.h43 static void propagate(const CallGraphType &CG, GetProfCountTy GetProfCount,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
H A DCoroutines.cpp189 static void buildCGN(CallGraph &CG, CallGraphNode *Node) { in buildCGN() argument
200 Node->addCalledFunction(Call, CG.getCallsExternalNode()); in buildCGN()
202 Node->addCalledFunction(Call, CG.getOrInsertFunction(Callee)); in buildCGN()
209 CallGraph &CG, CallGraphSCC &SCC) { in updateCallGraph()
211 auto *ParentNode = CG[&ParentFunc]; in updateCallGraph()
213 buildCGN(CG, ParentNode); in updateCallGraph()
218 CallGraphNode *Callee = CG.getOrInsertFunction(F); in updateCallGraph()
220 buildCGN(CG, Callee); in updateCallGraph()
494 static void addCallToCallGraph(CallGraph *CG, CallInst *Call, Function *Callee){ in addCallToCallGraph() argument
495 if (CG) in addCallToCallGraph()
208 updateCallGraph(Function &ParentFunc, ArrayRef<Function *> NewFuncs, CallGraph &CG, CallGraphSCC &SCC) updateCallGraph() argument
[all...]
H A DCoroSplit.cpp163 CallGraph *CG) { in maybeFreeRetconStorage()
169 Shape.emitDealloc(Builder, FramePtr, CG); in maybeFreeRetconStorage()
175 bool InResume, CallGraph *CG) { in replaceFallthroughCoroEnd()
193 maybeFreeRetconStorage(Builder, Shape, FramePtr, CG); in replaceFallthroughCoroEnd()
200 maybeFreeRetconStorage(Builder, Shape, FramePtr, CG); in replaceFallthroughCoroEnd()
224 Value *FramePtr, bool InResume, CallGraph *CG){ in replaceUnwindCoroEnd()
237 maybeFreeRetconStorage(Builder, Shape, FramePtr, CG); in replaceUnwindCoroEnd()
251 Value *FramePtr, bool InResume, CallGraph *CG) { in replaceCoroEnd()
253 replaceUnwindCoroEnd(End, Shape, FramePtr, InResume, CG); in replaceCoroEnd()
255 replaceFallthroughCoroEnd(End, Shape, FramePtr, InResume, CG); in replaceCoroEnd()
161 maybeFreeRetconStorage(IRBuilder< &Builder, const coro::Shape &Shape, Value *FramePtr, CallGraph *CG) maybeFreeRetconStorage() argument
173 replaceFallthroughCoroEnd(CoroEndInst *End, const coro::Shape &Shape, Value *FramePtr, bool InResume, CallGraph *CG) replaceFallthroughCoroEnd() argument
223 replaceUnwindCoroEnd(CoroEndInst *End, const coro::Shape &Shape, Value *FramePtr, bool InResume, CallGraph *CG) replaceUnwindCoroEnd() argument
250 replaceCoroEnd(CoroEndInst *End, const coro::Shape &Shape, Value *FramePtr, bool InResume, CallGraph *CG) replaceCoroEnd() argument
786 removeCoroEnds(const coro::Shape &Shape, CallGraph *CG) removeCoroEnds() argument
1357 splitCoroutine(Function &F, CallGraph &CG, CallGraphSCC &SCC) splitCoroutine() argument
1396 prepareForSplit(Function &F, CallGraph &CG) prepareForSplit() argument
1428 createDevirtTriggerFunc(CallGraph &CG, CallGraphSCC &SCC) createDevirtTriggerFunc() argument
1451 replacePrepare(CallInst *Prepare, CallGraph &CG) replacePrepare() argument
1511 replaceAllPrepares(Function *PrepareFn, CallGraph &CG) replaceAllPrepares() argument
[all...]
H A DCoroInternal.h52 CallGraph &CG, CallGraphSCC &SCC);
226 /// \param CG - if non-null, will be updated for the new call
227 Value *emitAlloc(IRBuilder<> &Builder, Value *Size, CallGraph *CG) const;
231 /// \param CG - if non-null, will be updated for the new call
232 void emitDealloc(IRBuilder<> &Builder, Value *Ptr, CallGraph *CG) const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/IPO/
H A DInliner.h39 bool doInitialization(CallGraph &CG) override;
49 bool doFinalization(CallGraph &CG) override;
62 bool removeDeadFunctions(CallGraph &CG, bool AlwaysInlineOnly = false);
104 LazyCallGraph &CG, CGSCCUpdateResult &UR);
H A DInternalize.h61 /// If the CallGraph \p CG is supplied, it will be updated when
63 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr);
72 CallGraph *CG = nullptr) { in internalizeModule()
74 .internalizeModule(TheModule, CG); in internalizeModule()
H A DArgumentPromotion.h30 LazyCallGraph &CG, CGSCCUpdateResult &UR);
H A DFunctionAttrs.h52 LazyCallGraph &CG, CGSCCUpdateResult &UR);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
H A DCloning.h181 : CG(cg), GetAssumptionCache(GetAssumptionCache), PSI(PSI), in InlineFunctionInfo()
186 CallGraph *CG; member in llvm::InlineFunctionInfo
196 /// callee. This is only filled in if CG is non-null.
202 /// only if CG is null. If CG is non-null, instead the value handle
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
H A DAMDGPUAnnotateKernelFeatures.cpp59 bool doInitialization(CallGraph &CG) override;
365 bool AMDGPUAnnotateKernelFeatures::doInitialization(CallGraph &CG) { in doInitialization() argument

Completed in 26 milliseconds

12