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

Unified Diff: src/IceTargetLowering.h

Issue 417353003: Fix bug when atomic load is fused with an arith op (and not in the entry BB) (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: or do getLast by rewinding from Next 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 | « no previous file | src/IceTargetLowering.cpp » ('j') | src/IceTargetLowering.cpp » ('J')
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..e0e95fb8e7aef7eeb13ec162897aa677c5bce5ab 100644
--- a/src/IceTargetLowering.h
+++ b/src/IceTargetLowering.h
@@ -46,6 +46,7 @@ public:
InstList::iterator getCur() const { return Cur; }
InstList::iterator getEnd() const { return End; }
void insert(Inst *Inst);
+ Inst *getLastInserted() const;
void advanceCur() { Cur = Next; }
void advanceNext() { advance(Next); }
void setInsertPoint(const InstList::iterator &Position) { Next = Position; }
@@ -65,11 +66,14 @@ private:
// insertion point", to avoid confusion when previously-deleted
// instructions come between the two points.
InstList::iterator Next;
+ // Begin is a copy of Insts.begin(), used if iterators need to be rewinded.
Jim Stichnoth 2014/07/29 17:54:09 rewound
jvoung (off chromium) 2014/07/30 15:17:14 Done, used the "backward" language to match the ne
+ InstList::iterator Begin;
// 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 rewind(InstList::iterator &I) const;
Jim Stichnoth 2014/07/29 17:54:09 I assumed on first read that "rewind" meant "rewin
jvoung (off chromium) 2014/07/30 15:17:13 Good point, hmm... going to go with advanceForward
LoweringContext(const LoweringContext &) LLVM_DELETED_FUNCTION;
LoweringContext &operator=(const LoweringContext &) LLVM_DELETED_FUNCTION;
};
« no previous file with comments | « no previous file | src/IceTargetLowering.cpp » ('j') | src/IceTargetLowering.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698