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