diff options
| author | Akira Hatanaka <ahatanaka@mips.com> | 2012-11-15 21:17:13 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-11-15 21:17:13 +0000 |
| commit | 3bc1beb696af1779059ef3173be346fd959dca0b (patch) | |
| tree | fd196692819b4cbe1a5d96aad449eb3c7730aca6 /llvm/lib/Target/Mips/MipsSubtarget.h | |
| parent | 8fe56e00ed9530438a2cd2b714e9938f0fea3eec (diff) | |
| download | bcm5719-llvm-3bc1beb696af1779059ef3173be346fd959dca0b.tar.gz bcm5719-llvm-3bc1beb696af1779059ef3173be346fd959dca0b.zip | |
[mips] Add predicate HasFPIdx for floating-point indexed load instruction
support and use it in place of HasMips32r2Or64.
llvm-svn: 168089
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSubtarget.h')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsSubtarget.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsSubtarget.h b/llvm/lib/Target/Mips/MipsSubtarget.h index ff69237ec2b..ff32219c7d6 100644 --- a/llvm/lib/Target/Mips/MipsSubtarget.h +++ b/llvm/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 |

