diff options
| author | Diogo N. Sampaio <diogo.sampaio@arm.com> | 2018-12-28 17:14:58 +0000 |
|---|---|---|
| committer | Diogo N. Sampaio <diogo.sampaio@arm.com> | 2018-12-28 17:14:58 +0000 |
| commit | 9123f82cc41094fbee47fd53c068b5c2d340f264 (patch) | |
| tree | edeaa18514f60854aa7c2206aef0900e848952fd /llvm/lib/Target/AArch64/AArch64Subtarget.h | |
| parent | d5b685a9b2e802efa2e85b31460adff9fbe08e25 (diff) | |
| download | bcm5719-llvm-9123f82cc41094fbee47fd53c068b5c2d340f264.tar.gz bcm5719-llvm-9123f82cc41094fbee47fd53c068b5c2d340f264.zip | |
[AArch64] Add command-line option for SB
SB (Speculative Barrier) is only mandatory from 8.5
onwards but is optional from Armv8.0-A. This patch adds a command
line option to enable SB, as it was previously only possible to
enable by selecting -march=armv8.5-a.
This patch also moves to FeatureSB the old FeatureSpecRestrict.
Reviewers: pbarrio, olista01, t.p.northover, LukeCheeseman
Differential Revision: https://reviews.llvm.org/D55921
llvm-svn: 350126
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64Subtarget.h')
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64Subtarget.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64Subtarget.h b/llvm/lib/Target/AArch64/AArch64Subtarget.h index 9b27e0a0e8f..e94a044c09c 100644 --- a/llvm/lib/Target/AArch64/AArch64Subtarget.h +++ b/llvm/lib/Target/AArch64/AArch64Subtarget.h @@ -126,8 +126,8 @@ protected: bool HasAlternativeNZCV = false; bool HasFRInt3264 = false; bool HasSpecRestrict = false; - bool HasSpecCtrl = false; bool HasSSBS = false; + bool HasSB = false; bool HasPredCtrl = false; bool HasCCDP = false; bool HasBTI = false; @@ -355,8 +355,8 @@ public: bool hasAlternativeNZCV() const { return HasAlternativeNZCV; } bool hasFRInt3264() const { return HasFRInt3264; } bool hasSpecRestrict() const { return HasSpecRestrict; } - bool hasSpecCtrl() const { return HasSpecCtrl; } bool hasSSBS() const { return HasSSBS; } + bool hasSB() const { return HasSB; } bool hasPredCtrl() const { return HasPredCtrl; } bool hasCCDP() const { return HasCCDP; } bool hasBTI() const { return HasBTI; } |

