Change TargetLowering::setTypeAction to take an MVT, instead fo EVT.
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>
Thu, 13 Dec 2012 20:42:43 +0000 (20:42 +0000)
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>
Thu, 13 Dec 2012 20:42:43 +0000 (20:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170148 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/TargetLowering.cpp

index ebd368deb37b505858a250c4e1bd1ef679742cff..77d1a030e79febc96d92b1d6a0b3abf560f616cf 100644 (file)
@@ -278,8 +278,8 @@ public:
       return (LegalizeTypeAction)ValueTypeActions[VT.SimpleTy];
     }
 
-    void setTypeAction(EVT VT, LegalizeTypeAction Action) {
-      unsigned I = VT.getSimpleVT().SimpleTy;
+    void setTypeAction(MVT VT, LegalizeTypeAction Action) {
+      unsigned I = VT.SimpleTy;
       ValueTypeActions[I] = Action;
     }
   };
index 35f193149463a86b8d4522d68bd1dc07133b8738..2ec7e73bf17208ef79d68c3f76533b205584ac4a 100644 (file)
@@ -772,7 +772,7 @@ void TargetLowering::computeRegisterProperties() {
   unsigned LegalIntReg = LargestIntReg;
   for (unsigned IntReg = LargestIntReg - 1;
        IntReg >= (unsigned)MVT::i1; --IntReg) {
-    EVT IVT = (MVT::SimpleValueType)IntReg;
+    MVT IVT = (MVT::SimpleValueType)IntReg;
     if (isTypeLegal(IVT)) {
       LegalIntReg = IntReg;
     } else {