aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-03-31 04:03:02 +0000
committerChris Lattner <sabre@nondot.org>2007-03-31 04:03:02 +0000
commit2df6dc579ca7c85a20d2d221f4df32fbb26fc97a (patch)
tree2f35fdd0229dea1899b4e058d45efaa771a7c042 /include/llvm
parent1c5d163634b772d829ad37961e383d015b75a5ce (diff)
downloadexternal_llvm-2df6dc579ca7c85a20d2d221f4df32fbb26fc97a.zip
external_llvm-2df6dc579ca7c85a20d2d221f4df32fbb26fc97a.tar.gz
external_llvm-2df6dc579ca7c85a20d2d221f4df32fbb26fc97a.tar.bz2
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
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/CodeGen/ValueTypes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h
index cc24563..f35f460 100644
--- a/include/llvm/CodeGen/ValueTypes.h
+++ b/include/llvm/CodeGen/ValueTypes.h
@@ -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