Adds support for "probe-stack" on x86
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/X86/X86FrameLowering.cpp | ||
---|---|---|
420–425 | Please combine this logic with the if/else-if chain. | |
453 | Can you use getSUBrrOpcode here? | |
823 | Please capitalize variable names. | |
833 | (Is64Bit ? 8 : 4) is just SlotSize. Also, this looks formatted strangely; consider running clang-format on this. | |
test/CodeGen/X86/stack-probes.ll | ||
2–3 | FIleCheck prefixes are usually all caps. |
include/llvm/CodeGen/MachineFunction.h | ||
---|---|---|
281 ↗ | (On Diff #25447) | I think this part should be '\brief' |
282–285 ↗ | (On Diff #25447) | This bit should just be with the definition as per the coding standard: http://llvm.org/docs/CodingStandards.html#doxygen-use-in-documentation-comments |
lib/Target/X86/X86FrameLowering.cpp | ||
421–422 | Please place braces around this else | |
850–851 | This comment should probably be with the NumBytesAdj bit above. Please update the -4 bit as well. |
The guard region size is passed in RBX/EBX to __probestack. R11 and RBX/EBX is properly spilled if live.
Can we have a test which exercises the [RE]BX case?
lib/Target/X86/X86FrameLowering.cpp | ||
---|---|---|
205 | getX86SubSuperRegister(CheckReg, MVT::i32) can be hoisted out of the loop. | |
436–446 | Please make this an early return, it would reduce indentation. | |
439 | Comments should be complete sentences and end with punctuation. | |
444 | Please end this sentence with a period. | |
445 | Please use SlotSize here. | |
456–468 | Please make this an early return, it would reduce indentation. | |
876 | I think this deserves a comment. | |
881 | I think this also deserves a comment. |
Please place braces around this else