Use correct names for generic SPARC targets

LLVM calls generic sparc32 CPUs "v8" and generic sparc64 CPUs "v9".
master
Koakuma 2020-08-29 13:12:50 +07:00
parent 341eec71fd
commit cefbe4e7be
2 changed files with 2 additions and 6 deletions

View File

@ -1127,7 +1127,8 @@ pub const Target = struct {
.amdgcn => &amdgpu.cpu.generic,
.riscv32 => &riscv.cpu.generic_rv32,
.riscv64 => &riscv.cpu.generic_rv64,
.sparc, .sparcv9, .sparcel => &sparc.cpu.generic,
.sparc, .sparcel => &sparc.cpu.v8,
.sparcv9 => &sparc.cpu.v9,
.s390x => &systemz.cpu.generic,
.i386 => &x86.cpu._i386,
.x86_64 => &x86.cpu.x86_64,

View File

@ -160,11 +160,6 @@ pub const cpu = struct {
.llvm_name = "f934",
.features = featureSet(&[_]Feature{}),
};
pub const generic = CpuModel{
.name = "generic",
.llvm_name = "generic",
.features = featureSet(&[_]Feature{}),
};
pub const gr712rc = CpuModel{
.name = "gr712rc",
.llvm_name = "gr712rc",