summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp
diff options
context:
space:
mode:
authorAlexander Ivchenko <alexander.ivchenko@intel.com>2018-03-05 11:30:28 +0000
committerAlexander Ivchenko <alexander.ivchenko@intel.com>2018-03-05 11:30:28 +0000
commit9d3b45301f99bddd7ff3520ef806d888d5ca1f94 (patch)
tree389acdc652fcc93c401d794dad701ca60156c31c /lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp
parent162d436c8e73461a22bc5176b0903d8ae19df59f (diff)
downloadbcm5719-llvm-9d3b45301f99bddd7ff3520ef806d888d5ca1f94.tar.gz
bcm5719-llvm-9d3b45301f99bddd7ff3520ef806d888d5ca1f94.zip
[x86][CET] Introduce _get_ssp, _inc_ssp intrinsics
Summary: The _get_ssp intrinsic can be used to retrieve the shadow stack pointer, independent of the current arch -- in contract with the rdsspd and the rdsspq intrinsics. Also, this intrinsic returns zero on CPUs which don't support CET. The rdssp[d|q] instruction is decoded as nop, essentially just returning the input operand, which is zero. Example result of compilation: ``` xorl %eax, %eax movl %eax, %ecx rdsspq %rcx # NOP when CET is not supported movq %rcx, %rax # return zero ``` Reviewers: craig.topper Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D43814 llvm-svn: 326689
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud