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

Unified Diff: src/IceTranslator.h

Issue 395193005: Start processing function blocks in Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix issues in patch set 10. Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: src/IceTranslator.h
diff --git a/src/IceTranslator.h b/src/IceTranslator.h
index 11899513e415337d0b1b01a53747dfa9668093e3..d3c1760640609d104d0de44760a67b803bd5172d 100644
--- a/src/IceTranslator.h
+++ b/src/IceTranslator.h
@@ -35,6 +35,18 @@ public:
~Translator();
bool getErrorStatus() const { return ErrorStatus; }
+ GlobalContext *getContext() const { return Ctx; }
+
+ ClFlags &getFlags() const { return Flags; }
+
+ /// Translates the constructed ICE function Fcn to machine code.
+ /// Takes ownership of Fcn. Note: As a side effect, Field Func is
+ /// set to Fcn.
+ void translateFcn(Cfg *Fcn);
+
+ /// Emits the constant pool.
+ void emitConstants();
+
protected:
GlobalContext *Ctx;
ClFlags &Flags;
@@ -51,13 +63,6 @@ protected:
// that.
llvm::OwningPtr<Cfg> Func;
- /// Translates the constructed ICE function Fcn to machine code.
- /// Note: As a side effect, Field Func is set to Fcn.
- void translateFcn(Cfg *Fcn);
-
- /// Emits the constant pool.
- void emitConstants();
-
private:
Translator(const Translator &) LLVM_DELETED_FUNCTION;
Translator &operator=(const Translator &) LLVM_DELETED_FUNCTION;

Powered by Google App Engine
This is Rietveld 408576698