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:
parent
3f17c99d80
commit
81bd5bb795
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
5
test/CodeGen/VE/Scalar/cpu.ll
Normal file
5
test/CodeGen/VE/Scalar/cpu.ll
Normal 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.
|
Loading…
Reference in New Issue
Block a user