Adding kalimba variants as Triple sub-architectures.

Reviewed in:

http://reviews.llvm.org/D5115

llvm-svn: 217229
This commit is contained in:
Matthew Gardiner 2014-09-05 06:46:43 +00:00
parent 869342c1cb
commit 3b15a89a2b
2 changed files with 11 additions and 2 deletions

View File

@ -90,7 +90,11 @@ public:
ARMSubArch_v6t2,
ARMSubArch_v5,
ARMSubArch_v5te,
ARMSubArch_v4t
ARMSubArch_v4t,
KalimbaSubArch_v3,
KalimbaSubArch_v4,
KalimbaSubArch_v5
};
enum VendorType {
UnknownVendor,

View File

@ -247,7 +247,7 @@ static Triple::ArchType parseArch(StringRef ArchName) {
.Case("amdil", Triple::amdil)
.Case("spir", Triple::spir)
.Case("spir64", Triple::spir64)
.Case("kalimba", Triple::kalimba)
.StartsWith("kalimba", Triple::kalimba)
.Default(Triple::UnknownArch);
}
@ -337,6 +337,11 @@ static Triple::SubArchType parseSubArch(StringRef SubArchName) {
.EndsWith("v5t", Triple::ARMSubArch_v5)
.EndsWith("v5te", Triple::ARMSubArch_v5te)
.EndsWith("v4t", Triple::ARMSubArch_v4t)
.EndsWith("kalimba3", Triple::KalimbaSubArch_v3)
.EndsWith("kalimba4", Triple::KalimbaSubArch_v4)
.EndsWith("kalimba5", Triple::KalimbaSubArch_v5)
.Default(Triple::NoSubArch);
}