[AArch64] Add command-line option for SB
authorDiogo N. Sampaio <diogo.sampaio@arm.com>
Fri, 28 Dec 2018 17:14:58 +0000 (17:14 +0000)
committerDiogo N. Sampaio <diogo.sampaio@arm.com>
Fri, 28 Dec 2018 17:14:58 +0000 (17:14 +0000)
commit9123f82cc41094fbee47fd53c068b5c2d340f264
treeedeaa18514f60854aa7c2206aef0900e848952fd
parentd5b685a9b2e802efa2e85b31460adff9fbe08e25
[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
llvm/include/llvm/Support/AArch64TargetParser.def
llvm/include/llvm/Support/AArch64TargetParser.h
llvm/lib/Target/AArch64/AArch64.td
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/lib/Target/AArch64/AArch64Subtarget.h
llvm/test/MC/AArch64/armv8.5a-sb.s [moved from llvm/test/MC/AArch64/armv8.5a-specctrl.s with 59% similarity]
llvm/test/MC/Disassembler/AArch64/armv8.5a-sb.txt [new file with mode: 0644]
llvm/test/MC/Disassembler/AArch64/armv8.5a-specctrl.txt [deleted file]
llvm/unittests/Support/TargetParserTest.cpp