diff options
author | Mon P Wang <wangmp@apple.com> | 2008-12-18 20:03:17 +0000 |
---|---|---|
committer | Mon P Wang <wangmp@apple.com> | 2008-12-18 20:03:17 +0000 |
commit | 87c8a8f304d1ee72829086ce2c41a8fa3813ba6a (patch) | |
tree | d5b38f2594ae2e43b94f0751c2972cb599818d5f /lib/VMCore | |
parent | 5c9f34b7a0c151dd8c508a872dc5e898bde4582e (diff) | |
download | external_llvm-87c8a8f304d1ee72829086ce2c41a8fa3813ba6a.zip external_llvm-87c8a8f304d1ee72829086ce2c41a8fa3813ba6a.tar.gz external_llvm-87c8a8f304d1ee72829086ce2c41a8fa3813ba6a.tar.bz2 |
Added support for vector widening.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/ValueTypes.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/VMCore/ValueTypes.cpp b/lib/VMCore/ValueTypes.cpp index 0229f15..fe4af05 100644 --- a/lib/VMCore/ValueTypes.cpp +++ b/lib/VMCore/ValueTypes.cpp @@ -99,6 +99,9 @@ std::string MVT::getMVTString() const { case MVT::isVoid: return "isVoid"; case MVT::Other: return "ch"; case MVT::Flag: return "flag"; + case MVT::v2i8: return "v2i8"; + case MVT::v4i8: return "v4i8"; + case MVT::v2i16: return "v2i16"; case MVT::v8i8: return "v8i8"; case MVT::v4i16: return "v4i16"; case MVT::v2i32: return "v2i32"; @@ -135,6 +138,9 @@ const Type *MVT::getTypeForMVT() const { case MVT::f80: return Type::X86_FP80Ty; case MVT::f128: return Type::FP128Ty; case MVT::ppcf128: return Type::PPC_FP128Ty; + case MVT::v2i8: return VectorType::get(Type::Int8Ty, 2); + case MVT::v4i8: return VectorType::get(Type::Int8Ty, 4); + case MVT::v2i16: return VectorType::get(Type::Int16Ty, 2); case MVT::v8i8: return VectorType::get(Type::Int8Ty, 8); case MVT::v4i16: return VectorType::get(Type::Int16Ty, 4); case MVT::v2i32: return VectorType::get(Type::Int32Ty, 2); |