SafeStack: Add builtins to read unsafe stack top/bottom
authorVlad Tsyrklevich <vlad@tsyrklevich.net>
Fri, 13 Jul 2018 19:48:35 +0000 (19:48 +0000)
committerVlad Tsyrklevich <vlad@tsyrklevich.net>
Fri, 13 Jul 2018 19:48:35 +0000 (19:48 +0000)
commitbe9a9fd3dd8fdabb78566bea93baa33b22999d10
tree45812f275f1cab595cabab0dc1c31d108dbbff26
parentf702b029f46e1644f9d4b859e88c09e121009562
SafeStack: Add builtins to read unsafe stack top/bottom

Summary:
Introduce built-ins to read the unsafe stack top and bottom. The unsafe
stack top is required to implement garbage collection scanning for
Oilpan. Currently there is already a built-in 'get_unsafe_stack_start'
to read the bottom of the unsafe stack, but I chose to duplicate this
API because 'start' is ambiguous (e.g. Oilpan uses WTF::GetStackStart to
read the safe stack top.)

Reviewers: pcc

Reviewed By: pcc

Subscribers: llvm-commits, kcc

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

llvm-svn: 337037
clang/docs/SafeStack.rst
clang/include/clang/Basic/Builtins.def
compiler-rt/lib/safestack/safestack.cc