Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: src/IceCompiler.cpp

Issue 1918213003: Subzero, Wasm: Dynamically reallocate read buffer. Runtime improvements. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: General improvements Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« runtime/wasm-runtime.cpp ('K') | « runtime/wasm-runtime.cpp ('k') | src/WasmTranslator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698