Lines Matching refs:SML

207 static SplitModuleLogger &operator<<(SplitModuleLogger &SML, const Ty &Val) {  in operator <<()  argument
212 if (SML.hasLogFile()) in operator <<()
213 SML.logfile() << Val; in operator <<()
214 return SML; in operator <<()
224 calculateFunctionCosts(SplitModuleLogger &SML, GetTTIFn GetTTI, Module &M, in calculateFunctionCosts() argument
260 SML << "=> Total Module Cost: " << ModuleCost << '\n' in calculateFunctionCosts()
310 static void addAllDependencies(SplitModuleLogger &SML, const CallGraph &CG, in addAllDependencies() argument
341 SML << "Indirect call detected in " << getName(CurFn) in addAllDependencies()
365 FunctionWithDependencies(SplitModuleLogger &SML, CallGraph &CG, in FunctionWithDependencies()
372 addAllDependencies(SML, CG, *Fn, Dependencies, in FunctionWithDependencies()
437 doPartitioning(SplitModuleLogger &SML, Module &M, unsigned NumParts, in doPartitioning() argument
442 SML << "\n--Partitioning Starts--\n"; in doPartitioning()
493 SML << "assign " << getName(*FWD.Fn) << " to P" << PID << "\n -> "; in doPartitioning()
495 SML << FWD.Dependencies.size() << " dependencies added\n"; in doPartitioning()
506 SML << "[Updating P" << PID << " Cost]:" << Cost << " -> " << NewCost; in doPartitioning()
508 SML << " (" << unsigned(((float(NewCost) / Cost) - 1) * 100) in doPartitioning()
511 SML << '\n'; in doPartitioning()
525 SML << "Function with indirect call(s): " << getName(*CurFn.Fn) in doPartitioning()
536 SML << "Function with externally visible dependency " in doPartitioning()
545 SML << "Large Function: " << getName(*CurFn.Fn) in doPartitioning()
552 SML << " => " << format("%0.2f", Overlap * 100) << "% overlap with P" in doPartitioning()
555 SML << " selecting P" << PID << '\n'; in doPartitioning()
570 if (SML) { in doPartitioning()
575 SML << "P" << Idx << " has a total cost of " << Cost << " (" in doPartitioning()
580 SML << "--Partitioning Done--\n\n"; in doPartitioning()
623 SplitModuleLogger SML(M); in splitAMDGPUModule() local
641 SML << "[externalize] " << Fn.getName() in splitAMDGPUModule()
653 SML << "[externalize] GV " << GV.getName() << '\n'; in splitAMDGPUModule()
661 const CostType ModuleCost = calculateFunctionCosts(SML, GetTTI, M, FnCosts); in splitAMDGPUModule()
667 WorkList.emplace_back(SML, CG, FnCosts, &Fn); in splitAMDGPUModule()
685 WorkList.emplace_back(SML, CG, FnCosts, &Fn); in splitAMDGPUModule()
699 if (SML) { in splitAMDGPUModule()
700 SML << "Worklist\n"; in splitAMDGPUModule()
702 SML << "[root] " << getName(*FWD.Fn) << " (totalCost:" << FWD.TotalCost in splitAMDGPUModule()
714 SML << " [dependency] " << Name << '\n'; in splitAMDGPUModule()
719 auto Partitions = doPartitioning(SML, M, N, ModuleCost, FnCosts, WorkList); in splitAMDGPUModule()
732 SML << "Creating " << N << " modules...\n"; in splitAMDGPUModule()
766 SML << " - Module " << I << " with " << NumAllFns << " functions (" in splitAMDGPUModule()
771 SML << TotalFnImpls << " function definitions across all modules (" in splitAMDGPUModule()