mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 13:10:42 +00:00
Added MVT::v2f16
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148067 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf5b13d07e
commit
ddfda5cd16
@ -69,26 +69,27 @@ namespace llvm {
|
||||
v4i64 = 27, // 4 x i64
|
||||
v8i64 = 28, // 8 x i64
|
||||
|
||||
v2f32 = 29, // 2 x f32
|
||||
v4f32 = 30, // 4 x f32
|
||||
v8f32 = 31, // 8 x f32
|
||||
v2f64 = 32, // 2 x f64
|
||||
v4f64 = 33, // 4 x f64
|
||||
v2f16 = 29, // 2 x f32
|
||||
v2f32 = 30, // 2 x f32
|
||||
v4f32 = 31, // 4 x f32
|
||||
v8f32 = 32, // 8 x f32
|
||||
v2f64 = 33, // 2 x f64
|
||||
v4f64 = 34, // 4 x f64
|
||||
|
||||
FIRST_VECTOR_VALUETYPE = v2i8,
|
||||
LAST_VECTOR_VALUETYPE = v4f64,
|
||||
|
||||
x86mmx = 34, // This is an X86 MMX value
|
||||
x86mmx = 35, // This is an X86 MMX value
|
||||
|
||||
Glue = 35, // This glues nodes together during pre-RA sched
|
||||
Glue = 36, // This glues nodes together during pre-RA sched
|
||||
|
||||
isVoid = 36, // This has no value
|
||||
isVoid = 37, // This has no value
|
||||
|
||||
Untyped = 37, // This value takes a register, but has
|
||||
Untyped = 38, // This value takes a register, but has
|
||||
// unspecified type. The register class
|
||||
// will be determined by the opcode.
|
||||
|
||||
LAST_VALUETYPE = 38, // This always remains at the end of the list.
|
||||
LAST_VALUETYPE = 39, // This always remains at the end of the list.
|
||||
|
||||
// This is the current maximum for LAST_VALUETYPE.
|
||||
// MVT::MAX_ALLOWED_VALUETYPE is used for asserts and to size bit vectors
|
||||
@ -204,6 +205,7 @@ namespace llvm {
|
||||
case v2i64:
|
||||
case v4i64:
|
||||
case v8i64: return i64;
|
||||
case v2f16: return f16;
|
||||
case v2f32:
|
||||
case v4f32:
|
||||
case v8f32: return f32;
|
||||
@ -234,6 +236,7 @@ namespace llvm {
|
||||
case v2i16:
|
||||
case v2i32:
|
||||
case v2i64:
|
||||
case v2f16:
|
||||
case v2f32:
|
||||
case v2f64: return 2;
|
||||
case v1i64: return 1;
|
||||
@ -258,7 +261,8 @@ namespace llvm {
|
||||
case f32 :
|
||||
case i32 :
|
||||
case v4i8:
|
||||
case v2i16: return 32;
|
||||
case v2i16:
|
||||
case v2f16: return 32;
|
||||
case x86mmx:
|
||||
case f64 :
|
||||
case i64 :
|
||||
@ -363,6 +367,9 @@ namespace llvm {
|
||||
if (NumElements == 4) return MVT::v4i64;
|
||||
if (NumElements == 8) return MVT::v8i64;
|
||||
break;
|
||||
case MVT::f16:
|
||||
if (NumElements == 2) return MVT::v2f16;
|
||||
break;
|
||||
case MVT::f32:
|
||||
if (NumElements == 2) return MVT::v2f32;
|
||||
if (NumElements == 4) return MVT::v4f32;
|
||||
|
@ -50,16 +50,17 @@ def v2i64 : ValueType<128, 26>; // 2 x i64 vector value
|
||||
def v4i64 : ValueType<256, 27>; // 4 x i64 vector value
|
||||
def v8i64 : ValueType<512, 28>; // 8 x i64 vector value
|
||||
|
||||
def v2f32 : ValueType<64 , 29>; // 2 x f32 vector value
|
||||
def v4f32 : ValueType<128, 30>; // 4 x f32 vector value
|
||||
def v8f32 : ValueType<256, 31>; // 8 x f32 vector value
|
||||
def v2f64 : ValueType<128, 32>; // 2 x f64 vector value
|
||||
def v4f64 : ValueType<256, 33>; // 4 x f64 vector value
|
||||
def v2f16 : ValueType<32 , 29>; // 2 x f16 vector value
|
||||
def v2f32 : ValueType<64 , 30>; // 2 x f32 vector value
|
||||
def v4f32 : ValueType<128, 31>; // 4 x f32 vector value
|
||||
def v8f32 : ValueType<256, 32>; // 8 x f32 vector value
|
||||
def v2f64 : ValueType<128, 33>; // 2 x f64 vector value
|
||||
def v4f64 : ValueType<256, 34>; // 4 x f64 vector value
|
||||
|
||||
def x86mmx : ValueType<64 , 34>; // X86 MMX value
|
||||
def FlagVT : ValueType<0 , 35>; // Pre-RA sched glue
|
||||
def isVoid : ValueType<0 , 36>; // Produces no value
|
||||
def untyped: ValueType<8 , 37>; // Produces an untyped value
|
||||
def x86mmx : ValueType<64 , 35>; // X86 MMX value
|
||||
def FlagVT : ValueType<0 , 36>; // Pre-RA sched glue
|
||||
def isVoid : ValueType<0 , 37>; // Produces no value
|
||||
def untyped: ValueType<8 , 38>; // Produces an untyped value
|
||||
|
||||
def MetadataVT: ValueType<0, 250>; // Metadata
|
||||
|
||||
|
@ -135,6 +135,7 @@ std::string EVT::getEVTString() const {
|
||||
case MVT::v4i64: return "v4i64";
|
||||
case MVT::v8i64: return "v8i64";
|
||||
case MVT::v2f32: return "v2f32";
|
||||
case MVT::v2f16: return "v2f16";
|
||||
case MVT::v4f32: return "v4f32";
|
||||
case MVT::v8f32: return "v8f32";
|
||||
case MVT::v2f64: return "v2f64";
|
||||
@ -182,6 +183,7 @@ Type *EVT::getTypeForEVT(LLVMContext &Context) const {
|
||||
case MVT::v2i64: return VectorType::get(Type::getInt64Ty(Context), 2);
|
||||
case MVT::v4i64: return VectorType::get(Type::getInt64Ty(Context), 4);
|
||||
case MVT::v8i64: return VectorType::get(Type::getInt64Ty(Context), 8);
|
||||
case MVT::v2f16: return VectorType::get(Type::getHalfTy(Context), 2);
|
||||
case MVT::v2f32: return VectorType::get(Type::getFloatTy(Context), 2);
|
||||
case MVT::v4f32: return VectorType::get(Type::getFloatTy(Context), 4);
|
||||
case MVT::v8f32: return VectorType::get(Type::getFloatTy(Context), 8);
|
||||
|
@ -83,6 +83,7 @@ std::string llvm::getEnumName(MVT::SimpleValueType T) {
|
||||
case MVT::v2i64: return "MVT::v2i64";
|
||||
case MVT::v4i64: return "MVT::v4i64";
|
||||
case MVT::v8i64: return "MVT::v8i64";
|
||||
case MVT::v2f16: return "MVT::v2f16";
|
||||
case MVT::v2f32: return "MVT::v2f32";
|
||||
case MVT::v4f32: return "MVT::v4f32";
|
||||
case MVT::v8f32: return "MVT::v8f32";
|
||||
|
Loading…
Reference in New Issue
Block a user