summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsSubtarget.h
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-11-15 21:17:13 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-11-15 21:17:13 +0000
commit0301bc54ad23c9dff0370dffaf6eb3eabba42cc4 (patch)
tree9780e711bf3e60902b8754badc8fbd3ee40bdae7 /lib/Target/Mips/MipsSubtarget.h
parentb92ef128ec01e9869c411b02356ce3dc9c6f5141 (diff)
downloadllvm-0301bc54ad23c9dff0370dffaf6eb3eabba42cc4.tar.gz
llvm-0301bc54ad23c9dff0370dffaf6eb3eabba42cc4.tar.bz2
llvm-0301bc54ad23c9dff0370dffaf6eb3eabba42cc4.tar.xz
[mips] Add predicate HasFPIdx for floating-point indexed load instruction
support and use it in place of HasMips32r2Or64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsSubtarget.h')
-rw-r--r--lib/Target/Mips/MipsSubtarget.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsSubtarget.h b/lib/Target/Mips/MipsSubtarget.h
index ff69237ec2..ff32219c7d 100644
--- a/lib/Target/Mips/MipsSubtarget.h
+++ b/lib/Target/Mips/MipsSubtarget.h
@@ -89,6 +89,9 @@ protected:
// HasBitCount - Count leading '1' and '0' bits.
bool HasBitCount;
+ // HasFPIdx -- Floating point indexed load/store instructions.
+ bool HasFPIdx;
+
// InMips16 -- can process Mips16 instructions
bool InMips16Mode;
@@ -127,8 +130,6 @@ public:
bool hasMips64() const { return MipsArchVersion >= Mips64; }
bool hasMips64r2() const { return MipsArchVersion == Mips64r2; }
- bool hasMips32r2Or64() const { return hasMips32r2() || hasMips64(); }
-
bool isLittle() const { return IsLittle; }
bool isFP64bit() const { return IsFP64bit; }
bool isGP64bit() const { return IsGP64bit; }
@@ -152,6 +153,7 @@ public:
bool hasMinMax() const { return HasMinMax; }
bool hasSwap() const { return HasSwap; }
bool hasBitCount() const { return HasBitCount; }
+ bool hasFPIdx() const { return HasFPIdx; }
};
} // End llvm namespace