From baa5d045c90729268ae6d5d4f08551e28fafde34 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Fri, 10 Sep 2010 20:55:01 +0000 Subject: 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".) llvm-svn: 113618 --- llvm/lib/Target/CBackend/CBackend.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Target/CBackend/CBackend.cpp') diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp index 270fff6064a..4ee4b115f9f 100644 --- a/llvm/lib/Target/CBackend/CBackend.cpp +++ b/llvm/lib/Target/CBackend/CBackend.cpp @@ -514,7 +514,11 @@ CWriter::printSimpleType(raw_ostream &Out, const Type *Ty, bool isSigned, case Type::X86_FP80TyID: case Type::PPC_FP128TyID: case Type::FP128TyID: return Out << "long double " << NameSoFar; - + + case Type::X86_MMXTyID: + return printSimpleType(Out, Type::getInt32Ty(Ty->getContext()), isSigned, + " __attribute__((vector_size(64))) " + NameSoFar); + case Type::VectorTyID: { const VectorType *VTy = cast(Ty); return printSimpleType(Out, VTy->getElementType(), isSigned, -- cgit v1.2.3