OLD | NEW |
1 //===- subzero/src/IceOperand.h - High-level operands -----------*- C++ -*-===// | 1 //===- subzero/src/IceOperand.h - High-level operands -----------*- C++ -*-===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This file declares the Operand class and its target-independent | 10 // This file declares the Operand class and its target-independent |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 Ty, Tuple.Offset, Tuple.Name, Tuple.SuppressMangling, PoolEntryID); | 210 Ty, Tuple.Offset, Tuple.Name, Tuple.SuppressMangling, PoolEntryID); |
211 } | 211 } |
212 | 212 |
213 RelocOffsetT getOffset() const { return Offset; } | 213 RelocOffsetT getOffset() const { return Offset; } |
214 IceString getName() const { return Name; } | 214 IceString getName() const { return Name; } |
215 void setSuppressMangling(bool Value) { SuppressMangling = Value; } | 215 void setSuppressMangling(bool Value) { SuppressMangling = Value; } |
216 bool getSuppressMangling() const { return SuppressMangling; } | 216 bool getSuppressMangling() const { return SuppressMangling; } |
217 using Constant::emit; | 217 using Constant::emit; |
218 using Constant::dump; | 218 using Constant::dump; |
219 void emit(GlobalContext *Ctx) const override; | 219 void emit(GlobalContext *Ctx) const override; |
| 220 void emitWithoutDollar(GlobalContext *Ctx) const; |
220 void dump(const Cfg *Func, Ostream &Str) const override; | 221 void dump(const Cfg *Func, Ostream &Str) const override; |
221 | 222 |
222 static bool classof(const Operand *Operand) { | 223 static bool classof(const Operand *Operand) { |
223 OperandKind Kind = Operand->getKind(); | 224 OperandKind Kind = Operand->getKind(); |
224 return Kind == kConstRelocatable; | 225 return Kind == kConstRelocatable; |
225 } | 226 } |
226 | 227 |
227 private: | 228 private: |
228 ConstantRelocatable(Type Ty, RelocOffsetT Offset, const IceString &Name, | 229 ConstantRelocatable(Type Ty, RelocOffsetT Offset, const IceString &Name, |
229 bool SuppressMangling, uint32_t PoolEntryID) | 230 bool SuppressMangling, uint32_t PoolEntryID) |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 private: | 627 private: |
627 const Cfg *Func; | 628 const Cfg *Func; |
628 MetadataKind Kind; | 629 MetadataKind Kind; |
629 std::vector<VariableTracking> Metadata; | 630 std::vector<VariableTracking> Metadata; |
630 const static InstDefList NoDefinitions; | 631 const static InstDefList NoDefinitions; |
631 }; | 632 }; |
632 | 633 |
633 } // end of namespace Ice | 634 } // end of namespace Ice |
634 | 635 |
635 #endif // SUBZERO_SRC_ICEOPERAND_H | 636 #endif // SUBZERO_SRC_ICEOPERAND_H |
OLD | NEW |