| OLD | NEW |
| 1 //===- subzero/src/IceGlobalContext.cpp - Global context defs -------------===// | 1 //===- subzero/src/IceGlobalContext.cpp - Global context defs -------------===// |
| 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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 Asm->alignFunction(); | 512 Asm->alignFunction(); |
| 513 IceString MangledName = mangleName(Asm->getFunctionName()); | 513 IceString MangledName = mangleName(Asm->getFunctionName()); |
| 514 switch (getFlags().getOutFileType()) { | 514 switch (getFlags().getOutFileType()) { |
| 515 case FT_Elf: | 515 case FT_Elf: |
| 516 getObjectWriter()->writeFunctionCode(MangledName, Asm->getInternal(), | 516 getObjectWriter()->writeFunctionCode(MangledName, Asm->getInternal(), |
| 517 Asm.get()); | 517 Asm.get()); |
| 518 break; | 518 break; |
| 519 case FT_Iasm: { | 519 case FT_Iasm: { |
| 520 OstreamLocker L(this); | 520 OstreamLocker L(this); |
| 521 Cfg::emitTextHeader(MangledName, this, Asm.get()); | 521 Cfg::emitTextHeader(MangledName, this, Asm.get()); |
| 522 Asm->emitIASBytes(this); | 522 Asm->emitIASBytes(); |
| 523 } break; | 523 } break; |
| 524 case FT_Asm: | 524 case FT_Asm: |
| 525 llvm::report_fatal_error("Unexpected FT_Asm"); | 525 llvm::report_fatal_error("Unexpected FT_Asm"); |
| 526 break; | 526 break; |
| 527 } | 527 } |
| 528 } break; | 528 } break; |
| 529 case EmitterWorkItem::WI_Cfg: { | 529 case EmitterWorkItem::WI_Cfg: { |
| 530 if (!BuildDefs::dump()) | 530 if (!BuildDefs::dump()) |
| 531 llvm::report_fatal_error("WI_Cfg work item created inappropriately"); | 531 llvm::report_fatal_error("WI_Cfg work item created inappropriately"); |
| 532 lowerGlobalsIfNoCodeHasBeenSeen(); | 532 lowerGlobalsIfNoCodeHasBeenSeen(); |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1005 Ctx = Func->getContext(); | 1005 Ctx = Func->getContext(); |
| 1006 Active = | 1006 Active = |
| 1007 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); | 1007 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); |
| 1008 if (Active) | 1008 if (Active) |
| 1009 Ctx->pushTimer(ID, StackID); | 1009 Ctx->pushTimer(ID, StackID); |
| 1010 } | 1010 } |
| 1011 | 1011 |
| 1012 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); | 1012 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); |
| 1013 | 1013 |
| 1014 } // end of namespace Ice | 1014 } // end of namespace Ice |
| OLD | NEW |