| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 49 namespace Ice { | 49 namespace Ice { | 
| 50 | 50 | 
| 51 namespace { | 51 namespace { | 
| 52 | 52 | 
| 53 bool llvmIRInput(const std::string &Filename) { | 53 bool llvmIRInput(const std::string &Filename) { | 
| 54   return BuildDefs::llvmIrAsInput() && | 54   return BuildDefs::llvmIrAsInput() && | 
| 55          std::regex_match(Filename, std::regex(".*\\.ll")); | 55          std::regex_match(Filename, std::regex(".*\\.ll")); | 
| 56 } | 56 } | 
| 57 | 57 | 
| 58 bool wasmInput(const std::string &Filename) { | 58 bool wasmInput(const std::string &Filename) { | 
| 59   return BuildDefs::llvmIrAsInput() && | 59   return BuildDefs::wasm() && | 
| 60          std::regex_match(Filename, std::regex(".*\\.wasm")); | 60          std::regex_match(Filename, std::regex(".*\\.wasm")); | 
| 61 } | 61 } | 
| 62 | 62 | 
| 63 } // end of anonymous namespace | 63 } // end of anonymous namespace | 
| 64 | 64 | 
| 65 void Compiler::run(const Ice::ClFlags &Flags, GlobalContext &Ctx, | 65 void Compiler::run(const Ice::ClFlags &Flags, GlobalContext &Ctx, | 
| 66                    std::unique_ptr<llvm::DataStreamer> &&InputStream) { | 66                    std::unique_ptr<llvm::DataStreamer> &&InputStream) { | 
| 67   // The Minimal build (specifically, when dump()/emit() are not implemented) | 67   // The Minimal build (specifically, when dump()/emit() are not implemented) | 
| 68   // allows only --filetype=obj. Check here to avoid cryptic error messages | 68   // allows only --filetype=obj. Check here to avoid cryptic error messages | 
| 69   // downstream. | 69   // downstream. | 
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 165     Ctx.dumpTimers(); | 165     Ctx.dumpTimers(); | 
| 166 | 166 | 
| 167   if (getFlags().getTimeEachFunction()) { | 167   if (getFlags().getTimeEachFunction()) { | 
| 168     constexpr bool NoDumpCumulative = false; | 168     constexpr bool NoDumpCumulative = false; | 
| 169     Ctx.dumpTimers(GlobalContext::TSK_Funcs, NoDumpCumulative); | 169     Ctx.dumpTimers(GlobalContext::TSK_Funcs, NoDumpCumulative); | 
| 170   } | 170   } | 
| 171   Ctx.dumpStats(); | 171   Ctx.dumpStats(); | 
| 172 } | 172 } | 
| 173 | 173 | 
| 174 } // end of namespace Ice | 174 } // end of namespace Ice | 
| OLD | NEW | 
|---|