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

Unified Diff: src/IceTargetLoweringMIPS32.h

Issue 2455933002: Subzero, MIPS32: Stacksave/Stackrestore implementation (Closed)
Patch Set: Enabled tests in nacl-other-intrinsics.ll Created 4 years, 2 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/IceTargetLoweringMIPS32.h
diff --git a/src/IceTargetLoweringMIPS32.h b/src/IceTargetLoweringMIPS32.h
index 72fc1cd72414d3e3d67e2c00bd5f5d8614d22289..d7027b121f53a5d98a87b4fadb4cb8d610c0a57e 100644
--- a/src/IceTargetLoweringMIPS32.h
+++ b/src/IceTargetLoweringMIPS32.h
@@ -365,6 +365,21 @@ public:
}
}
+ void _mov_redefined(Variable *Dest, Operand *Src0, Operand *Src1 = nullptr) {
+ if (llvm::isa<ConstantRelocatable>(Src0)) {
+ Context.insert<InstMIPS32La>(Dest, Src0);
+ } else {
+ auto *Instr = Context.insert<InstMIPS32Mov>(Dest, Src0, Src1);
+ Instr->setDestRedefined();
+ if (Instr->getDestHi() != nullptr) {
+ // If Instr is multi-dest, then Dest must be a Variable64On32. We add a
+ // fake-def for Instr.DestHi here.
+ assert(llvm::isa<Variable64On32>(Dest));
+ Context.insert<InstFakeDef>(Instr->getDestHi());
+ }
+ }
+ }
+
void _mov_d(Variable *Dest, Variable *Src) {
Context.insert<InstMIPS32Mov_d>(Dest, Src);
}
« 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