Basic block is purer range now, it does not hold start and length members, it can be used in range based fors now

This commit is contained in:
Artur K
2012-03-08 00:20:13 +01:00
parent fc0d35cf06
commit 69d848ca78
17 changed files with 403 additions and 400 deletions

View File

@@ -27,7 +27,7 @@ struct BB : public llvm::ilist_node<BB>
{
private:
BB(const BB&);
BB() : start(0),length(0),nodeType(0),traversed(0),
BB() : nodeType(0),traversed(0),
numHlIcodes(0),flg(0),
inEdges(0),
edges(0),beenOnH(0),inEdgeCount(0),reachingInt(0),
@@ -38,19 +38,13 @@ private:
}
//friend class SymbolTableListTraits<BB, Function>;
//int numInEdges; /* Number of in edges */
int start; /* First instruction offset */
int length; /* No. of instructions this BB */
iICODE range_start;
iICODE range_end;
public:
int begin();
iICODE begin2();
iICODE end2();
int end();
int rbegin();
int rend();
riICODE rbegin2();
riICODE rend2();
iICODE begin();
iICODE end();
riICODE rbegin();
riICODE rend();
ICODE &front();
ICODE &back();
size_t size();