[X86] add dwarf annotation for inline stack probe
authorYangKeao <keao.yang@yahoo.com>
Wed, 31 Mar 2021 20:44:54 +0000 (23:44 +0300)
committerSimonas Kazlauskas <git@kazlauskas.me>
Wed, 31 Mar 2021 21:32:50 +0000 (00:32 +0300)
commit1c268a8ff4e90a85d0e634350b1104080614cf2b
treeac9fa9bcd051ff5687eacdbe198b7124225ca053
parenta879a1b034943318f2a8fa52c12bd142df5ebd51
[X86] add dwarf annotation for inline stack probe

While probing stack, the stack register is moved without dwarf
information, which could cause panic if unwind the backtrace.
This commit only add annotation for the inline stack probe case.
Dwarf information for the loop case should be done in another
patch and need further discussion.

Reviewed By: nagisa

Differential Revision: https://reviews.llvm.org/D99579
llvm/lib/Target/X86/X86FrameLowering.cpp
llvm/lib/Target/X86/X86FrameLowering.h
llvm/test/CodeGen/X86/stack-clash-medium-natural-probes-mutliple-objects.ll
llvm/test/CodeGen/X86/stack-clash-medium-natural-probes.ll
llvm/test/CodeGen/X86/stack-clash-medium.ll
llvm/test/CodeGen/X86/stack-clash-unknown-call.ll