| OLD | NEW |
| 1 //===- subzero/src/IceTargetLoweringX86BaseImpl.h - x86 lowering -*- C++ -*-==// | 1 //===- subzero/src/IceTargetLoweringX86BaseImpl.h - x86 lowering -*- 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 7079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7090 | 7090 |
| 7091 template <typename TraitsType> | 7091 template <typename TraitsType> |
| 7092 void TargetX86Base<TraitsType>::emit(const ConstantUndef *) const { | 7092 void TargetX86Base<TraitsType>::emit(const ConstantUndef *) const { |
| 7093 llvm::report_fatal_error("undef value encountered by emitter."); | 7093 llvm::report_fatal_error("undef value encountered by emitter."); |
| 7094 } | 7094 } |
| 7095 | 7095 |
| 7096 template <class Machine> | 7096 template <class Machine> |
| 7097 void TargetX86Base<Machine>::emit(const ConstantRelocatable *C) const { | 7097 void TargetX86Base<Machine>::emit(const ConstantRelocatable *C) const { |
| 7098 if (!BuildDefs::dump()) | 7098 if (!BuildDefs::dump()) |
| 7099 return; | 7099 return; |
| 7100 assert(!Ctx->getFlags().getUseNonsfi()); | 7100 assert(!Ctx->getFlags().getUseNonsfi() || C->getName() == GlobalOffsetTable); |
| 7101 Ostream &Str = Ctx->getStrEmit(); | 7101 Ostream &Str = Ctx->getStrEmit(); |
| 7102 Str << "$"; | 7102 Str << "$"; |
| 7103 emitWithoutPrefix(C); | 7103 emitWithoutPrefix(C); |
| 7104 } | 7104 } |
| 7105 | 7105 |
| 7106 /// Randomize or pool an Immediate. | 7106 /// Randomize or pool an Immediate. |
| 7107 template <typename TraitsType> | 7107 template <typename TraitsType> |
| 7108 Operand * | 7108 Operand * |
| 7109 TargetX86Base<TraitsType>::randomizeOrPoolImmediate(Constant *Immediate, | 7109 TargetX86Base<TraitsType>::randomizeOrPoolImmediate(Constant *Immediate, |
| 7110 int32_t RegNum) { | 7110 int32_t RegNum) { |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7455 emitGlobal(*Var, SectionSuffix); | 7455 emitGlobal(*Var, SectionSuffix); |
| 7456 } | 7456 } |
| 7457 } | 7457 } |
| 7458 } break; | 7458 } break; |
| 7459 } | 7459 } |
| 7460 } | 7460 } |
| 7461 } // end of namespace X86NAMESPACE | 7461 } // end of namespace X86NAMESPACE |
| 7462 } // end of namespace Ice | 7462 } // end of namespace Ice |
| 7463 | 7463 |
| 7464 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H | 7464 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H |
| OLD | NEW |