Allow targets to specify a the type of the RHS of a shift parameterized on the type...
[oota-llvm.git] / lib / Target / MSP430 / MSP430ISelLowering.h
index 673c5433b96e62f9549fed5065592bfb4cda9d13..19c9eac589f00290e5969d6db2cf5c93871d34e2 100644 (file)
@@ -73,6 +73,8 @@ namespace llvm {
   public:
     explicit MSP430TargetLowering(MSP430TargetMachine &TM);
 
+    virtual MVT getShiftAmountTy(EVT LHSTy) const { return MVT::i8; }
+
     /// LowerOperation - Provide custom lowering hooks for some operations.
     virtual SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const;