summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsISelLowering.h
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2011-11-07 18:59:49 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2011-11-07 18:59:49 +0000
commit68698cc20d7e1fa1b45a30e7c25313796f40d5c6 (patch)
tree5451e62ccdc54020b575d7bebd53f0f04468bbfa /lib/Target/Mips/MipsISelLowering.h
parentbce22b48fee6a0b0295cc18c7994f3a515e63398 (diff)
downloadllvm-68698cc20d7e1fa1b45a30e7c25313796f40d5c6.tar.gz
llvm-68698cc20d7e1fa1b45a30e7c25313796f40d5c6.tar.bz2
llvm-68698cc20d7e1fa1b45a30e7c25313796f40d5c6.tar.xz
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.h b/lib/Target/Mips/MipsISelLowering.h
index 62e7f09582..f2b64e36f1 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.