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

Unified Diff: src/IceOperand.h

Issue 1691193002: Subzero: Prototype to make use of RegNumT::No Register more concise (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: changes suggested by stichnot Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceTargetLoweringMIPS32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceOperand.h
diff --git a/src/IceOperand.h b/src/IceOperand.h
index a20308660ced41885cc20c2d8cdf756a5ee4ffe3..d3306736e9a65d3dd206219d979310c06ebd211c 100644
--- a/src/IceOperand.h
+++ b/src/IceOperand.h
@@ -443,6 +443,8 @@ public:
enum { NoRegisterValue = std::numeric_limits<BaseType>::max() };
const static RegNumT NoRegister /* = NoRegisterValue */;
+ bool hasValue() const {return Value == NoRegisterValue;}
Jim Stichnoth 2016/02/12 03:16:51 You really need "return Value != NoRegisterValue;"
+
private:
BaseType Value = NoRegisterValue;
static BaseType Limit;
« no previous file with comments | « no previous file | src/IceTargetLoweringMIPS32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698