| 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 // This file defines a driver for translating PNaCl bitcode into native code. | 10 // This file defines a driver for translating PNaCl bitcode into native code. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "IceConverter.h" | 29 #include "IceConverter.h" |
| 30 #include "IceELFObjectWriter.h" | 30 #include "IceELFObjectWriter.h" |
| 31 #include "PNaClTranslator.h" | 31 #include "PNaClTranslator.h" |
| 32 namespace Ice { | 32 namespace Ice { |
| 33 | 33 |
| 34 namespace { | 34 namespace { |
| 35 | 35 |
| 36 struct { | 36 struct { |
| 37 const char *FlagName; | 37 const char *FlagName; |
| 38 int FlagValue; | 38 int FlagValue; |
| 39 } ConditionalBuildAttributes[] = {{"dump", ALLOW_DUMP}, | 39 } ConditionalBuildAttributes[] = {{"dump", buildAllowsDump()}, |
| 40 {"disable_ir_gen", ALLOW_DISABLE_IR_GEN}, | 40 {"disable_ir_gen", ALLOW_DISABLE_IR_GEN}, |
| 41 {"llvm_cl", ALLOW_LLVM_CL}, | 41 {"llvm_cl", ALLOW_LLVM_CL}, |
| 42 {"llvm_ir", ALLOW_LLVM_IR}, | 42 {"llvm_ir", ALLOW_LLVM_IR}, |
| 43 {"llvm_ir_as_input", ALLOW_LLVM_IR_AS_INPUT}, | 43 {"llvm_ir_as_input", ALLOW_LLVM_IR_AS_INPUT}, |
| 44 {"minimal_build", ALLOW_MINIMAL_BUILD}, | 44 {"minimal_build", ALLOW_MINIMAL_BUILD}, |
| 45 {"browser_mode", PNACL_BROWSER_TRANSLATOR}}; | 45 {"browser_mode", PNACL_BROWSER_TRANSLATOR}}; |
| 46 | 46 |
| 47 // Validates values of build attributes. Prints them to Stream if | 47 // Validates values of build attributes. Prints them to Stream if |
| 48 // Stream is non-null. | 48 // Stream is non-null. |
| 49 void validateAndGenerateBuildAttributes(Ostream *Stream) { | 49 void validateAndGenerateBuildAttributes(Ostream *Stream) { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 if (Ctx.getFlags().getTimeEachFunction()) { | 161 if (Ctx.getFlags().getTimeEachFunction()) { |
| 162 const bool DumpCumulative = false; | 162 const bool DumpCumulative = false; |
| 163 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative); | 163 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative); |
| 164 } | 164 } |
| 165 constexpr bool FinalStats = true; | 165 constexpr bool FinalStats = true; |
| 166 Ctx.dumpStats("_FINAL_", FinalStats); | 166 Ctx.dumpStats("_FINAL_", FinalStats); |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // end of namespace Ice | 169 } // end of namespace Ice |
| OLD | NEW |