start code for writing out instructions. Separate BB#s from normal value

#'s.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36472 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2007-04-26 05:53:54 +00:00
parent c651e4c51e
commit b9d0c2a6a0
3 changed files with 83 additions and 5 deletions
+10 -1
View File
@@ -49,7 +49,9 @@ private:
/// When a function is incorporated, this is the size of the Values list
/// before incorporation.
unsigned ModuleLevel;
unsigned NumModuleValues;
unsigned FirstFuncConstantID;
unsigned FirstInstID;
ValueEnumerator(const ValueEnumerator &); // DO NOT IMPLEMENT
void operator=(const ValueEnumerator &); // DO NOT IMPLEMENT
@@ -68,6 +70,13 @@ public:
return I->second-1;
}
/// getFunctionConstantRange - Return the range of values that corresponds to
/// function-local constants.
void getFunctionConstantRange(unsigned &Start, unsigned &End) const {
Start = FirstFuncConstantID;
End = FirstInstID;
}
const ValueList &getValues() const { return Values; }
const TypeList &getTypes() const { return Types; }
const std::vector<const BasicBlock*> &getBasicBlocks() const {