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 /// \brief Defines a driver for translating PNaCl bitcode into native code. | 11 /// \brief Defines a driver for translating PNaCl bitcode into native code. |
12 /// | 12 /// |
13 /// The driver can either directly parse the binary bitcode file, or use LLVM | 13 /// The driver can either directly parse the binary bitcode file, or use LLVM |
14 /// routines to parse a textual bitcode file into LLVM IR and then convert LLVM | 14 /// routines to parse a textual bitcode file into LLVM IR and then convert LLVM |
15 /// IR into ICE. In either case, the high-level ICE is then compiled down to | 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 /// native code, as either an ELF object file or a textual asm file. |
17 /// | 17 /// |
18 //===----------------------------------------------------------------------===// | 18 //===----------------------------------------------------------------------===// |
19 | 19 |
20 #include "IceCompiler.h" | 20 #include "IceCompiler.h" |
21 | 21 |
22 #include "IceBuildDefs.h" | 22 #include "IceBuildDefs.h" |
23 #include "IceCfg.h" | 23 #include "IceCfg.h" |
24 #include "IceClFlags.h" | 24 #include "IceClFlags.h" |
25 #include "IceConverter.h" | 25 #include "IceConverter.h" |
26 #include "IceELFObjectWriter.h" | 26 #include "IceELFObjectWriter.h" |
27 #include "IceInstrumentation.h" | |
Karl
2016/06/06 22:27:02
Why is this included. It doesn't appear to be used
tlively
2016/06/07 00:43:05
Done.
| |
27 #include "PNaClTranslator.h" | 28 #include "PNaClTranslator.h" |
28 #include "WasmTranslator.h" | 29 #include "WasmTranslator.h" |
29 | 30 |
30 #ifdef __clang__ | 31 #ifdef __clang__ |
31 #pragma clang diagnostic push | 32 #pragma clang diagnostic push |
32 #pragma clang diagnostic ignored "-Wunused-parameter" | 33 #pragma clang diagnostic ignored "-Wunused-parameter" |
33 #endif // __clang__ | 34 #endif // __clang__ |
34 | 35 |
35 #include "llvm/ADT/STLExtras.h" | 36 #include "llvm/ADT/STLExtras.h" |
36 #include "llvm/Bitcode/NaCl/NaClReaderWriter.h" | 37 #include "llvm/Bitcode/NaCl/NaClReaderWriter.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
176 Ctx.dumpTimers(); | 177 Ctx.dumpTimers(); |
177 | 178 |
178 if (getFlags().getTimeEachFunction()) { | 179 if (getFlags().getTimeEachFunction()) { |
179 constexpr bool NoDumpCumulative = false; | 180 constexpr bool NoDumpCumulative = false; |
180 Ctx.dumpTimers(GlobalContext::TSK_Funcs, NoDumpCumulative); | 181 Ctx.dumpTimers(GlobalContext::TSK_Funcs, NoDumpCumulative); |
181 } | 182 } |
182 Ctx.dumpStats(); | 183 Ctx.dumpStats(); |
183 } | 184 } |
184 | 185 |
185 } // end of namespace Ice | 186 } // end of namespace Ice |
OLD | NEW |