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]; |