From 87beec9afbb58162652df3e4ec17d26ac841b82a Mon Sep 17 00:00:00 2001 From: Bruno Cardoso Lopes Date: Sat, 18 Aug 2007 01:52:27 +0000 Subject: [PATCH] InstrItineraryData support on added. Added Mips3 ISA feature (needed when supporting R4000 machines) llvm-svn: 41151 --- llvm/lib/Target/Mips/MipsSubtarget.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/Mips/MipsSubtarget.h b/llvm/lib/Target/Mips/MipsSubtarget.h index 7ec61ca95b28..8bf98e7b99cc 100644 --- a/llvm/lib/Target/Mips/MipsSubtarget.h +++ b/llvm/lib/Target/Mips/MipsSubtarget.h @@ -23,8 +23,12 @@ namespace llvm { class Module; class MipsSubtarget : public TargetSubtarget { + protected: - bool isR3000; + + bool IsMipsIII; + InstrItineraryData InstrItins; + public: /// This constructor initializes the data members to match that /// of the specified module. @@ -36,7 +40,9 @@ public: /// subtarget options. Definition of function is auto generated by tblgen. void ParseSubtargetFeatures(const std::string &FS, const std::string &CPU); - bool IsR3000() const { return isR3000; } + /// isMipsIII - Return true if the selected CPU supports MipsIII ISA + /// support. + bool isMipsIII() const { return IsMipsIII; } }; } // End llvm namespace