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

Unified Diff: src/IceTargetLowering.h

Issue 413903002: Subzero: Add a peephole to fuse cmpxchg w/ later cmp+branch. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: blank 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
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLowering.h
diff --git a/src/IceTargetLowering.h b/src/IceTargetLowering.h
index da52adfcc7ae838a8781085a8cd2954d9d48823e..ec86cffae50396a54690c2d3167cebb01070b562 100644
--- a/src/IceTargetLowering.h
+++ b/src/IceTargetLowering.h
@@ -41,6 +41,12 @@ public:
return NULL;
return *Next;
}
+ Inst *getNextInst(InstList::iterator &Iter) const {
+ advance(Iter);
+ if (Iter == End)
+ return NULL;
+ return *Iter;
+ }
CfgNode *getNode() const { return Node; }
bool atEnd() const { return Cur == End; }
InstList::iterator getCur() const { return Cur; }
@@ -68,8 +74,8 @@ private:
// End is a copy of Insts.end(), used if Next needs to be advanced.
InstList::iterator End;
- void skipDeleted(InstList::iterator &I);
- void advance(InstList::iterator &I);
+ void skipDeleted(InstList::iterator &I) const;
+ void advance(InstList::iterator &I) const;
LoweringContext(const LoweringContext &) LLVM_DELETED_FUNCTION;
LoweringContext &operator=(const LoweringContext &) LLVM_DELETED_FUNCTION;
};
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698