| OLD | NEW |
| 1 //===-- Bitcode/NaCl/Writer/NaClValueEnumerator.h - ----------*- C++ -*-===// | 1 //===-- Bitcode/NaCl/Writer/NaClValueEnumerator.h - ----------*- C++ -*-===// |
| 2 // Number values. | 2 // Number values. |
| 3 // | 3 // |
| 4 // The LLVM Compiler Infrastructure | 4 // The LLVM Compiler Infrastructure |
| 5 // | 5 // |
| 6 // This file is distributed under the University of Illinois Open Source | 6 // This file is distributed under the University of Illinois Open Source |
| 7 // License. See LICENSE.TXT for details. | 7 // License. See LICENSE.TXT for details. |
| 8 // | 8 // |
| 9 //===----------------------------------------------------------------------===// | 9 //===----------------------------------------------------------------------===// |
| 10 // | 10 // |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 /// getFunctionConstantRange - Return the range of values that corresponds to | 114 /// getFunctionConstantRange - Return the range of values that corresponds to |
| 115 /// function-local constants. | 115 /// function-local constants. |
| 116 void getFunctionConstantRange(unsigned &Start, unsigned &End) const { | 116 void getFunctionConstantRange(unsigned &Start, unsigned &End) const { |
| 117 Start = FirstFuncConstantID; | 117 Start = FirstFuncConstantID; |
| 118 End = FirstInstID; | 118 End = FirstInstID; |
| 119 } | 119 } |
| 120 | 120 |
| 121 /// \brief Inserts the give value into the set of known function forward | 121 /// \brief Inserts the give value into the set of known function forward |
| 122 /// value type refs. Returns true if the value id is added to the set. | 122 /// value type refs. Returns true if the value id is added to the set. |
| 123 bool InsertFnForwardTypeRef(unsigned ValID) { | 123 bool InsertFnForwardTypeRef(unsigned ValID) { |
| 124 return FnForwardTypeRefs.insert(ValID); | 124 return FnForwardTypeRefs.insert(ValID).second; |
| 125 } | 125 } |
| 126 | 126 |
| 127 const ValueList &getValues() const { return Values; } | 127 const ValueList &getValues() const { return Values; } |
| 128 const TypeList &getTypes() const { return Types; } | 128 const TypeList &getTypes() const { return Types; } |
| 129 const std::vector<const BasicBlock*> &getBasicBlocks() const { | 129 const std::vector<const BasicBlock*> &getBasicBlocks() const { |
| 130 return BasicBlocks; | 130 return BasicBlocks; |
| 131 } | 131 } |
| 132 | 132 |
| 133 /// incorporateFunction/purgeFunction - If you'd like to deal with a function, | 133 /// incorporateFunction/purgeFunction - If you'd like to deal with a function, |
| 134 /// use these two methods to get its data into the NaClValueEnumerator! | 134 /// use these two methods to get its data into the NaClValueEnumerator! |
| (...skipping 25 matching lines...) Expand all Loading... |
| 160 void EnumerateValue(const Value *V); | 160 void EnumerateValue(const Value *V); |
| 161 void EnumerateType(Type *T, bool InsideOptimizeTypes=false); | 161 void EnumerateType(Type *T, bool InsideOptimizeTypes=false); |
| 162 void EnumerateOperandType(const Value *V); | 162 void EnumerateOperandType(const Value *V); |
| 163 | 163 |
| 164 void EnumerateValueSymbolTable(const ValueSymbolTable &ST); | 164 void EnumerateValueSymbolTable(const ValueSymbolTable &ST); |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // End llvm namespace | 167 } // End llvm namespace |
| 168 | 168 |
| 169 #endif | 169 #endif |
| OLD | NEW |