summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Function.cpp
diff options
context:
space:
mode:
authorDavid Tellenbach <david.tellenbach@me.com>2019-12-16 13:19:54 +0100
committerDavid Tellenbach <david.tellenbach@me.com>2019-12-16 14:40:45 +0100
commitdf0cc105fa7f04b9e79ac76759d3482c4989e969 (patch)
tree7965c70408f5127859ff32390ed94aba313aa4b4 /llvm/lib/IR/Function.cpp
parent9d3f4a4971033ba8045c4cf67c7ceaf8b2d8d8f3 (diff)
downloadbcm5719-llvm-df0cc105fa7f04b9e79ac76759d3482c4989e969.tar.gz
bcm5719-llvm-df0cc105fa7f04b9e79ac76759d3482c4989e969.zip
Reland [AArch64][MachineOutliner] Return address signing for outlined functions
Summary: Reland after fixing a bug that allowed outlining of SP modifying instructions that invalidated return address signing. During AArch64 frame lowering instructions to enable return address signing are inserted into functions if needed. Functions generated during machine outlining don't run through target frame lowering and hence are missing such instructions. This patch introduces the following changes: 1. If not all functions that potentially participate in function outlining agree on their return address signing scope and their return address signing key, outlining is disabled for these functions. 2. If not all functions that potentially participate in function outlining agree on their support for v8.3A features, outlining is disabled for these functions. 3. If an outlining candidate would outline instructions that modify sp in a way that invalidates return address signing, outlining is disabled for that particular candidate. 4. If all candidate functions agree on the signing scope, signing key and their support for v8.3 features, the outlined function behaves as if it had the same scope and key attributes and as if it would provide the same v8.3A support as the original functions. Reviewers: ostannard, paquette Reviewed By: ostannard Subscribers: kristof.beyls, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70635
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud