mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Add x86MMX a few more places.
llvm-svn: 113914
This commit is contained in:
parent
8729e47b8f
commit
c7739ca945
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user