diff options
| author | Akira Hatanaka <ahatanaka@mips.com> | 2013-10-09 23:36:17 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-10-09 23:36:17 +0000 |
| commit | 4a3836bed44412ab0b31577fe8937ff3966d25e7 (patch) | |
| tree | 859dc54e533dba9c60856a8a1943b6960de4fb5e /llvm/lib/Target/Mips/MipsSubtarget.h | |
| parent | 82166eef16b84042553961bbd4acfff20aee53ae (diff) | |
| download | bcm5719-llvm-4a3836bed44412ab0b31577fe8937ff3966d25e7.tar.gz bcm5719-llvm-4a3836bed44412ab0b31577fe8937ff3966d25e7.zip | |
[mips] Do not generate INS/EXT nodes if target does not have support for
ins/ext.
llvm-svn: 192330
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSubtarget.h')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsSubtarget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsSubtarget.h b/llvm/lib/Target/Mips/MipsSubtarget.h index 1d9940408a6..a3abc963ddd 100644 --- a/llvm/lib/Target/Mips/MipsSubtarget.h +++ b/llvm/lib/Target/Mips/MipsSubtarget.h @@ -204,6 +204,7 @@ public: bool hasSwap() const { return HasSwap; } bool hasBitCount() const { return HasBitCount; } bool hasFPIdx() const { return HasFPIdx; } + bool hasExtractInsert() const { return !inMips16Mode() && hasMips32r2(); } const InstrItineraryData &getInstrItineraryData() const { return InstrItins; } bool allowMixed16_32() const { return inMips16ModeDefault() | |

