add a method to turn a type into a VT.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35526 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2007-03-31 04:03:02 +00:00
parent 1c5d163634
commit 2df6dc579c
2 changed files with 33 additions and 0 deletions

View File

@@ -197,6 +197,11 @@ namespace MVT { // MVT = Machine Value Types
/// to the specified ValueType. For integer types, this returns an unsigned
/// type. Note that this will abort for types that cannot be represented.
const Type *getTypeForValueType(ValueType VT);
/// MVT::getValueType - Return the value type corresponding to the specified
/// type. This returns all vectors as MVT::Vector and all pointers as
/// MVT::iPTR.
ValueType getValueType(const Type *Ty);
}
} // End llvm namespace