diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-04-26 05:53:54 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-04-26 05:53:54 +0000 |
| commit | e6e364c1986e54076fab080ec2f8cec1da8b7f7b (patch) | |
| tree | 9e1d394e529a5896f39d92aa20be1b92ae72f960 /llvm/lib/Bitcode/Writer/ValueEnumerator.h | |
| parent | 1ceecb5df4e6c9330a45d315856ed2a1ad45491f (diff) | |
| download | bcm5719-llvm-e6e364c1986e54076fab080ec2f8cec1da8b7f7b.tar.gz bcm5719-llvm-e6e364c1986e54076fab080ec2f8cec1da8b7f7b.zip | |
start code for writing out instructions. Separate BB#s from normal value
#'s.
llvm-svn: 36472
Diffstat (limited to 'llvm/lib/Bitcode/Writer/ValueEnumerator.h')
| -rw-r--r-- | llvm/lib/Bitcode/Writer/ValueEnumerator.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.h b/llvm/lib/Bitcode/Writer/ValueEnumerator.h index d9839c6c83e..77f27dad68b 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.h +++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.h @@ -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 { |

