Add code for selection of G_LOAD, G_STORE, G_GEP, G_FRAMEINDEX and G_CONSTANT.
Support loads and stores of i32 values.
Details
Details
Diff Detail
Diff Detail
Event Timeline
| lib/Target/Mips/MipsInstructionSelector.cpp | ||
|---|---|---|
| 135 | Redundant empty line. | |
| 143 | Ditto | |
| 152 | I suggest to remove the selectLoadStoreOpcode function and inline the code as follow. I think it explicitly show when we do nothing and when need to call BuildMM. if (DestRegBank != Mips::GPRBRegBankID || OpSize != 32)
return false;
const unsigned NewOpc =
I.getOpcode() == G_STORE ? Mips::SW : Mips::LW; | |
| 162 | Redundant empty line. | |
Redundant empty line.