mini-llvm 0.1.0
Loading...
Searching...
No Matches
BranchPredictionAnalysis.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2
3#pragma once
4
5#include <memory>
6
11
12namespace mini_llvm::mir {
13
15public:
18 void runOnFunction(const Function &F) override;
19 bool predict(const BasicBlock &B, const BasicBlock &succ) const;
20
21private:
22 class Impl;
23
24 std::unique_ptr<Impl> impl_;
25};
26
27} // namespace mini_llvm::mir
#define MINI_LLVM_EXPORT
Definition Compiler.h:17
Definition BasicBlock.h:24
bool predict(const BasicBlock &B, const BasicBlock &succ) const
void runOnFunction(const Function &F) override
Definition Function.h:21
Definition BasicBlock.h:22