[SubZero] Implement lowerSwitch for MIPS The patch implements lowerSwitch for i32 and i64 types. R=stichnot@chromium.org Review URL: https://codereview.chromium.org/2289043002 . Patch from Jaydeep Patil <jaydeep.patil@imgtec.com>.
diff --git a/src/IceTargetLoweringMIPS32.h b/src/IceTargetLoweringMIPS32.h index 70fed4e..5d5a98e 100644 --- a/src/IceTargetLoweringMIPS32.h +++ b/src/IceTargetLoweringMIPS32.h
@@ -178,6 +178,13 @@ Context.insert<InstMIPS32Br>(TargetTrue, TargetFalse, Src0, Condition); } + void _br(CfgNode *TargetTrue, CfgNode *TargetFalse, Operand *Src0, + Operand *Src1, const InstMIPS32Label *Label, + CondMIPS32::Cond Condition) { + Context.insert<InstMIPS32Br>(TargetTrue, TargetFalse, Src0, Src1, Label, + Condition); + } + void _ret(Variable *RA, Variable *Src0 = nullptr) { Context.insert<InstMIPS32Ret>(RA, Src0); }