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

Unified Diff: src/IceGlobalContext.h

Issue 455593004: Subzero: Add a random number generator. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | src/IceGlobalContext.cpp » ('j') | src/IceGlobalContext.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceGlobalContext.h
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h
index e1b67ac555fd54b043234d6ff2bf7d0b63ee28ae..56a6c5a355ae6ccc7264e554fbb95266305805c4 100644
--- a/src/IceGlobalContext.h
+++ b/src/IceGlobalContext.h
@@ -22,6 +22,7 @@
#include "IceDefs.h"
#include "IceIntrinsics.h"
#include "IceTypes.h"
+#include "IceRNG.h"
Jim Stichnoth 2014/08/08 05:05:38 alphabetize includes
wala 2014/08/08 16:36:13 Done.
namespace Ice {
@@ -91,6 +92,8 @@ public:
const Intrinsics &getIntrinsicsInfo() const { return IntrinsicsInfo; }
+ RandomNumberGenerator &getRNG() { return RNG; }
Jim Stichnoth 2014/08/08 05:05:38 Please add TODOs in appropriate places: 1. Switch
wala 2014/08/08 16:36:13 Done.
+
private:
Ostream *StrDump; // Stream for dumping / diagnostics
Ostream *StrEmit; // Stream for code emission
@@ -103,6 +106,7 @@ private:
const OptLevel Opt;
const IceString TestPrefix;
bool HasEmittedFirstMethod;
+ RandomNumberGenerator RNG;
GlobalContext(const GlobalContext &) LLVM_DELETED_FUNCTION;
GlobalContext &operator=(const GlobalContext &) LLVM_DELETED_FUNCTION;
« no previous file with comments | « no previous file | src/IceGlobalContext.cpp » ('j') | src/IceGlobalContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698