mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 01:31:05 +00:00
Adding kalimba variants as Triple sub-architectures.
Reviewed in: http://reviews.llvm.org/D5115 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217229 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
163462eec8
commit
a1fddc5de2
@ -90,7 +90,11 @@ public:
|
||||
ARMSubArch_v6t2,
|
||||
ARMSubArch_v5,
|
||||
ARMSubArch_v5te,
|
||||
ARMSubArch_v4t
|
||||
ARMSubArch_v4t,
|
||||
|
||||
KalimbaSubArch_v3,
|
||||
KalimbaSubArch_v4,
|
||||
KalimbaSubArch_v5
|
||||
};
|
||||
enum VendorType {
|
||||
UnknownVendor,
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user