mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
Fix TargetSubtargetInfo derivatives after D85165
This commit is contained in:
parent
10839866a1
commit
b9b50a1fb2
@ -26,5 +26,5 @@ void ARCSubtarget::anchor() {}
|
||||
|
||||
ARCSubtarget::ARCSubtarget(const Triple &TT, const std::string &CPU,
|
||||
const std::string &FS, const TargetMachine &TM)
|
||||
: ARCGenSubtargetInfo(TT, CPU, FS), FrameLowering(*this),
|
||||
: ARCGenSubtargetInfo(TT, CPU, /*TuneCPU=*/CPU, FS), FrameLowering(*this),
|
||||
TLInfo(TM, *this) {}
|
||||
|
@ -43,7 +43,7 @@ public:
|
||||
|
||||
/// Parses features string setting specified subtarget options.
|
||||
/// Definition of function is auto generated by tblgen.
|
||||
void ParseSubtargetFeatures(StringRef CPU, StringRef FS);
|
||||
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS);
|
||||
|
||||
const ARCInstrInfo *getInstrInfo() const override { return &InstrInfo; }
|
||||
const ARCFrameLowering *getFrameLowering() const override {
|
||||
|
@ -48,7 +48,7 @@ static MCRegisterInfo *createARCMCRegisterInfo(const Triple &TT) {
|
||||
|
||||
static MCSubtargetInfo *createARCMCSubtargetInfo(const Triple &TT,
|
||||
StringRef CPU, StringRef FS) {
|
||||
return createARCMCSubtargetInfoImpl(TT, CPU, FS);
|
||||
return createARCMCSubtargetInfoImpl(TT, CPU, /*TuneCPU=*/CPU, FS);
|
||||
}
|
||||
|
||||
static MCAsmInfo *createARCMCAsmInfo(const MCRegisterInfo &MRI,
|
||||
|
@ -57,7 +57,7 @@ static MCSubtargetInfo *createVEMCSubtargetInfo(const Triple &TT, StringRef CPU,
|
||||
StringRef FS) {
|
||||
if (CPU.empty())
|
||||
CPU = "ve";
|
||||
return createVEMCSubtargetInfoImpl(TT, CPU, FS);
|
||||
return createVEMCSubtargetInfoImpl(TT, CPU, /*TuneCPU=*/CPU, FS);
|
||||
}
|
||||
|
||||
static MCTargetStreamer *
|
||||
|
@ -33,14 +33,14 @@ VESubtarget &VESubtarget::initializeSubtargetDependencies(StringRef CPU,
|
||||
CPUName = "ve";
|
||||
|
||||
// Parse features string.
|
||||
ParseSubtargetFeatures(CPUName, FS);
|
||||
ParseSubtargetFeatures(CPUName, /*TuneCPU=*/CPU, FS);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
VESubtarget::VESubtarget(const Triple &TT, const std::string &CPU,
|
||||
const std::string &FS, const TargetMachine &TM)
|
||||
: VEGenSubtargetInfo(TT, CPU, FS), TargetTriple(TT),
|
||||
: VEGenSubtargetInfo(TT, CPU, /*TuneCPU=*/CPU, FS), TargetTriple(TT),
|
||||
InstrInfo(initializeSubtargetDependencies(CPU, FS)), TLInfo(TM, *this),
|
||||
FrameLowering(*this) {}
|
||||
|
||||
|
@ -57,7 +57,7 @@ public:
|
||||
|
||||
/// ParseSubtargetFeatures - Parses features string setting specified
|
||||
/// subtarget options. Definition of function is auto generated by tblgen.
|
||||
void ParseSubtargetFeatures(StringRef CPU, StringRef FS);
|
||||
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS);
|
||||
VESubtarget &initializeSubtargetDependencies(StringRef CPU, StringRef FS);
|
||||
|
||||
/// Given a actual stack size as determined by FrameInfo, this function
|
||||
|
Loading…
Reference in New Issue
Block a user