| 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 |
| 11 /// This file defines a driver for translating PNaCl bitcode into native code. | 11 /// \brief Defines a driver for translating PNaCl bitcode into native code. |
| 12 /// It can either directly parse the binary bitcode file, or use LLVM routines | 12 /// |
| 13 /// to parse a textual bitcode file into LLVM IR and then convert LLVM IR into | 13 /// The driver can either directly parse the binary bitcode file, or use LLVM |
| 14 /// ICE. In either case, the high-level ICE is then compiled down to native | 14 /// routines to parse a textual bitcode file into LLVM IR and then convert LLVM |
| 15 /// code, as either an ELF object file or a textual asm file. | 15 /// IR into ICE. In either case, the high-level ICE is then compiled down to |
| 16 /// native code, as either an ELF object file or a textual asm file. |
| 16 /// | 17 /// |
| 17 //===----------------------------------------------------------------------===// | 18 //===----------------------------------------------------------------------===// |
| 18 | 19 |
| 19 #include "IceCompiler.h" | 20 #include "IceCompiler.h" |
| 20 | 21 |
| 21 #include "IceCfg.h" | 22 #include "IceCfg.h" |
| 22 #include "IceClFlags.h" | 23 #include "IceClFlags.h" |
| 23 #include "IceClFlagsExtra.h" | 24 #include "IceClFlagsExtra.h" |
| 24 #include "IceConverter.h" | 25 #include "IceConverter.h" |
| 25 #include "IceELFObjectWriter.h" | 26 #include "IceELFObjectWriter.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 183 |
| 183 if (Ctx.getFlags().getTimeEachFunction()) { | 184 if (Ctx.getFlags().getTimeEachFunction()) { |
| 184 constexpr bool DumpCumulative = false; | 185 constexpr bool DumpCumulative = false; |
| 185 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative); | 186 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative); |
| 186 } | 187 } |
| 187 constexpr bool FinalStats = true; | 188 constexpr bool FinalStats = true; |
| 188 Ctx.dumpStats("_FINAL_", FinalStats); | 189 Ctx.dumpStats("_FINAL_", FinalStats); |
| 189 } | 190 } |
| 190 | 191 |
| 191 } // end of namespace Ice | 192 } // end of namespace Ice |
| OLD | NEW |