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 /// \file | 10 /// \file |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 return new (Ctx->allocate<ConstantRelocatable>()) ConstantRelocatable( | 283 return new (Ctx->allocate<ConstantRelocatable>()) ConstantRelocatable( |
284 Ty, Tuple.Offset, Tuple.Name, Tuple.SuppressMangling); | 284 Ty, Tuple.Offset, Tuple.Name, Tuple.SuppressMangling); |
285 } | 285 } |
286 | 286 |
287 RelocOffsetT getOffset() const { return Offset; } | 287 RelocOffsetT getOffset() const { return Offset; } |
288 const IceString &getName() const { return Name; } | 288 const IceString &getName() const { return Name; } |
289 void setSuppressMangling(bool Value) { SuppressMangling = Value; } | 289 void setSuppressMangling(bool Value) { SuppressMangling = Value; } |
290 bool getSuppressMangling() const { return SuppressMangling; } | 290 bool getSuppressMangling() const { return SuppressMangling; } |
291 using Constant::emit; | 291 using Constant::emit; |
292 void emit(TargetLowering *Target) const final; | 292 void emit(TargetLowering *Target) const final; |
293 void emitWithoutPrefix(TargetLowering *Target) const; | 293 void emitWithoutPrefix(const TargetLowering *Target) const; |
294 using Constant::dump; | 294 using Constant::dump; |
295 void dump(const Cfg *Func, Ostream &Str) const override; | 295 void dump(const Cfg *Func, Ostream &Str) const override; |
296 | 296 |
297 static bool classof(const Operand *Operand) { | 297 static bool classof(const Operand *Operand) { |
298 OperandKind Kind = Operand->getKind(); | 298 OperandKind Kind = Operand->getKind(); |
299 return Kind == kConstRelocatable; | 299 return Kind == kConstRelocatable; |
300 } | 300 } |
301 | 301 |
302 private: | 302 private: |
303 ConstantRelocatable(Type Ty, RelocOffsetT Offset, const IceString &Name, | 303 ConstantRelocatable(Type Ty, RelocOffsetT Offset, const IceString &Name, |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 private: | 767 private: |
768 const Cfg *Func; | 768 const Cfg *Func; |
769 MetadataKind Kind; | 769 MetadataKind Kind; |
770 CfgVector<VariableTracking> Metadata; | 770 CfgVector<VariableTracking> Metadata; |
771 const static InstDefList NoDefinitions; | 771 const static InstDefList NoDefinitions; |
772 }; | 772 }; |
773 | 773 |
774 } // end of namespace Ice | 774 } // end of namespace Ice |
775 | 775 |
776 #endif // SUBZERO_SRC_ICEOPERAND_H | 776 #endif // SUBZERO_SRC_ICEOPERAND_H |
OLD | NEW |