1 Star 1 Fork 0

Rong Tao/autofdo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
llvm_propeller_mock_whole_program_info.h 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef AUTOFDO_LLVM_PROPELLER_MOCK_WHOLE_PROGRAM_INFO_H_
#define AUTOFDO_LLVM_PROPELLER_MOCK_WHOLE_PROGRAM_INFO_H_
#if defined(HAVE_LLVM)
#include "llvm_propeller_abstract_whole_program_info.h"
#include "llvm_propeller_cfg.pb.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/StringSaver.h"
namespace devtools_crosstool_autofdo {
class MockPropellerWholeProgramInfo : public AbstractPropellerWholeProgramInfo {
public:
explicit MockPropellerWholeProgramInfo(const PropellerOptions &options)
: AbstractPropellerWholeProgramInfo(options) {}
~MockPropellerWholeProgramInfo() final {}
bool CreateCfgs() override;
private:
void CreateCfgsFromProtobuf();
// When we construct Symbols/CFGs from protobuf, bump_ptr_allocator_ and
// string_saver_ are used to keep all the string content. (Whereas in case of
// constructing from binary files, the strings are kept in
// binary_file_content.)
std::unique_ptr<llvm::BumpPtrAllocator> bump_ptr_allocator_;
std::unique_ptr<llvm::StringSaver> string_saver_;
// Protobuf container.
PropellerPb propeller_pb_;
};
} // namespace devtools_crosstool_autofdo
#endif
#endif // AUTOFDO_LLVM_PROPELLER_MOCK_WHOLE_PROGRAM_INFO_H_
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rtoax/autofdo.git
git@gitee.com:rtoax/autofdo.git
rtoax
autofdo
autofdo
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385