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 | 65ce931f9a5a361e4da0898da9e994c6b194d93e (patch) | |
| tree | 7eca5849f36a0ca00145890b76047d3aea32b131 /llvm/lib/Target/Mips/MipsSubtarget.h | |
| parent | 225d4bdb07fc76dcc4f366d9c76761f877d674a8 (diff) | |
| download | bcm5719-llvm-65ce931f9a5a361e4da0898da9e994c6b194d93e.tar.gz bcm5719-llvm-65ce931f9a5a361e4da0898da9e994c6b194d93e.zip | |
Add flags and feature bits for mips dsp.
llvm-svn: 164428
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSubtarget.h')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsSubtarget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsSubtarget.h b/llvm/lib/Target/Mips/MipsSubtarget.h index 0595e8dd0cf..ff69237ec2b 100644 --- a/llvm/lib/Target/Mips/MipsSubtarget.h +++ b/llvm/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; } |

