#include "llvm/Analysis/LazyBlockFrequencyInfo.h"
#include "llvm/Analysis/LazyBranchProbabilityInfo.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/IR/Dominators.h"
#include "llvm/InitializePasses.h"
usingnamespacellvm;
#define DEBUG_TYPE …
INITIALIZE_PASS_BEGIN(LazyBlockFrequencyInfoPass, DEBUG_TYPE,
"Lazy Block Frequency Analysis", true, true)
INITIALIZE_PASS_DEPENDENCY(LazyBPIPass)
INITIALIZE_PASS_DEPENDENCY(LoopInfoWrapperPass)
INITIALIZE_PASS_END(LazyBlockFrequencyInfoPass, DEBUG_TYPE,
"Lazy Block Frequency Analysis", true, true)
char LazyBlockFrequencyInfoPass::ID = …;
LazyBlockFrequencyInfoPass::LazyBlockFrequencyInfoPass() : … { … }
void LazyBlockFrequencyInfoPass::print(raw_ostream &OS, const Module *) const { … }
void LazyBlockFrequencyInfoPass::getAnalysisUsage(AnalysisUsage &AU) const { … }
void LazyBlockFrequencyInfoPass::releaseMemory() { … }
bool LazyBlockFrequencyInfoPass::runOnFunction(Function &F) { … }
void LazyBlockFrequencyInfoPass::getLazyBFIAnalysisUsage(AnalysisUsage &AU) { … }
void llvm::initializeLazyBFIPassPass(PassRegistry &Registry) { … }