aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2012-01-12 23:14:13 +0000
committerPete Cooper <peter_cooper@apple.com>2012-01-12 23:14:13 +0000
commitddfda5cd1648c4cae12e6f62c3d86a36be3aefe4 (patch)
tree576d7d346aa617f3abeeb218d36d4b340aeeebb9 /lib/VMCore
parentbf5b13d07ec942c865479448e1b9344fe0c9509f (diff)
downloadexternal_llvm-ddfda5cd1648c4cae12e6f62c3d86a36be3aefe4.zip
external_llvm-ddfda5cd1648c4cae12e6f62c3d86a36be3aefe4.tar.gz
external_llvm-ddfda5cd1648c4cae12e6f62c3d86a36be3aefe4.tar.bz2
Added MVT::v2f16
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148067 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/ValueTypes.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VMCore/ValueTypes.cpp b/lib/VMCore/ValueTypes.cpp
index 3b4ec32..a2717af 100644
--- a/lib/VMCore/ValueTypes.cpp
+++ b/lib/VMCore/ValueTypes.cpp
@@ -135,6 +135,7 @@ std::string EVT::getEVTString() const {
case MVT::v4i64: return "v4i64";
case MVT::v8i64: return "v8i64";
case MVT::v2f32: return "v2f32";
+ case MVT::v2f16: return "v2f16";
case MVT::v4f32: return "v4f32";
case MVT::v8f32: return "v8f32";
case MVT::v2f64: return "v2f64";
@@ -182,6 +183,7 @@ Type *EVT::getTypeForEVT(LLVMContext &Context) const {
case MVT::v2i64: return VectorType::get(Type::getInt64Ty(Context), 2);
case MVT::v4i64: return VectorType::get(Type::getInt64Ty(Context), 4);
case MVT::v8i64: return VectorType::get(Type::getInt64Ty(Context), 8);
+ case MVT::v2f16: return VectorType::get(Type::getHalfTy(Context), 2);
case MVT::v2f32: return VectorType::get(Type::getFloatTy(Context), 2);
case MVT::v4f32: return VectorType::get(Type::getFloatTy(Context), 4);
case MVT::v8f32: return VectorType::get(Type::getFloatTy(Context), 8);