加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
llvm_propeller_chain_cluster_builder.cc 729 Bytes
一键复制 编辑 原始数据 按行查看 历史
#include "llvm_propeller_chain_cluster_builder.h"
#include "llvm_propeller_cfg.h"
#include "llvm_propeller_node_chain.h"
namespace devtools_crosstool_autofdo {
// This function builds clusters of node chains and returns them in a vector.
// After this is called, all clusters are moved to the this vector and the
// clusters_ map becomes empty.
std::vector<std::unique_ptr<ChainCluster>>
ChainClusterBuilder::BuildClusters() {
// TODO(rahmanl) Implement MergeClusters Ref: b/154756435.
std::vector<std::unique_ptr<ChainCluster>> built_clusters;
for (auto &elem : clusters_)
built_clusters.push_back(std::move(elem.second));
clusters_.clear();
return built_clusters;
}
} // namespace devtools_crosstool_autofdo
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化