diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-09-21 23:41:49 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-09-21 23:41:49 +0000 |
commit | a9adbf6df7116b08cef168d5b2315b82a95075c2 (patch) | |
tree | d10822ffad92b161786b9a4b4cb49f25600d9903 /lib/Target/Mips/MipsSubtarget.h | |
parent | d54a6b56a91c72cc33ce3dafcf1653123e6fdd87 (diff) | |
download | external_llvm-a9adbf6df7116b08cef168d5b2315b82a95075c2.zip external_llvm-a9adbf6df7116b08cef168d5b2315b82a95075c2.tar.gz external_llvm-a9adbf6df7116b08cef168d5b2315b82a95075c2.tar.bz2 |
Add flags and feature bits for mips dsp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164428 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsSubtarget.h')
-rw-r--r-- | lib/Target/Mips/MipsSubtarget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsSubtarget.h b/lib/Target/Mips/MipsSubtarget.h index 0595e8d..ff69237 100644 --- a/lib/Target/Mips/MipsSubtarget.h +++ b/lib/Target/Mips/MipsSubtarget.h @@ -92,6 +92,9 @@ protected: // InMips16 -- can process Mips16 instructions bool InMips16Mode; + // HasDSP, HasDSPR2 -- supports DSP ASE. + bool HasDSP, HasDSPR2; + // IsAndroid -- target is android bool IsAndroid; @@ -134,6 +137,8 @@ public: bool isNotSingleFloat() const { return !IsSingleFloat; } bool hasVFPU() const { return HasVFPU; } bool inMips16Mode() const { return InMips16Mode; } + bool hasDSP() const { return HasDSP; } + bool hasDSPR2() const { return HasDSPR2; } bool isAndroid() const { return IsAndroid; } bool isLinux() const { return IsLinux; } bool useSmallSection() const { return UseSmallSection; } |