]> granicus.if.org Git - llvm/commit
Add a "probe-stack" attribute
authorwhitequark <whitequark@whitequark.org>
Wed, 21 Jun 2017 18:46:50 +0000 (18:46 +0000)
committerwhitequark <whitequark@whitequark.org>
Wed, 21 Jun 2017 18:46:50 +0000 (18:46 +0000)
commit4c34d0afe1f490c6e864834bf4c02b82c6b4524d
treec99aa6ffbf777c653a25c66a7e7706a8bc091856
parent52ebe03cb0a728134e66d04f85281bc5a60d7091
Add a "probe-stack" attribute

This attribute is used to ensure the guard page is triggered on stack
overflow. Stack frames larger than the guard page size will generate
a call to __probestack to touch each page so the guard page won't
be skipped.

Reviewed By: majnemer

Differential Revision: https://reviews.llvm.org/D34386

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305939 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LangRef.rst
include/llvm/IR/Attributes.td
lib/IR/Attributes.cpp
test/Transforms/Inline/inline-probe-stack.ll [new file with mode: 0644]