| OLD | NEW |
| 1 //===- subzero/src/IceCompiler.cpp - Driver for bitcode translation -------===// | 1 //===- subzero/src/IceCompiler.cpp - Driver for bitcode translation -------===// |
| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 return Ctx.getErrorStatus()->assign(EC_Args); | 147 return Ctx.getErrorStatus()->assign(EC_Args); |
| 148 } | 148 } |
| 149 | 149 |
| 150 Ctx.waitForWorkerThreads(); | 150 Ctx.waitForWorkerThreads(); |
| 151 if (Translator->getErrorStatus()) { | 151 if (Translator->getErrorStatus()) { |
| 152 Ctx.getErrorStatus()->assign(Translator->getErrorStatus().value()); | 152 Ctx.getErrorStatus()->assign(Translator->getErrorStatus().value()); |
| 153 } else { | 153 } else { |
| 154 Ctx.lowerGlobals("last"); | 154 Ctx.lowerGlobals("last"); |
| 155 Ctx.lowerProfileData(); | 155 Ctx.lowerProfileData(); |
| 156 Ctx.lowerConstants(); | 156 Ctx.lowerConstants(); |
| 157 Ctx.lowerJumpTables(); |
| 157 | 158 |
| 158 if (Ctx.getFlags().getOutFileType() == FT_Elf) { | 159 if (Ctx.getFlags().getOutFileType() == FT_Elf) { |
| 159 TimerMarker T1(Ice::TimerStack::TT_emit, &Ctx); | 160 TimerMarker T1(Ice::TimerStack::TT_emit, &Ctx); |
| 160 Ctx.getObjectWriter()->setUndefinedSyms(Ctx.getConstantExternSyms()); | 161 Ctx.getObjectWriter()->setUndefinedSyms(Ctx.getConstantExternSyms()); |
| 161 Ctx.getObjectWriter()->writeNonUserSections(); | 162 Ctx.getObjectWriter()->writeNonUserSections(); |
| 162 } | 163 } |
| 163 } | 164 } |
| 164 | 165 |
| 165 if (Ctx.getFlags().getSubzeroTimingEnabled()) | 166 if (Ctx.getFlags().getSubzeroTimingEnabled()) |
| 166 Ctx.dumpTimers(); | 167 Ctx.dumpTimers(); |
| 167 | 168 |
| 168 if (Ctx.getFlags().getTimeEachFunction()) { | 169 if (Ctx.getFlags().getTimeEachFunction()) { |
| 169 const bool DumpCumulative = false; | 170 const bool DumpCumulative = false; |
| 170 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative); | 171 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative); |
| 171 } | 172 } |
| 172 constexpr bool FinalStats = true; | 173 constexpr bool FinalStats = true; |
| 173 Ctx.dumpStats("_FINAL_", FinalStats); | 174 Ctx.dumpStats("_FINAL_", FinalStats); |
| 174 } | 175 } |
| 175 | 176 |
| 176 } // end of namespace Ice | 177 } // end of namespace Ice |
| OLD | NEW |