summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsSubtarget.h
diff options
context:
space:
mode:
authorJack Carter <jcarter@mips.com>2013-02-05 09:30:03 +0000
committerJack Carter <jcarter@mips.com>2013-02-05 09:30:03 +0000
commit428a06cc7521d64429ea3ca8e5515286cdca53b8 (patch)
tree7cf06a92b68e843ef8fa2963ff9a35718fece730 /llvm/lib/Target/Mips/MipsSubtarget.h
parent49c04467eaa7a81c1a32eb4087e58cb36b1adc79 (diff)
downloadbcm5719-llvm-428a06cc7521d64429ea3ca8e5515286cdca53b8.tar.gz
bcm5719-llvm-428a06cc7521d64429ea3ca8e5515286cdca53b8.zip
This patch that sets the Mips ELF header flag for
MicroMips architectures. Contributer: Zoran Jovanovic llvm-svn: 174360
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSubtarget.h')
-rw-r--r--llvm/lib/Target/Mips/MipsSubtarget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsSubtarget.h b/llvm/lib/Target/Mips/MipsSubtarget.h
index 63cde8d6689..32baa3d85ad 100644
--- a/llvm/lib/Target/Mips/MipsSubtarget.h
+++ b/llvm/lib/Target/Mips/MipsSubtarget.h
@@ -89,6 +89,9 @@ protected:
// InMips16 -- can process Mips16 instructions
bool InMips16Mode;
+ // InMicroMips -- can process MicroMips instructions
+ bool InMicroMipsMode;
+
// HasDSP, HasDSPR2 -- supports DSP ASE.
bool HasDSP, HasDSPR2;
@@ -138,6 +141,7 @@ public:
bool isNotSingleFloat() const { return !IsSingleFloat; }
bool hasVFPU() const { return HasVFPU; }
bool inMips16Mode() const { return InMips16Mode; }
+ bool inMicroMipsMode() const { return InMicroMipsMode; }
bool hasDSP() const { return HasDSP; }
bool hasDSPR2() const { return HasDSPR2; }
bool isAndroid() const { return IsAndroid; }
OpenPOWER on IntegriCloud