Adds support for "probe-stack" on x86
Details
Diff Detail
Event Timeline
lib/Target/X86/X86FrameLowering.cpp | ||
---|---|---|
411–426 | Please combine this logic with the if/else-if chain. | |
452–454 | Can you use getSUBrrOpcode here? | |
820 | Please capitalize variable names. | |
831 | (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 | I think this part should be '\brief' | |
282–285 | 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 | ||
---|---|---|
199 | getX86SubSuperRegister(CheckReg, MVT::i32) can be hoisted out of the loop. | |
405–415 | Please make this an early return, it would reduce indentation. | |
408 | Comments should be complete sentences and end with punctuation. | |
413 | Please end this sentence with a period. | |
414 | Please use SlotSize here. | |
425–437 | Please make this an early return, it would reduce indentation. | |
818–819 | I think this deserves a comment. | |
822 | I think this also deserves a comment. |
I think this part should be '\brief'