Change AsmOperandInfo::ConstraintVT to MVT, instead of EVT.
[oota-llvm.git] / include / llvm / CodeGen / ValueTypes.h
index b9f429537ca70d3d62a75a688aa9f3c44612a1a5..931a47ee0236619a1ab8af87408093da6fb06ef6 100644 (file)
@@ -499,6 +499,12 @@ namespace llvm {
       }
       return (MVT::SimpleValueType)(MVT::INVALID_SIMPLE_VALUE_TYPE);
     }
+
+    /// Return the value type corresponding to the specified type.  This returns
+    /// all pointers as iPTR.  If HandleUnknown is true, unknown types are
+    /// returned as Other, otherwise they are invalid.
+    static MVT getVT(Type *Ty, bool HandleUnknown = false);
+
   };