• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/

Lines Matching refs:SCC

225     void foreachUse(SmallVectorImpl<Function *> &SCC,
227 for (Function *F : SCC)
261 /// Initialize the ModuleSlice member based on \p SCC. ModuleSlices contains
262 /// (a subset of) all functions that we can look at during this SCC traversal.
263 /// This includes functions (transitively) called from the SCC and the
264 /// (transitive) callers of SCC functions. We also can look at a function if
266 /// a function in the SCC or a caller of a function in the SCC.
267 void initializeModuleSlice(SetVector<Function *> &SCC) {
268 ModuleSlice.insert(SCC.begin(), SCC.end());
271 SmallVector<Function *, 16> Worklist(SCC.begin(), SCC.end());
284 Worklist.append(SCC.begin(), SCC.end());
480 OpenMPOpt(SmallVectorImpl<Function *> &SCC, CallGraphUpdater &CGUpdater,
483 : M(*(*SCC.begin())->getParent()), SCC(SCC), CGUpdater(CGUpdater),
486 /// Run all OpenMP optimizations on the underlying SCC/ModuleSlice.
488 if (SCC.empty())
493 LLVM_DEBUG(dbgs() << TAG << "Run on SCC with " << SCC.size()
538 for (Function *F : SCC) {
616 RFI.foreachUse(SCC, DeleteCallCB);
649 for (Function *F : SCC) {
701 RFI.foreachUse(SCC, CombineIdentStruct);
801 RFI.foreachUse(SCC, ReplaceAndDeleteCB);
810 // run the Attributor here once it can be run as an SCC pass.
844 GlobThreadNumRFI.foreachUse(SCC, [&](Use &U, Function &F) {
920 /// The SCC we are operating on.
921 SmallVectorImpl<Function *> &SCC;
936 /// Helper function to run Attributor on SCC.
938 if (SCC.empty())
945 LLVM_DEBUG(dbgs() << "[Attributor] Done with " << SCC.size()
954 for (Function *F : SCC) {
1031 for (Function *F : SCC) {
1332 PreservedAnalyses OpenMPOptPass::run(LazyCallGraph::SCC &C,
1341 SmallVector<Function *, 16> SCC;
1343 SCC.push_back(&N.getFunction());
1345 if (SCC.empty())
1360 SetVector<Function *> Functions(SCC.begin(), SCC.end());
1368 OpenMPOpt OMPOpt(SCC, CGUpdater, OREGetter, InfoCache, A);
1403 SmallVector<Function *, 16> SCC;
1407 SCC.push_back(Fn);
1409 if (SCC.empty())
1425 SetVector<Function *> Functions(SCC.begin(), SCC.end());
1434 OpenMPOpt OMPOpt(SCC, CGUpdater, OREGetter, InfoCache, A);
1483 // module and an SCC part. The kernel information, among other things, could