mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-18 21:24:32 -04:00
[ARM] Add ARMv8.2-A to TargetParser
Add ARMv8.2-A to TargetParser, so that it can be used by the clang command-line options and the .arch directive. Most testing of this will be done in clang, checking that the command-line options that this enables work. Differential Revision: http://reviews.llvm.org/D15037 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254400 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -410,6 +410,7 @@ static StringRef getArchSynonym(StringRef Arch) {
|
||||
.Case("v7em", "v7e-m")
|
||||
.Cases("v8", "v8a", "aarch64", "arm64", "v8-a")
|
||||
.Case("v8.1a", "v8.1-a")
|
||||
.Case("v8.2a", "v8.2-a")
|
||||
.Default(Arch);
|
||||
}
|
||||
|
||||
@@ -554,6 +555,7 @@ unsigned llvm::ARM::parseArchProfile(StringRef Arch) {
|
||||
case ARM::AK_ARMV7K:
|
||||
case ARM::AK_ARMV8A:
|
||||
case ARM::AK_ARMV8_1A:
|
||||
case ARM::AK_ARMV8_2A:
|
||||
return ARM::PK_A;
|
||||
}
|
||||
return ARM::PK_INVALID;
|
||||
@@ -594,6 +596,7 @@ unsigned llvm::ARM::parseArchVersion(StringRef Arch) {
|
||||
return 7;
|
||||
case ARM::AK_ARMV8A:
|
||||
case ARM::AK_ARMV8_1A:
|
||||
case ARM::AK_ARMV8_2A:
|
||||
return 8;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user