mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Support for half intrinsics. Pushes MMX into slower encoding path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172159 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
+22
-17
@@ -372,27 +372,28 @@ enum IIT_Info {
|
||||
IIT_I16 = 3,
|
||||
IIT_I32 = 4,
|
||||
IIT_I64 = 5,
|
||||
IIT_F32 = 6,
|
||||
IIT_F64 = 7,
|
||||
IIT_V2 = 8,
|
||||
IIT_V4 = 9,
|
||||
IIT_V8 = 10,
|
||||
IIT_V16 = 11,
|
||||
IIT_V32 = 12,
|
||||
IIT_MMX = 13,
|
||||
IIT_F16 = 6,
|
||||
IIT_F32 = 7,
|
||||
IIT_F64 = 8,
|
||||
IIT_V2 = 9,
|
||||
IIT_V4 = 10,
|
||||
IIT_V8 = 11,
|
||||
IIT_V16 = 12,
|
||||
IIT_V32 = 13,
|
||||
IIT_PTR = 14,
|
||||
IIT_ARG = 15,
|
||||
|
||||
// Values from 16+ are only encodable with the inefficient encoding.
|
||||
IIT_METADATA = 16,
|
||||
IIT_EMPTYSTRUCT = 17,
|
||||
IIT_STRUCT2 = 18,
|
||||
IIT_STRUCT3 = 19,
|
||||
IIT_STRUCT4 = 20,
|
||||
IIT_STRUCT5 = 21,
|
||||
IIT_EXTEND_VEC_ARG = 22,
|
||||
IIT_TRUNC_VEC_ARG = 23,
|
||||
IIT_ANYPTR = 24
|
||||
IIT_MMX = 16,
|
||||
IIT_METADATA = 17,
|
||||
IIT_EMPTYSTRUCT = 18,
|
||||
IIT_STRUCT2 = 19,
|
||||
IIT_STRUCT3 = 20,
|
||||
IIT_STRUCT4 = 21,
|
||||
IIT_STRUCT5 = 22,
|
||||
IIT_EXTEND_VEC_ARG = 23,
|
||||
IIT_TRUNC_VEC_ARG = 24,
|
||||
IIT_ANYPTR = 25
|
||||
};
|
||||
|
||||
|
||||
@@ -412,6 +413,9 @@ static void DecodeIITType(unsigned &NextElt, ArrayRef<unsigned char> Infos,
|
||||
case IIT_METADATA:
|
||||
OutputTable.push_back(IITDescriptor::get(IITDescriptor::Metadata, 0));
|
||||
return;
|
||||
case IIT_F16:
|
||||
OutputTable.push_back(IITDescriptor::get(IITDescriptor::Half, 0));
|
||||
return;
|
||||
case IIT_F32:
|
||||
OutputTable.push_back(IITDescriptor::get(IITDescriptor::Float, 0));
|
||||
return;
|
||||
@@ -546,6 +550,7 @@ static Type *DecodeFixedType(ArrayRef<Intrinsic::IITDescriptor> &Infos,
|
||||
case IITDescriptor::Void: return Type::getVoidTy(Context);
|
||||
case IITDescriptor::MMX: return Type::getX86_MMXTy(Context);
|
||||
case IITDescriptor::Metadata: return Type::getMetadataTy(Context);
|
||||
case IITDescriptor::Half: return Type::getHalfTy(Context);
|
||||
case IITDescriptor::Float: return Type::getFloatTy(Context);
|
||||
case IITDescriptor::Double: return Type::getDoubleTy(Context);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user