Adds support for "probe-stack" on x86
Details
Diff Detail
Event Timeline
lib/Target/X86/X86FrameLowering.cpp | ||
---|---|---|
495–499 | Please combine this logic with the if/else-if chain. | |
525–527 | Can you use getSUBrrOpcode here? | |
879 | Please capitalize variable names. | |
892 | (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 | ||
---|---|---|
284 | I think this part should be '\brief' | |
285–288 | 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 | ||
505–506 | Please place braces around this else | |
908–909 | 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. |
I think this part should be '\brief'