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

Unified Diff: src/IceTargetLowering.h

Issue 1241763002: ARM: Add a postRA pass to legalize stack offsets. Greedy approach (reserve IP). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: review Created 5 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/IceOperand.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 e87bf936bbea58ec92b84e5f3236671e90337197..fad9303fc5c4cf0519ee475acd9ac24edc7b12f9 100644
--- a/src/IceTargetLowering.h
+++ b/src/IceTargetLowering.h
@@ -91,6 +91,24 @@ private:
void advanceForward(InstList::iterator &I) const;
};
+/// A helper class to advance the LoweringContext at each loop iteration.
+class PostIncrLoweringContext {
+ PostIncrLoweringContext() = delete;
+ PostIncrLoweringContext(const PostIncrLoweringContext &) = delete;
+ PostIncrLoweringContext &operator=(const PostIncrLoweringContext &) = delete;
+
+public:
+ explicit PostIncrLoweringContext(LoweringContext &Context)
+ : Context(Context) {}
+ ~PostIncrLoweringContext() {
+ Context.advanceCur();
+ Context.advanceNext();
+ }
+
+private:
+ LoweringContext &Context;
+};
+
class TargetLowering {
TargetLowering() = delete;
TargetLowering(const TargetLowering &) = delete;
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698