Adding profile and version parsers to ARMTargetParser

This allows us to match armv6m to default to thumb, but will also be used by
Clang's driver and remove the current incomplete copy in it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238036 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Renato Golin
2015-05-22 18:17:55 +00:00
parent 57cc146595
commit 84b1a805bb
4 changed files with 110 additions and 2 deletions

View File

@@ -112,6 +112,14 @@ namespace ARM {
EK_LITTLE,
EK_BIG
};
// v6/v7/v8 Profile
enum ProfileKind {
PK_INVALID = 0,
PK_A,
PK_R,
PK_M
};
} // namespace ARM
// Target Parsers, one per architecture.
@@ -137,6 +145,8 @@ public:
static unsigned parseCPUArch(StringRef CPU);
static unsigned parseArchISA(StringRef Arch);
static unsigned parseArchEndian(StringRef Arch);
static unsigned parseArchProfile(StringRef Arch);
static unsigned parseArchVersion(StringRef Arch);
};