diff options
author | Dale Johannesen <dalej@apple.com> | 2010-09-10 20:55:01 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-09-10 20:55:01 +0000 |
commit | bb811a244567aa8a1522203f15588f4d001b7353 (patch) | |
tree | ad234d32641b5769602d1dd68ae5f870b341b320 /lib/VMCore/Type.cpp | |
parent | f9e49e86ee9f06c2808c6e57723c5650615e689d (diff) | |
download | llvm-bb811a244567aa8a1522203f15588f4d001b7353.tar.gz llvm-bb811a244567aa8a1522203f15588f4d001b7353.tar.bz2 llvm-bb811a244567aa8a1522203f15588f4d001b7353.tar.xz |
Add X86 MMX type to bitcode and Type.
(The Ada bindings probably need it too, but all the
obvious places to change say "do not edit this file".)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Type.cpp')
-rw-r--r-- | lib/VMCore/Type.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index c55e626783..3704999ede 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -109,6 +109,7 @@ const Type *Type::getPrimitiveType(LLVMContext &C, TypeID IDNumber) { case PPC_FP128TyID : return getPPC_FP128Ty(C); case LabelTyID : return getLabelTy(C); case MetadataTyID : return getMetadataTy(C); + case X86_MMXTyID : return getX86_MMXTy(C); default: return 0; } @@ -192,6 +193,7 @@ unsigned Type::getPrimitiveSizeInBits() const { case Type::X86_FP80TyID: return 80; case Type::FP128TyID: return 128; case Type::PPC_FP128TyID: return 128; + case Type::X86_MMXTyID: return 64; case Type::IntegerTyID: return cast<IntegerType>(this)->getBitWidth(); case Type::VectorTyID: return cast<VectorType>(this)->getBitWidth(); default: return 0; @@ -354,6 +356,10 @@ const Type *Type::getPPC_FP128Ty(LLVMContext &C) { return &C.pImpl->PPC_FP128Ty; } +const Type *Type::getX86_MMXTy(LLVMContext &C) { + return &C.pImpl->X86_MMXTy; +} + const IntegerType *Type::getIntNTy(LLVMContext &C, unsigned N) { return IntegerType::get(C, N); } @@ -398,6 +404,10 @@ const PointerType *Type::getPPC_FP128PtrTy(LLVMContext &C, unsigned AS) { return getPPC_FP128Ty(C)->getPointerTo(AS); } +const PointerType *Type::getX86_MMXPtrTy(LLVMContext &C, unsigned AS) { + return getX86_MMXTy(C)->getPointerTo(AS); +} + const PointerType *Type::getIntNPtrTy(LLVMContext &C, unsigned N, unsigned AS) { return getIntNTy(C, N)->getPointerTo(AS); } |