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
- Repository
- rL LLVM
Event Timeline
lib/Target/Mips/MipsInstructionSelector.cpp | ||
---|---|---|
135 ↗ | (On Diff #154172) | Redundant empty line. |
143 ↗ | (On Diff #154172) | Ditto |
152 ↗ | (On Diff #154172) | 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 ↗ | (On Diff #154172) | Redundant empty line. |