diff --git a/lib/Target/ARC/ARCSubtarget.cpp b/lib/Target/ARC/ARCSubtarget.cpp index bce2dbd2eaa..409dd2a98ab 100644 --- a/lib/Target/ARC/ARCSubtarget.cpp +++ b/lib/Target/ARC/ARCSubtarget.cpp @@ -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) {} diff --git a/lib/Target/ARC/ARCSubtarget.h b/lib/Target/ARC/ARCSubtarget.h index 0be797f753d..1f1b27f13f6 100644 --- a/lib/Target/ARC/ARCSubtarget.h +++ b/lib/Target/ARC/ARCSubtarget.h @@ -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 { diff --git a/lib/Target/ARC/MCTargetDesc/ARCMCTargetDesc.cpp b/lib/Target/ARC/MCTargetDesc/ARCMCTargetDesc.cpp index 3e3613ccb90..358ee6002f8 100644 --- a/lib/Target/ARC/MCTargetDesc/ARCMCTargetDesc.cpp +++ b/lib/Target/ARC/MCTargetDesc/ARCMCTargetDesc.cpp @@ -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, diff --git a/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.cpp b/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.cpp index a39cffc8f4a..6a9ed481f37 100644 --- a/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.cpp +++ b/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.cpp @@ -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 * diff --git a/lib/Target/VE/VESubtarget.cpp b/lib/Target/VE/VESubtarget.cpp index a0b78d95e3c..6fb699dbdd7 100644 --- a/lib/Target/VE/VESubtarget.cpp +++ b/lib/Target/VE/VESubtarget.cpp @@ -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) {} diff --git a/lib/Target/VE/VESubtarget.h b/lib/Target/VE/VESubtarget.h index f3a2c206162..f4034df4dce 100644 --- a/lib/Target/VE/VESubtarget.h +++ b/lib/Target/VE/VESubtarget.h @@ -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