Go to the documentation of this file.
35 OS <<
"CycleInfo for function: " <<
F.getName() <<
"\n";
74 OS <<
"CycleInfo for function: " <<
F->getName() <<
"\n";
A set of analyses that are preserved following a run of a transformation pass.
This is an optimization pass for GlobalISel generic memory operations.
void print(raw_ostream &OS, const Module *M=nullptr) const override
print - Print out the internal state of the pass.
static void print(raw_ostream &Out, object::Archive::Kind Kind, T Val)
PassT::Result & getResult(IRUnitT &IR, ExtraArgTs... ExtraArgs)
Get the result of an analysis pass for a given IR unit.
void initializeCycleInfoWrapperPassPass(PassRegistry &)
void releaseMemory() override
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memo...
Analysis pass which computes a CycleInfo.
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
CycleInfo run(Function &F, FunctionAnalysisManager &)
Run the analysis pass over a function and produce a dominator tree.
Represent the analysis usage information of a pass.
A possibly irreducible generalization of a Loop.
This class implements an extremely fast bulk output stream that can only output to a stream.
Analysis containing CSE Info
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
#define INITIALIZE_PASS_END(passName, arg, name, cfg, analysis)
void compute(FunctionT &F)
Compute the cycle info for a function.
A special type used by analysis passes to provide an address that identifies that particular analysis...
A Module instance is used to store all the information related to an LLVM module.
INITIALIZE_PASS_BEGIN(CycleInfoWrapperPass, "cycles", "Cycle Info Analysis", true, true) INITIALIZE_PASS_END(CycleInfoWrapperPass
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
void print(raw_ostream &Out) const
Print the cycle info.
bool runOnFunction(Function &F) override
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass.
void clear()
Reset the object to its initial state.
A container for analyses that lazily runs them and caches their results.
FunctionPass class - This class is used to implement most global optimizations.
Legacy analysis pass which computes a CycleInfo.
CycleInfoPrinterPass(raw_ostream &OS)
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)