Add x86MMX a few more places.
authorDale Johannesen <dalej@apple.com>
Wed, 15 Sep 2010 00:52:23 +0000 (00:52 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 15 Sep 2010 00:52:23 +0000 (00:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113914 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Type.h
lib/Target/TargetData.cpp
lib/VMCore/ValueTypes.cpp

index b493879e95725d2ead7cd12d04f6efa177e24ffa..0939d67265b096222fb004d10f9ada199ba79ee8 100644 (file)
@@ -313,7 +313,8 @@ public:
   ///
   bool isSized() const {
     // If it's a primitive, it is always sized.
-    if (ID == IntegerTyID || isFloatingPointTy() || ID == PointerTyID)
+    if (ID == IntegerTyID || isFloatingPointTy() || ID == PointerTyID ||
+        ID == X86_MMXTyID)
       return true;
     // If it is not something that can have a size (e.g. a function or label),
     // it doesn't have a size.
index 74e95e779b8f4445aadf20d38bc9a3f95dc41c08..0a282c38c0316c2e8692f8eb961d45b7aa3d69df 100644 (file)
@@ -524,6 +524,7 @@ unsigned TargetData::getAlignment(const Type *Ty, bool abi_or_pref) const {
   case Type::X86_FP80TyID:
     AlignType = FLOAT_ALIGN;
     break;
+  case Type::X86_MMXTyID:
   case Type::VectorTyID:
     AlignType = VECTOR_ALIGN;
     break;
index f744fe8aefe4ab2ecb82a2fb320ed7522bf6bfbf..b59e202749575f24b2e760534d938fcfb1551aa0 100644 (file)
@@ -198,6 +198,7 @@ EVT EVT::getEVT(const Type *Ty, bool HandleUnknown){
   case Type::FloatTyID:     return MVT(MVT::f32);
   case Type::DoubleTyID:    return MVT(MVT::f64);
   case Type::X86_FP80TyID:  return MVT(MVT::f80);
+  case Type::X86_MMXTyID:   return MVT(MVT::x86mmx);
   case Type::FP128TyID:     return MVT(MVT::f128);
   case Type::PPC_FP128TyID: return MVT(MVT::ppcf128);
   case Type::PointerTyID:   return MVT(MVT::iPTR);