diff options
author | Stefan Pintilie <stefanp@ca.ibm.com> | 2021-02-18 12:12:53 +0000 |
---|---|---|
committer | Stefan Pintilie <stefanp@ca.ibm.com> | 2021-02-18 12:15:50 +0000 |
commit | b80357d46e229ace904a8580e0a93e3f9b91720b (patch) | |
tree | 380361668a8d1ce5b0923a5721fc4ea3d2a6ab3f /llvm/lib/Target/PowerPC/PPCSubtarget.cpp | |
parent | 19db870a0dd1416b2d4a346e2cb17be197193a94 (diff) | |
download | llvm-b80357d46e229ace904a8580e0a93e3f9b91720b.zip llvm-b80357d46e229ace904a8580e0a93e3f9b91720b.tar.gz llvm-b80357d46e229ace904a8580e0a93e3f9b91720b.tar.bz2 |
[PowerPC] Add option for ROP Protection
Added -mrop-protection for Power PC to turn on codegen that provides some
protection from ROP attacks.
The option is off by default and can be turned on for Power 8, Power 9 and
Power 10.
This patch is for the option only. The feature will be implemented by a later
patch.
Reviewed By: amyk
Differential Revision: https://reviews.llvm.org/D96512
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCSubtarget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp index d31195f..bf98ea8 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp @@ -87,6 +87,7 @@ void PPCSubtarget::initializeEnvironment() { HasP9Vector = false; HasP9Altivec = false; HasMMA = false; + HasROPProtection = false; HasP10Vector = false; HasPrefixInstrs = false; HasPCRelativeMemops = false; |