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

Unified Diff: src/IceTargetLoweringMIPS32.h

Issue 2005823002: [Subzero][MIPS32] Add LowerStore implementation (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 7 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
Index: src/IceTargetLoweringMIPS32.h
diff --git a/src/IceTargetLoweringMIPS32.h b/src/IceTargetLoweringMIPS32.h
index e9f11a3b77431eb4bb134bba785c57762f0eb580..f2b9aa4ca39049212df9bc05c135d4c49ffdbcc0 100644
--- a/src/IceTargetLoweringMIPS32.h
+++ b/src/IceTargetLoweringMIPS32.h
@@ -111,8 +111,10 @@ public:
void emitVariable(const Variable *Var) const override;
void emit(const ConstantInteger32 *C) const final {
- (void)C;
- llvm::report_fatal_error("Not yet implemented");
+ if (!BuildDefs::dump())
+ return;
+ Ostream &Str = Ctx->getStrEmit();
+ Str << C->getValue();
}
void emit(const ConstantInteger64 *C) const final {
(void)C;
@@ -276,6 +278,10 @@ public:
Context.insert<InstMIPS32Subu>(Dest, Src0, Src1);
}
+ void _sw(Variable *Value, OperandMIPS32Mem *Mem) {
+ Context.insert<InstMIPS32Sw>(Value, Mem);
+ }
+
void _xor(Variable *Dest, Variable *Src0, Variable *Src1) {
Context.insert<InstMIPS32Xor>(Dest, Src0, Src1);
}
@@ -375,6 +381,8 @@ protected:
const SmallBitVector &ExcludeRegisters,
uint64_t Salt) const override;
+ OperandMIPS32Mem *formMemoryOperand(Operand *Ptr, Type Ty);
+
bool UsesFramePointer = false;
bool NeedsStackAlignment = false;
static SmallBitVector TypeToRegisterSet[RCMIPS32_NUM];

Powered by Google App Engine
This is Rietveld 408576698