1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

[VE] Change default CPU name to "generic"

Change default CPU name of SX-Aurora VE from "ve" to "generic" similar
to other architectures.

Reviewed By: simoll

Differential Revision: https://reviews.llvm.org/D93836
This commit is contained in:
Kazushi (Jam) Marukawa 2020-12-27 23:28:20 +09:00
parent 3f17c99d80
commit 81bd5bb795
4 changed files with 8 additions and 3 deletions

View File

@ -56,7 +56,7 @@ static MCRegisterInfo *createVEMCRegisterInfo(const Triple &TT) {
static MCSubtargetInfo *createVEMCSubtargetInfo(const Triple &TT, StringRef CPU,
StringRef FS) {
if (CPU.empty())
CPU = "ve";
CPU = "generic";
return createVEMCSubtargetInfoImpl(TT, CPU, /*TuneCPU=*/CPU, FS);
}

View File

@ -46,7 +46,7 @@ def VEAsmParser : AsmParser {
class Proc<string Name, list<SubtargetFeature> Features>
: Processor<Name, NoItineraries, Features>;
def : Proc<"ve", []>;
def : Proc<"generic", []>;
//===----------------------------------------------------------------------===//
// Declare the target which we are implementing

View File

@ -33,7 +33,7 @@ VESubtarget &VESubtarget::initializeSubtargetDependencies(StringRef CPU,
// Determine default and user specified characteristics
std::string CPUName = std::string(CPU);
if (CPUName.empty())
CPUName = "ve";
CPUName = "generic";
// Parse features string.
ParseSubtargetFeatures(CPUName, /*TuneCPU=*/CPU, FS);

View File

@ -0,0 +1,5 @@
; RUN: llc -mtriple=ve -mcpu=help < %s 2>&1 | FileCheck %s
; CHECK: Available CPUs for this target:
; CHECK-EMPTY:
; CHECK-NEXT: generic - Select the generic processor.