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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 Ctx.waitForWorkerThreads(); | 122 Ctx.waitForWorkerThreads(); |
123 if (Translator->getErrorStatus()) { | 123 if (Translator->getErrorStatus()) { |
124 Ctx.getErrorStatus()->assign(Translator->getErrorStatus().value()); | 124 Ctx.getErrorStatus()->assign(Translator->getErrorStatus().value()); |
125 } else { | 125 } else { |
126 Ctx.lowerGlobals("last"); | 126 Ctx.lowerGlobals("last"); |
127 Ctx.lowerProfileData(); | 127 Ctx.lowerProfileData(); |
128 Ctx.lowerConstants(); | 128 Ctx.lowerConstants(); |
129 Ctx.lowerJumpTables(); | 129 Ctx.lowerJumpTables(); |
130 | 130 |
131 if (Ctx.getFlags().getOutFileType() == FT_Elf) { | 131 if (Ctx.getFlags().getOutFileType() == FT_Elf) { |
132 TimerMarker T1(Ice::TimerStack::TT_emit, &Ctx); | 132 TimerMarker T1(Ice::TimerStack::TT_emitAsm, &Ctx); |
133 Ctx.getObjectWriter()->setUndefinedSyms(Ctx.getConstantExternSyms()); | 133 Ctx.getObjectWriter()->setUndefinedSyms(Ctx.getConstantExternSyms()); |
134 Ctx.getObjectWriter()->writeNonUserSections(); | 134 Ctx.getObjectWriter()->writeNonUserSections(); |
135 } | 135 } |
136 } | 136 } |
137 | 137 |
138 if (Ctx.getFlags().getSubzeroTimingEnabled()) | 138 if (Ctx.getFlags().getSubzeroTimingEnabled()) |
139 Ctx.dumpTimers(); | 139 Ctx.dumpTimers(); |
140 | 140 |
141 if (Ctx.getFlags().getTimeEachFunction()) { | 141 if (Ctx.getFlags().getTimeEachFunction()) { |
142 constexpr bool DumpCumulative = false; | 142 constexpr bool DumpCumulative = false; |
143 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative); | 143 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative); |
144 } | 144 } |
145 constexpr bool FinalStats = true; | 145 constexpr bool FinalStats = true; |
146 Ctx.dumpStats("_FINAL_", FinalStats); | 146 Ctx.dumpStats("_FINAL_", FinalStats); |
147 } | 147 } |
148 | 148 |
149 } // end of namespace Ice | 149 } // end of namespace Ice |
OLD | NEW |