diff options
| author | Owen Anderson <resistor@mac.com> | 2011-02-25 21:41:48 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2011-02-25 21:41:48 +0000 |
| commit | 95771afbfd604ad003fa3723cac66c9370fed55d (patch) | |
| tree | f90cbbd64c88ae50228221c55738a62d2b2fead7 /lib/Target/SystemZ | |
| parent | 14a129a3cf8e609b9deb8546267e509088bf7dcd (diff) | |
| download | external_llvm-95771afbfd604ad003fa3723cac66c9370fed55d.zip external_llvm-95771afbfd604ad003fa3723cac66c9370fed55d.tar.gz external_llvm-95771afbfd604ad003fa3723cac66c9370fed55d.tar.bz2 | |
Allow targets to specify a the type of the RHS of a shift parameterized on the type of the LHS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ')
| -rw-r--r-- | lib/Target/SystemZ/SystemZISelLowering.cpp | 3 | ||||
| -rw-r--r-- | lib/Target/SystemZ/SystemZISelLowering.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/SystemZ/SystemZISelLowering.cpp b/lib/Target/SystemZ/SystemZISelLowering.cpp index d694f2e..90939c3 100644 --- a/lib/Target/SystemZ/SystemZISelLowering.cpp +++ b/lib/Target/SystemZ/SystemZISelLowering.cpp @@ -59,9 +59,6 @@ SystemZTargetLowering::SystemZTargetLowering(SystemZTargetMachine &tm) : // Compute derived properties from the register classes computeRegisterProperties(); - // Set shifts properties - setShiftAmountType(MVT::i64); - // Provide all sorts of operation actions setLoadExtAction(ISD::SEXTLOAD, MVT::i1, Promote); setLoadExtAction(ISD::ZEXTLOAD, MVT::i1, Promote); diff --git a/lib/Target/SystemZ/SystemZISelLowering.h b/lib/Target/SystemZ/SystemZISelLowering.h index 51d2df3..3019242 100644 --- a/lib/Target/SystemZ/SystemZISelLowering.h +++ b/lib/Target/SystemZ/SystemZISelLowering.h @@ -57,6 +57,8 @@ namespace llvm { public: explicit SystemZTargetLowering(SystemZTargetMachine &TM); + virtual MVT getShiftAmountTy(EVT LHSTy) const { return MVT::i64; } + /// LowerOperation - Provide custom lowering hooks for some operations. virtual SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const; |
