OLD | NEW |
1 //===- subzero/src/IceOperand.cpp - High-level operand implementation -----===// | 1 //===- subzero/src/IceOperand.cpp - High-level operand implementation -----===// |
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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 } | 549 } |
550 | 550 |
551 void ConstantRelocatable::emitWithoutPrefix(const TargetLowering *Target, | 551 void ConstantRelocatable::emitWithoutPrefix(const TargetLowering *Target, |
552 const char *Suffix) const { | 552 const char *Suffix) const { |
553 Target->emitWithoutPrefix(this, Suffix); | 553 Target->emitWithoutPrefix(this, Suffix); |
554 } | 554 } |
555 | 555 |
556 void ConstantRelocatable::dump(const Cfg *Func, Ostream &Str) const { | 556 void ConstantRelocatable::dump(const Cfg *Func, Ostream &Str) const { |
557 if (!BuildDefs::dump()) | 557 if (!BuildDefs::dump()) |
558 return; | 558 return; |
| 559 if (!EmitString.empty()) { |
| 560 Str << EmitString; |
| 561 return; |
| 562 } |
559 Str << "@"; | 563 Str << "@"; |
560 if (Func && !SuppressMangling) { | 564 if (Func && !SuppressMangling) { |
561 Str << Func->getContext()->mangleName(Name); | 565 Str << Func->getContext()->mangleName(Name); |
562 } else { | 566 } else { |
563 Str << Name; | 567 Str << Name; |
564 } | 568 } |
565 const RelocOffsetT Offset = getOffset(); | 569 const RelocOffsetT Offset = getOffset(); |
566 if (Offset) { | 570 if (Offset) { |
567 if (Offset >= 0) { | 571 if (Offset >= 0) { |
568 Str << "+"; | 572 Str << "+"; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 if (getType() != IceType_i32 && getType() != IceType_i16 && | 617 if (getType() != IceType_i32 && getType() != IceType_i16 && |
614 getType() != IceType_i8) | 618 getType() != IceType_i8) |
615 return false; | 619 return false; |
616 // The Following checks if the signed representation of Value is between | 620 // The Following checks if the signed representation of Value is between |
617 // -Threshold/2 and +Threshold/2 | 621 // -Threshold/2 and +Threshold/2 |
618 bool largerThanThreshold = Threshold / 2 + Value >= Threshold; | 622 bool largerThanThreshold = Threshold / 2 + Value >= Threshold; |
619 return largerThanThreshold; | 623 return largerThanThreshold; |
620 } | 624 } |
621 | 625 |
622 } // end of namespace Ice | 626 } // end of namespace Ice |
OLD | NEW |