This allows AVR to lower frames into assembly code.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
| lib/Target/AVR/AVRFrameLowering.cpp | ||
|---|---|---|
| 49 ↗ | (On Diff #72847) | Isn't this last condition backwards? Also, why use isUInt? |
| 59 ↗ | (On Diff #72847) | Subtarget should be obtained from a MachineFunction, since it can be different every time. |
| 148 ↗ | (On Diff #72847) | Check for MBBI being MBB.end(). Also, getDesc() is not necessary. |
| 156 ↗ | (On Diff #72847) | Same note about Subtarget. |
| 161 ↗ | (On Diff #72847) | These calls do not modify MBBI. |
| 182 ↗ | (On Diff #72847) | That's just esthetics, but most of these parentheses are not necessary. |
| 239 ↗ | (On Diff #72847) | Subtarget from MF. |
| 279 ↗ | (On Diff #72847) | And here... |
| 281 ↗ | (On Diff #72847) | Make it a range-based loop? |
| 301 ↗ | (On Diff #72847) | "auto" is ok for iterators. |
| 305 ↗ | (On Diff #72847) | Opcode is unsigned. |
| 327 ↗ | (On Diff #72847) | ... |
| 364 ↗ | (On Diff #72847) | ... |
| 441 ↗ | (On Diff #72847) | Is this "if (x - y)"? if (x != y) would be clearer. |
| 463 ↗ | (On Diff #72847) | Make it a range-based loop. |
| 466 ↗ | (On Diff #72847) | Same here. |
| 475 ↗ | (On Diff #72847) | And here. |
| 515 ↗ | (On Diff #72847) | ... |
| 529 ↗ | (On Diff #72847) | And here. |
Code review from Krzysztof
- Converted a bunch of loops into range syntax
- Get AVRSubtarget from the current machine function
Thanks for the comprehensive review Krzysztof :)
| lib/Target/AVR/AVRFrameLowering.cpp | ||
|---|---|---|
| 49 ↗ | (On Diff #72847) |
Nice catch :)
I feel like it's more descriptive than Size > 63, which seems arbitrary - if we're checking if it can fit into 6 bits, it gives us a little more context on why it's there. |