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

Side by Side Diff: src/PNaClTranslator.h

Issue 876083007: Subzero: Emit functions and global initializers in a separate thread. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More code review changes Created 5 years, 10 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
« no previous file with comments | « src/IceUtils.h ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/PNaClTranslator.h - ICE from bitcode ---------*- C++ -*-===// 1 //===- subzero/src/PNaClTranslator.h - ICE from bitcode ---------*- C++ -*-===//
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 declares the PNaCl bitcode file to ICE, to machine code 10 // This file declares the PNaCl bitcode file to ICE, to machine code
(...skipping 12 matching lines...) Expand all
23 class MemoryBuffer; 23 class MemoryBuffer;
24 } // end of namespace llvm 24 } // end of namespace llvm
25 25
26 namespace Ice { 26 namespace Ice {
27 27
28 class PNaClTranslator : public Translator { 28 class PNaClTranslator : public Translator {
29 PNaClTranslator(const PNaClTranslator &) = delete; 29 PNaClTranslator(const PNaClTranslator &) = delete;
30 PNaClTranslator &operator=(const PNaClTranslator &) = delete; 30 PNaClTranslator &operator=(const PNaClTranslator &) = delete;
31 31
32 public: 32 public:
33 PNaClTranslator(GlobalContext *Ctx, const ClFlags &Flags) 33 PNaClTranslator(GlobalContext *Ctx) : Translator(Ctx) {}
34 : Translator(Ctx, Flags) {}
35 34
36 // Reads the PNaCl bitcode file and translates to ICE, which is then 35 // Reads the PNaCl bitcode file and translates to ICE, which is then
37 // converted to machine code. Sets ErrorStatus to 1 if any errors 36 // converted to machine code. Sets ErrorStatus to 1 if any errors
38 // occurred. 37 // occurred.
39 void translate(const std::string &IRFilename); 38 void translate(const std::string &IRFilename);
40 39
41 // Reads MemBuf, assuming it is the PNaCl bitcode contents of IRFilename. 40 // Reads MemBuf, assuming it is the PNaCl bitcode contents of IRFilename.
42 void translateBuffer(const std::string &IRFilename, 41 void translateBuffer(const std::string &IRFilename,
43 llvm::MemoryBuffer *MemBuf); 42 llvm::MemoryBuffer *MemBuf);
44 }; 43 };
45 44
46 } // end of namespace Ice 45 } // end of namespace Ice
47 46
48 #endif // SUBZERO_SRC_PNACLTRANSLATOR_H 47 #endif // SUBZERO_SRC_PNACLTRANSLATOR_H
OLDNEW
« no previous file with comments | « src/IceUtils.h ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698