diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2007-08-18 01:52:27 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2007-08-18 01:52:27 +0000 |
commit | 13d1b7bbb34f6be63e5e1db6bb5710227e4e44aa (patch) | |
tree | 95075bfe4736babc34ca43158377a00df0b119eb /lib | |
parent | 9684a697d59cdcbe9dff84bdaf3b42cf0465e821 (diff) | |
download | external_llvm-13d1b7bbb34f6be63e5e1db6bb5710227e4e44aa.zip external_llvm-13d1b7bbb34f6be63e5e1db6bb5710227e4e44aa.tar.gz external_llvm-13d1b7bbb34f6be63e5e1db6bb5710227e4e44aa.tar.bz2 |
InstrItineraryData support on added.
Added Mips3 ISA feature (needed when supporting R4000 machines)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41151 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/Mips/MipsSubtarget.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsSubtarget.h b/lib/Target/Mips/MipsSubtarget.h index 7ec61ca..8bf98e7 100644 --- a/lib/Target/Mips/MipsSubtarget.h +++ b/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 |