diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2011-11-07 18:59:49 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2011-11-07 18:59:49 +0000 |
commit | 68698cc20d7e1fa1b45a30e7c25313796f40d5c6 (patch) | |
tree | 5451e62ccdc54020b575d7bebd53f0f04468bbfa /lib/Target/Mips/MipsISelLowering.h | |
parent | bce22b48fee6a0b0295cc18c7994f3a515e63398 (diff) | |
download | external_llvm-68698cc20d7e1fa1b45a30e7c25313796f40d5c6.zip external_llvm-68698cc20d7e1fa1b45a30e7c25313796f40d5c6.tar.gz external_llvm-68698cc20d7e1fa1b45a30e7c25313796f40d5c6.tar.bz2 |
Make the type of shift amount i32 in order to reduce the number of shift
instruction definitions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143989 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsISelLowering.h')
-rw-r--r-- | lib/Target/Mips/MipsISelLowering.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.h b/lib/Target/Mips/MipsISelLowering.h index 62e7f09..f2b64e3 100644 --- a/lib/Target/Mips/MipsISelLowering.h +++ b/lib/Target/Mips/MipsISelLowering.h @@ -98,6 +98,8 @@ namespace llvm { public: explicit MipsTargetLowering(MipsTargetMachine &TM); + virtual MVT getShiftAmountTy(EVT LHSTy) const { return MVT::i32; } + virtual bool allowsUnalignedMemoryAccesses (EVT VT) const; /// LowerOperation - Provide custom lowering hooks for some operations. |