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

Side by Side Diff: src/IceTranslator.h

Issue 1837663002: Initial Subzero WASM prototype. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review feedback and merging master Created 4 years, 8 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/IceInst.h ('k') | src/IceTranslator.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/IceTranslator.h - ICE to machine code --------*- C++ -*-===// 1 //===- subzero/src/IceTranslator.h - ICE to machine code --------*- 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 /// \file 10 /// \file
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 uint32_t getNextSequenceNumber() { return NextSequenceNumber++; } 68 uint32_t getNextSequenceNumber() { return NextSequenceNumber++; }
69 69
70 protected: 70 protected:
71 GlobalContext *Ctx; 71 GlobalContext *Ctx;
72 uint32_t NextSequenceNumber; 72 uint32_t NextSequenceNumber;
73 /// ErrorCode of the translation. 73 /// ErrorCode of the translation.
74 ErrorCode ErrorStatus; 74 ErrorCode ErrorStatus;
75 }; 75 };
76 76
77 class CfgOptWorkItem final : public OptWorkItem {
78 CfgOptWorkItem() = delete;
79 CfgOptWorkItem(const CfgOptWorkItem &) = delete;
80 CfgOptWorkItem &operator=(const CfgOptWorkItem &) = delete;
81
82 public:
83 CfgOptWorkItem(std::unique_ptr<Cfg> Func) : Func(std::move(Func)) {}
84 std::unique_ptr<Cfg> getParsedCfg() override { return std::move(Func); }
85 ~CfgOptWorkItem() override = default;
86
87 private:
88 std::unique_ptr<Ice::Cfg> Func;
89 };
90
77 } // end of namespace Ice 91 } // end of namespace Ice
78 92
79 #endif // SUBZERO_SRC_ICETRANSLATOR_H 93 #endif // SUBZERO_SRC_ICETRANSLATOR_H
OLDNEW
« no previous file with comments | « src/IceInst.h ('k') | src/IceTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698