OpenASIP
2.0
|
#include <InnerLoopFinder.hh>
Classes | |
class | InnerLoopInfo |
Public Types | |
typedef std::map< std::string, std::ostream * > | DumpFileIndex |
typedef std::map< const llvm::BasicBlock *, InnerLoopInfo > | InnerLoopInfoIndex |
Public Member Functions | |
InnerLoopFinder () | |
~InnerLoopFinder () | |
virtual void | getAnalysisUsage (llvm::AnalysisUsage &AU) const |
std::ostream & | out (llvm::Loop *l) |
virtual std::string | loopDescription (llvm::Loop *l) |
virtual bool | runOnLoop (llvm::Loop *l, llvm::LPPassManager &LPM) |
unsigned | getSmallConstantTripCount (llvm::Loop *loop) |
InnerLoopInfoIndex | innerLoopInfo () |
Public Attributes | |
DumpFileIndex | dumpFiles |
bool | dump |
Static Public Attributes | |
static char | ID = 0 |
Private Attributes | |
InnerLoopInfoIndex | loopInfos_ |
Definition at line 28 of file InnerLoopFinder.hh.
typedef std::map<std::string, std::ostream*> InnerLoopFinder::DumpFileIndex |
Definition at line 30 of file InnerLoopFinder.hh.
typedef std::map<const llvm::BasicBlock*, InnerLoopInfo> InnerLoopFinder::InnerLoopInfoIndex |
Definition at line 42 of file InnerLoopFinder.hh.
InnerLoopFinder::InnerLoopFinder | ( | ) |
Definition at line 93 of file InnerLoopFinder.cc.
References DumpLoopInfo().
InnerLoopFinder::~InnerLoopFinder | ( | ) |
Definition at line 110 of file InnerLoopFinder.cc.
|
virtual |
Definition at line 99 of file InnerLoopFinder.cc.
unsigned InnerLoopFinder::getSmallConstantTripCount | ( | llvm::Loop * | loop | ) |
Returns the trip count of the loop as a normal unsigned value, if possible.
Forwardported from LLVM 2.4. Returns 0 if the trip count is unknown or not constant. Will also return 0 if the trip count is very large (>= 2^32).
Definition at line 254 of file InnerLoopFinder.cc.
|
inline |
Definition at line 58 of file InnerLoopFinder.hh.
References loopInfos_.
Referenced by llvm::LLVMTCEIRBuilder::buildTCECFG().
|
virtual |
Returns a textual description for the given loop.
Definition at line 152 of file InnerLoopFinder.cc.
References assert.
std::ostream & InnerLoopFinder::out | ( | llvm::Loop * | l | ) |
Returns a stream to dump the loop info to.
Definition at line 127 of file InnerLoopFinder.cc.
References assert.
|
virtual |
Saves trip counts of single basic block inner loops.
early exits?
Definition at line 170 of file InnerLoopFinder.cc.
References assert.
bool InnerLoopFinder::dump |
Definition at line 45 of file InnerLoopFinder.hh.
DumpFileIndex InnerLoopFinder::dumpFiles |
Definition at line 44 of file InnerLoopFinder.hh.
|
static |
Definition at line 29 of file InnerLoopFinder.hh.
|
private |
Definition at line 60 of file InnerLoopFinder.hh.
Referenced by innerLoopInfo().