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

Unified Diff: src/IceTargetLowering.cpp

Issue 1253833002: Subzero: Cleanly implement register allocation after phi lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Improve translation-time performance 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/IceTargetLowering.h ('k') | src/IceTargetLoweringARM32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLowering.cpp
diff --git a/src/IceTargetLowering.cpp b/src/IceTargetLowering.cpp
index 671bab029d0d30871a55e94f9a27052f27f36a9d..417ad2f11d3dfa86505e0c657307a879a64913e3 100644
--- a/src/IceTargetLowering.cpp
+++ b/src/IceTargetLowering.cpp
@@ -211,6 +211,20 @@ void TargetLowering::lower() {
Context.advanceNext();
}
+void TargetLowering::lowerInst(CfgNode *Node, InstList::iterator Next,
+ InstHighLevel *Instr) {
+ // TODO(stichnot): Consider modifying the design/implementation to avoid
+ // multiple init() calls when using lowerInst() to lower several instructions
+ // in the same node.
+ Context.init(Node);
+ Context.setNext(Next);
+ Context.insert(Instr);
+ --Next;
+ assert(&*Next == Instr);
+ Context.setCur(Next);
+ lower();
+}
+
void TargetLowering::lowerOther(const Inst *Instr) {
(void)Instr;
Func->setError("Can't lower unsupported instruction type");
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringARM32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698