Home
last modified time | relevance | path

Searched refs:CAlgo (Results 1 – 3 of 3) sorted by relevance

/llvm-project/bolt/include/bolt/Passes/
H A DReorderAlgorithm.h159 std::unique_ptr<ClusterAlgorithm> CAlgo;
163 explicit ReorderAlgorithm(std::unique_ptr<ClusterAlgorithm> CAlgo) in ReorderAlgorithm() argument
164 : CAlgo(std::move(CAlgo)) {} in ReorderAlgorithm()
173 void setClusterAlgorithm(ClusterAlgorithm *CAlgo) { in setClusterAlgorithm() argument
174 this->CAlgo.reset(CAlgo); in setClusterAlgorithm()
196 explicit OptimizeReorderAlgorithm(std::unique_ptr<ClusterAlgorithm> CAlgo) in OptimizeReorderAlgorithm() argument
197 : ReorderAlgorithm(std::move(CAlgo)) {} in OptimizeReorderAlgorithm()
209 std::unique_ptr<ClusterAlgorithm> CAlgo) in OptimizeBranchReorderAlgorithm() argument
210 : ReorderAlgorithm(std::move(CAlgo)) {} in OptimizeBranchReorderAlgorithm()
222 std::unique_ptr<ClusterAlgorithm> CAlgo) in OptimizeCacheReorderAlgorithm() argument
[all …]
/llvm-project/bolt/lib/Passes/
H A DReorderAlgorithm.cpp560 CAlgo->clusterBasicBlocks(BF); in reorderBasicBlocks()
563 CAlgo->printClusters(); in reorderBasicBlocks()
566 for (ClusterAlgorithm::ClusterTy &Cluster : CAlgo->Clusters) in reorderBasicBlocks()
576 CAlgo->clusterBasicBlocks(BF, /* ComputeEdges = */ true); in reorderBasicBlocks()
577 std::vector<ClusterAlgorithm::ClusterTy> &Clusters = CAlgo->Clusters; in reorderBasicBlocks()
579 CAlgo->ClusterEdges; in reorderBasicBlocks()
582 CAlgo->computeClusterAverageFrequency(BF.getBinaryContext()); in reorderBasicBlocks()
583 std::vector<double> &AvgFreq = CAlgo->AvgFreq; in reorderBasicBlocks()
586 CAlgo->printClusters(); in reorderBasicBlocks()
685 CAlgo->clusterBasicBlocks(BF); in reorderBasicBlocks()
[all …]
H A DBinaryPasses.cpp501 std::unique_ptr<ClusterAlgorithm> CAlgo; in modifyFunctionLayout()
503 CAlgo.reset(new MinBranchGreedyClusterAlgorithm()); in modifyFunctionLayout()
505 CAlgo.reset(new PHGreedyClusterAlgorithm()); in modifyFunctionLayout()
509 Algo.reset(new OptimizeReorderAlgorithm(std::move(CAlgo))); in modifyFunctionLayout()
513 Algo.reset(new OptimizeBranchReorderAlgorithm(std::move(CAlgo))); in modifyFunctionLayout()
517 Algo.reset(new OptimizeCacheReorderAlgorithm(std::move(CAlgo))); in modifyFunctionLayout()
525 Algo.reset(new RandomClusterReorderAlgorithm(std::move(CAlgo))); in runOnFunctions()
488 std::unique_ptr<ClusterAlgorithm> CAlgo; modifyFunctionLayout() local