#include "llvm/Analysis/CycleAnalysis.h"
#include "llvm/ADT/GenericCycleImpl.h"
#include "llvm/IR/CFG.h"
#include "llvm/InitializePasses.h"
usingnamespacellvm;
namespace llvm {
class Module;
}
CycleInfo CycleAnalysis::run(Function &F, FunctionAnalysisManager &) { … }
AnalysisKey CycleAnalysis::Key;
CycleInfoPrinterPass::CycleInfoPrinterPass(raw_ostream &OS) : … { … }
PreservedAnalyses CycleInfoPrinterPass::run(Function &F,
FunctionAnalysisManager &AM) { … }
PreservedAnalyses CycleInfoVerifierPass::run(Function &F,
FunctionAnalysisManager &AM) { … }
char CycleInfoWrapperPass::ID = …;
CycleInfoWrapperPass::CycleInfoWrapperPass() : … { … }
INITIALIZE_PASS_BEGIN(CycleInfoWrapperPass, "cycles", "Cycle Info Analysis",
true, true)
INITIALIZE_PASS_END(CycleInfoWrapperPass, "cycles", "Cycle Info Analysis", true,
true)
void CycleInfoWrapperPass::getAnalysisUsage(AnalysisUsage &AU) const { … }
bool CycleInfoWrapperPass::runOnFunction(Function &Func) { … }
void CycleInfoWrapperPass::print(raw_ostream &OS, const Module *) const { … }
void CycleInfoWrapperPass::releaseMemory() { … }