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