| 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 /// This file 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 /// It can either directly parse the binary bitcode file, or use LLVM routines |
| 13 /// to parse a textual bitcode file into LLVM IR and then convert LLVM IR into | 13 /// to parse a textual bitcode file into LLVM IR and then convert LLVM IR into |
| 14 /// ICE. In either case, the high-level ICE is then compiled down to native | 14 /// ICE. In either case, the high-level ICE is then compiled down to native |
| 15 /// code, as either an ELF object file or a textual asm file. | 15 /// code, as either an ELF object file or a textual asm file. |
| 16 /// | 16 /// |
| 17 //===----------------------------------------------------------------------===// | 17 //===----------------------------------------------------------------------===// |
| 18 | 18 |
| 19 #include "IceCompiler.h" | 19 #include "IceCompiler.h" |
| 20 | 20 |
| 21 #include "IceCfg.h" | 21 #include "IceCfg.h" |
| 22 #include "IceClFlags.h" | 22 #include "IceClFlags.h" |
| 23 #include "IceClFlagsExtra.h" | 23 #include "IceClFlagsExtra.h" |
| 24 #include "IceConverter.h" | 24 #include "IceConverter.h" |
| 25 #include "IceELFObjectWriter.h" | 25 #include "IceELFObjectWriter.h" |
| 26 #include "PNaClTranslator.h" | 26 #include "PNaClTranslator.h" |
| 27 | 27 |
| 28 #pragma clang diagnostic push | 28 #pragma clang diagnostic push |
| 29 #pragma clang diagnostic ignored "-Wunused-parameter" | 29 #pragma clang diagnostic ignored "-Wunused-parameter" |
| 30 #pragma clang diagnostic ignored "-Wshadow" |
| 30 #include "llvm/ADT/STLExtras.h" | 31 #include "llvm/ADT/STLExtras.h" |
| 31 #include "llvm/IR/LLVMContext.h" | 32 #include "llvm/IR/LLVMContext.h" |
| 32 #include "llvm/IR/Module.h" | 33 #include "llvm/IR/Module.h" |
| 33 #include "llvm/IRReader/IRReader.h" | 34 #include "llvm/IRReader/IRReader.h" |
| 34 #include "llvm/Support/SourceMgr.h" | 35 #include "llvm/Support/SourceMgr.h" |
| 35 #include "llvm/Support/StreamingMemoryObject.h" | 36 #include "llvm/Support/StreamingMemoryObject.h" |
| 36 #pragma clang diagnostic pop | 37 #pragma clang diagnostic pop |
| 37 | 38 |
| 38 namespace Ice { | 39 namespace Ice { |
| 39 | 40 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |