Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/Support/MachineValueType.h
Show All 24 Lines | namespace llvm { | ||||
class Type; | class Type; | ||||
/// Machine Value Type. Every type that is supported natively by some | /// Machine Value Type. Every type that is supported natively by some | ||||
/// processor targeted by LLVM occurs here. This means that any legal value | /// processor targeted by LLVM occurs here. This means that any legal value | ||||
/// type can be represented by an MVT. | /// type can be represented by an MVT. | ||||
class MVT { | class MVT { | ||||
public: | public: | ||||
enum SimpleValueType : uint8_t { | enum SimpleValueType : uint8_t { | ||||
// clang-format off | |||||
// Simple value types that aren't explicitly part of this enumeration | // Simple value types that aren't explicitly part of this enumeration | ||||
// are considered extended value types. | // are considered extended value types. | ||||
INVALID_SIMPLE_VALUE_TYPE = 0, | INVALID_SIMPLE_VALUE_TYPE = 0, | ||||
// If you change this numbering, you must change the values in | // If you change this numbering, you must change the values in | ||||
// ValueTypes.td as well! | // ValueTypes.td as well! | ||||
Other = 1, // This is a non-standard value | Other = 1, // This is a non-standard value | ||||
i1 = 2, // This is a 1 bit integer value | i1 = 2, // This is a 1 bit integer value | ||||
i8 = 3, // This is an 8 bit integer value | i8 = 3, // This is an 8 bit integer value | ||||
i16 = 4, // This is a 16 bit integer value | i16 = 4, // This is a 16 bit integer value | ||||
i32 = 5, // This is a 32 bit integer value | i32 = 5, // This is a 32 bit integer value | ||||
i64 = 6, // This is a 64 bit integer value | i64 = 6, // This is a 64 bit integer value | ||||
i128 = 7, // This is a 128 bit integer value | i128 = 7, // This is a 128 bit integer value | ||||
FIRST_INTEGER_VALUETYPE = i1, | FIRST_INTEGER_VALUETYPE = i1, | ||||
LAST_INTEGER_VALUETYPE = i128, | LAST_INTEGER_VALUETYPE = i128, | ||||
bf16 = 8, // This is a 16 bit brain floating point value | bf16 = 8, // This is a 16 bit brain floating point value | ||||
f16 = 9, // This is a 16 bit floating point value | f16 = 9, // This is a 16 bit floating point value | ||||
f32 = 10, // This is a 32 bit floating point value | f32 = 10, // This is a 32 bit floating point value | ||||
f64 = 11, // This is a 64 bit floating point value | f64 = 11, // This is a 64 bit floating point value | ||||
f80 = 12, // This is a 80 bit floating point value | f80 = 12, // This is a 80 bit floating point value | ||||
f128 = 13, // This is a 128 bit floating point value | f128 = 13, // This is a 128 bit floating point value | ||||
ppcf128 = 14, // This is a PPC 128-bit floating point value | ppcf128 = 14, // This is a PPC 128-bit floating point value | ||||
FIRST_FP_VALUETYPE = bf16, | FIRST_FP_VALUETYPE = bf16, | ||||
LAST_FP_VALUETYPE = ppcf128, | LAST_FP_VALUETYPE = ppcf128, | ||||
v1i1 = 15, // 1 x i1 | v1i1 = 15, // 1 x i1 | ||||
v2i1 = 16, // 2 x i1 | v2i1 = 16, // 2 x i1 | ||||
v4i1 = 17, // 4 x i1 | v4i1 = 17, // 4 x i1 | ||||
v8i1 = 18, // 8 x i1 | v8i1 = 18, // 8 x i1 | ||||
v16i1 = 19, // 16 x i1 | v16i1 = 19, // 16 x i1 | ||||
v32i1 = 20, // 32 x i1 | v32i1 = 20, // 32 x i1 | ||||
v64i1 = 21, // 64 x i1 | v64i1 = 21, // 64 x i1 | ||||
v128i1 = 22, // 128 x i1 | v128i1 = 22, // 128 x i1 | ||||
v256i1 = 23, // 256 x i1 | v256i1 = 23, // 256 x i1 | ||||
v512i1 = 24, // 512 x i1 | v512i1 = 24, // 512 x i1 | ||||
v1024i1 = 25, // 1024 x i1 | v1024i1 = 25, // 1024 x i1 | ||||
v1i8 = 26, // 1 x i8 | v1i8 = 26, // 1 x i8 | ||||
v2i8 = 27, // 2 x i8 | v2i8 = 27, // 2 x i8 | ||||
v4i8 = 28, // 4 x i8 | v4i8 = 28, // 4 x i8 | ||||
v8i8 = 29, // 8 x i8 | v8i8 = 29, // 8 x i8 | ||||
v16i8 = 30, // 16 x i8 | v16i8 = 30, // 16 x i8 | ||||
v32i8 = 31, // 32 x i8 | v32i8 = 31, // 32 x i8 | ||||
v64i8 = 32, // 64 x i8 | v64i8 = 32, // 64 x i8 | ||||
v128i8 = 33, // 128 x i8 | v128i8 = 33, // 128 x i8 | ||||
v256i8 = 34, // 256 x i8 | v256i8 = 34, // 256 x i8 | ||||
v1i16 = 35, // 1 x i16 | v1i16 = 35, // 1 x i16 | ||||
v2i16 = 36, // 2 x i16 | v2i16 = 36, // 2 x i16 | ||||
v3i16 = 37, // 3 x i16 | v3i16 = 37, // 3 x i16 | ||||
v4i16 = 38, // 4 x i16 | v4i16 = 38, // 4 x i16 | ||||
v8i16 = 39, // 8 x i16 | v8i16 = 39, // 8 x i16 | ||||
v16i16 = 40, // 16 x i16 | v16i16 = 40, // 16 x i16 | ||||
v32i16 = 41, // 32 x i16 | v32i16 = 41, // 32 x i16 | ||||
v64i16 = 42, // 64 x i16 | v64i16 = 42, // 64 x i16 | ||||
v128i16 = 43, // 128 x i16 | v128i16 = 43, // 128 x i16 | ||||
v256i16 = 44, // 256 x i16 | v256i16 = 44, // 256 x i16 | ||||
v1i32 = 45, // 1 x i32 | v1i32 = 45, // 1 x i32 | ||||
v2i32 = 46, // 2 x i32 | v2i32 = 46, // 2 x i32 | ||||
v3i32 = 47, // 3 x i32 | v3i32 = 47, // 3 x i32 | ||||
v4i32 = 48, // 4 x i32 | v4i32 = 48, // 4 x i32 | ||||
v5i32 = 49, // 5 x i32 | v5i32 = 49, // 5 x i32 | ||||
v8i32 = 50, // 8 x i32 | v8i32 = 50, // 8 x i32 | ||||
v16i32 = 51, // 16 x i32 | v16i32 = 51, // 16 x i32 | ||||
v32i32 = 52, // 32 x i32 | v32i32 = 52, // 32 x i32 | ||||
v64i32 = 53, // 64 x i32 | v64i32 = 53, // 64 x i32 | ||||
v128i32 = 54, // 128 x i32 | v128i32 = 54, // 128 x i32 | ||||
v256i32 = 55, // 256 x i32 | v256i32 = 55, // 256 x i32 | ||||
v512i32 = 56, // 512 x i32 | v512i32 = 56, // 512 x i32 | ||||
v1024i32 = 57, // 1024 x i32 | v1024i32 = 57, // 1024 x i32 | ||||
v2048i32 = 58, // 2048 x i32 | v2048i32 = 58, // 2048 x i32 | ||||
v1i64 = 59, // 1 x i64 | v1i64 = 59, // 1 x i64 | ||||
v2i64 = 60, // 2 x i64 | v2i64 = 60, // 2 x i64 | ||||
v4i64 = 61, // 4 x i64 | v4i64 = 61, // 4 x i64 | ||||
v8i64 = 62, // 8 x i64 | v8i64 = 62, // 8 x i64 | ||||
v16i64 = 63, // 16 x i64 | v16i64 = 63, // 16 x i64 | ||||
v32i64 = 64, // 32 x i64 | v32i64 = 64, // 32 x i64 | ||||
v64i64 = 65, // 64 x i64 | v64i64 = 65, // 64 x i64 | ||||
v128i64 = 66, // 128 x i64 | v128i64 = 66, // 128 x i64 | ||||
v256i64 = 67, // 256 x i64 | v256i64 = 67, // 256 x i64 | ||||
v1i128 = 68, // 1 x i128 | v1i128 = 68, // 1 x i128 | ||||
FIRST_INTEGER_FIXEDLEN_VECTOR_VALUETYPE = v1i1, | FIRST_INTEGER_FIXEDLEN_VECTOR_VALUETYPE = v1i1, | ||||
LAST_INTEGER_FIXEDLEN_VECTOR_VALUETYPE = v1i128, | LAST_INTEGER_FIXEDLEN_VECTOR_VALUETYPE = v1i128, | ||||
v1f16 = 69, // 1 x f16 | v1f16 = 69, // 1 x f16 | ||||
v2f16 = 70, // 2 x f16 | v2f16 = 70, // 2 x f16 | ||||
v3f16 = 71, // 3 x f16 | v3f16 = 71, // 3 x f16 | ||||
v4f16 = 72, // 4 x f16 | v4f16 = 72, // 4 x f16 | ||||
v8f16 = 73, // 8 x f16 | v8f16 = 73, // 8 x f16 | ||||
v16f16 = 74, // 16 x f16 | v16f16 = 74, // 16 x f16 | ||||
v32f16 = 75, // 32 x f16 | v32f16 = 75, // 32 x f16 | ||||
v64f16 = 76, // 64 x f16 | v64f16 = 76, // 64 x f16 | ||||
v128f16 = 77, // 128 x f16 | v128f16 = 77, // 128 x f16 | ||||
v256f16 = 78, // 256 x f16 | v256f16 = 78, // 256 x f16 | ||||
v2bf16 = 79, // 2 x bf16 | v2bf16 = 79, // 2 x bf16 | ||||
v3bf16 = 80, // 3 x bf16 | v3bf16 = 80, // 3 x bf16 | ||||
v4bf16 = 81, // 4 x bf16 | v4bf16 = 81, // 4 x bf16 | ||||
v8bf16 = 82, // 8 x bf16 | v8bf16 = 82, // 8 x bf16 | ||||
v16bf16 = 83, // 16 x bf16 | v16bf16 = 83, // 16 x bf16 | ||||
v32bf16 = 84, // 32 x bf16 | v32bf16 = 84, // 32 x bf16 | ||||
v64bf16 = 85, // 64 x bf16 | v64bf16 = 85, // 64 x bf16 | ||||
v128bf16 = 86, // 128 x bf16 | v128bf16 = 86, // 128 x bf16 | ||||
v1f32 = 87, // 1 x f32 | v1f32 = 87, // 1 x f32 | ||||
v2f32 = 88, // 2 x f32 | v2f32 = 88, // 2 x f32 | ||||
v3f32 = 89, // 3 x f32 | v3f32 = 89, // 3 x f32 | ||||
v4f32 = 90, // 4 x f32 | v4f32 = 90, // 4 x f32 | ||||
v5f32 = 91, // 5 x f32 | v5f32 = 91, // 5 x f32 | ||||
v8f32 = 92, // 8 x f32 | v8f32 = 92, // 8 x f32 | ||||
v16f32 = 93, // 16 x f32 | v16f32 = 93, // 16 x f32 | ||||
v32f32 = 94, // 32 x f32 | v32f32 = 94, // 32 x f32 | ||||
v64f32 = 95, // 64 x f32 | v64f32 = 95, // 64 x f32 | ||||
v128f32 = 96, // 128 x f32 | v128f32 = 96, // 128 x f32 | ||||
v256f32 = 97, // 256 x f32 | v256f32 = 97, // 256 x f32 | ||||
v512f32 = 98, // 512 x f32 | v512f32 = 98, // 512 x f32 | ||||
v1024f32 = 99, // 1024 x f32 | v1024f32 = 99, // 1024 x f32 | ||||
v2048f32 = 100, // 2048 x f32 | v2048f32 = 100, // 2048 x f32 | ||||
v1f64 = 101, // 1 x f64 | v1f64 = 101, // 1 x f64 | ||||
v2f64 = 102, // 2 x f64 | v2f64 = 102, // 2 x f64 | ||||
v4f64 = 103, // 4 x f64 | v4f64 = 103, // 4 x f64 | ||||
v8f64 = 104, // 8 x f64 | v8f64 = 104, // 8 x f64 | ||||
v16f64 = 105, // 16 x f64 | v16f64 = 105, // 16 x f64 | ||||
v32f64 = 106, // 32 x f64 | v32f64 = 106, // 32 x f64 | ||||
v64f64 = 107, // 64 x f64 | v64f64 = 107, // 64 x f64 | ||||
v128f64 = 108, // 128 x f64 | v128f64 = 108, // 128 x f64 | ||||
v256f64 = 109, // 256 x f64 | v256f64 = 109, // 256 x f64 | ||||
FIRST_FP_FIXEDLEN_VECTOR_VALUETYPE = v1f16, | FIRST_FP_FIXEDLEN_VECTOR_VALUETYPE = v1f16, | ||||
LAST_FP_FIXEDLEN_VECTOR_VALUETYPE = v256f64, | LAST_FP_FIXEDLEN_VECTOR_VALUETYPE = v256f64, | ||||
FIRST_FIXEDLEN_VECTOR_VALUETYPE = v1i1, | FIRST_FIXEDLEN_VECTOR_VALUETYPE = v1i1, | ||||
LAST_FIXEDLEN_VECTOR_VALUETYPE = v256f64, | LAST_FIXEDLEN_VECTOR_VALUETYPE = v256f64, | ||||
nxv1i1 = 110, // n x 1 x i1 | nxv1i1 = 110, // n x 1 x i1 | ||||
nxv2i1 = 111, // n x 2 x i1 | nxv2i1 = 111, // n x 2 x i1 | ||||
nxv4i1 = 112, // n x 4 x i1 | nxv4i1 = 112, // n x 4 x i1 | ||||
nxv8i1 = 113, // n x 8 x i1 | nxv8i1 = 113, // n x 8 x i1 | ||||
nxv16i1 = 114, // n x 16 x i1 | nxv16i1 = 114, // n x 16 x i1 | ||||
nxv32i1 = 115, // n x 32 x i1 | nxv32i1 = 115, // n x 32 x i1 | ||||
nxv64i1 = 116, // n x 64 x i1 | nxv64i1 = 116, // n x 64 x i1 | ||||
nxv1i8 = 117, // n x 1 x i8 | nxv1i8 = 117, // n x 1 x i8 | ||||
nxv2i8 = 118, // n x 2 x i8 | nxv2i8 = 118, // n x 2 x i8 | ||||
nxv4i8 = 119, // n x 4 x i8 | nxv4i8 = 119, // n x 4 x i8 | ||||
nxv8i8 = 120, // n x 8 x i8 | nxv8i8 = 120, // n x 8 x i8 | ||||
nxv16i8 = 121, // n x 16 x i8 | nxv16i8 = 121, // n x 16 x i8 | ||||
nxv32i8 = 122, // n x 32 x i8 | nxv32i8 = 122, // n x 32 x i8 | ||||
nxv64i8 = 123, // n x 64 x i8 | nxv64i8 = 123, // n x 64 x i8 | ||||
nxv1i16 = 124, // n x 1 x i16 | nxv1i16 = 124, // n x 1 x i16 | ||||
nxv2i16 = 125, // n x 2 x i16 | nxv2i16 = 125, // n x 2 x i16 | ||||
nxv4i16 = 126, // n x 4 x i16 | nxv4i16 = 126, // n x 4 x i16 | ||||
nxv8i16 = 127, // n x 8 x i16 | nxv8i16 = 127, // n x 8 x i16 | ||||
nxv16i16 = 128, // n x 16 x i16 | nxv16i16 = 128, // n x 16 x i16 | ||||
nxv32i16 = 129, // n x 32 x i16 | nxv32i16 = 129, // n x 32 x i16 | ||||
nxv1i32 = 130, // n x 1 x i32 | nxv1i32 = 130, // n x 1 x i32 | ||||
nxv2i32 = 131, // n x 2 x i32 | nxv2i32 = 131, // n x 2 x i32 | ||||
nxv4i32 = 132, // n x 4 x i32 | nxv4i32 = 132, // n x 4 x i32 | ||||
nxv8i32 = 133, // n x 8 x i32 | nxv8i32 = 133, // n x 8 x i32 | ||||
nxv16i32 = 134, // n x 16 x i32 | nxv16i32 = 134, // n x 16 x i32 | ||||
nxv32i32 = 135, // n x 32 x i32 | nxv32i32 = 135, // n x 32 x i32 | ||||
nxv1i64 = 136, // n x 1 x i64 | nxv1i64 = 136, // n x 1 x i64 | ||||
nxv2i64 = 137, // n x 2 x i64 | nxv2i64 = 137, // n x 2 x i64 | ||||
nxv4i64 = 138, // n x 4 x i64 | nxv4i64 = 138, // n x 4 x i64 | ||||
nxv8i64 = 139, // n x 8 x i64 | nxv8i64 = 139, // n x 8 x i64 | ||||
nxv16i64 = 140, // n x 16 x i64 | nxv16i64 = 140, // n x 16 x i64 | ||||
nxv32i64 = 141, // n x 32 x i64 | nxv32i64 = 141, // n x 32 x i64 | ||||
FIRST_INTEGER_SCALABLE_VECTOR_VALUETYPE = nxv1i1, | FIRST_INTEGER_SCALABLE_VECTOR_VALUETYPE = nxv1i1, | ||||
LAST_INTEGER_SCALABLE_VECTOR_VALUETYPE = nxv32i64, | LAST_INTEGER_SCALABLE_VECTOR_VALUETYPE = nxv32i64, | ||||
nxv1f16 = 142, // n x 1 x f16 | nxv1f16 = 142, // n x 1 x f16 | ||||
nxv2f16 = 143, // n x 2 x f16 | nxv2f16 = 143, // n x 2 x f16 | ||||
nxv4f16 = 144, // n x 4 x f16 | nxv4f16 = 144, // n x 4 x f16 | ||||
nxv8f16 = 145, // n x 8 x f16 | nxv8f16 = 145, // n x 8 x f16 | ||||
nxv16f16 = 146, // n x 16 x f16 | nxv16f16 = 146, // n x 16 x f16 | ||||
nxv32f16 = 147, // n x 32 x f16 | nxv32f16 = 147, // n x 32 x f16 | ||||
nxv1bf16 = 148, // n x 1 x bf16 | nxv1bf16 = 148, // n x 1 x bf16 | ||||
nxv2bf16 = 149, // n x 2 x bf16 | nxv2bf16 = 149, // n x 2 x bf16 | ||||
nxv4bf16 = 150, // n x 4 x bf16 | nxv4bf16 = 150, // n x 4 x bf16 | ||||
nxv8bf16 = 151, // n x 8 x bf16 | nxv8bf16 = 151, // n x 8 x bf16 | ||||
nxv1f32 = 152, // n x 1 x f32 | nxv1f32 = 152, // n x 1 x f32 | ||||
nxv2f32 = 153, // n x 2 x f32 | nxv2f32 = 153, // n x 2 x f32 | ||||
nxv4f32 = 154, // n x 4 x f32 | nxv4f32 = 154, // n x 4 x f32 | ||||
nxv8f32 = 155, // n x 8 x f32 | nxv8f32 = 155, // n x 8 x f32 | ||||
nxv16f32 = 156, // n x 16 x f32 | nxv16f32 = 156, // n x 16 x f32 | ||||
nxv1f64 = 157, // n x 1 x f64 | nxv1f64 = 157, // n x 1 x f64 | ||||
nxv2f64 = 158, // n x 2 x f64 | nxv2f64 = 158, // n x 2 x f64 | ||||
nxv4f64 = 159, // n x 4 x f64 | nxv4f64 = 159, // n x 4 x f64 | ||||
nxv8f64 = 160, // n x 8 x f64 | nxv8f64 = 160, // n x 8 x f64 | ||||
FIRST_FP_SCALABLE_VECTOR_VALUETYPE = nxv1f16, | FIRST_FP_SCALABLE_VECTOR_VALUETYPE = nxv1f16, | ||||
LAST_FP_SCALABLE_VECTOR_VALUETYPE = nxv8f64, | LAST_FP_SCALABLE_VECTOR_VALUETYPE = nxv8f64, | ||||
FIRST_SCALABLE_VECTOR_VALUETYPE = nxv1i1, | FIRST_SCALABLE_VECTOR_VALUETYPE = nxv1i1, | ||||
LAST_SCALABLE_VECTOR_VALUETYPE = nxv8f64, | LAST_SCALABLE_VECTOR_VALUETYPE = nxv8f64, | ||||
FIRST_VECTOR_VALUETYPE = v1i1, | FIRST_VECTOR_VALUETYPE = v1i1, | ||||
LAST_VECTOR_VALUETYPE = nxv8f64, | LAST_VECTOR_VALUETYPE = nxv8f64, | ||||
x86mmx = 161, // This is an X86 MMX value | x86mmx = 161, // This is an X86 MMX value | ||||
Glue = 162, // This glues nodes together during pre-RA sched | Glue = 162, // This glues nodes together during pre-RA sched | ||||
isVoid = 163, // This has no value | isVoid = 163, // This has no value | ||||
Untyped = 164, // This value takes a register, but has | Untyped = 164, // This value takes a register, but has | ||||
// unspecified type. The register class | // unspecified type. The register class | ||||
// will be determined by the opcode. | // will be determined by the opcode. | ||||
funcref = 165, // WebAssembly's funcref type | funcref = 165, // WebAssembly's funcref type | ||||
externref = 166, // WebAssembly's externref type | externref = 166, // WebAssembly's externref type | ||||
x86amx = 167, // This is an X86 AMX value | x86amx = 167, // This is an X86 AMX value | ||||
FIRST_VALUETYPE = 1, // This is always the beginning of the list. | FIRST_VALUETYPE = 1, // This is always the beginning of the list. | ||||
LAST_VALUETYPE = x86amx, // This always remains at the end of the list. | LAST_VALUETYPE = x86amx, // This always remains at the end of the list. | ||||
VALUETYPE_SIZE = LAST_VALUETYPE + 1, | VALUETYPE_SIZE = LAST_VALUETYPE + 1, | ||||
// This is the current maximum for LAST_VALUETYPE. | // This is the current maximum for LAST_VALUETYPE. | ||||
// MVT::MAX_ALLOWED_VALUETYPE is used for asserts and to size bit vectors | // MVT::MAX_ALLOWED_VALUETYPE is used for asserts and to size bit vectors | ||||
// This value must be a multiple of 32. | // This value must be a multiple of 32. | ||||
MAX_ALLOWED_VALUETYPE = 192, | MAX_ALLOWED_VALUETYPE = 192, | ||||
// A value of type llvm::TokenTy | // A value of type llvm::TokenTy | ||||
token = 248, | token = 248, | ||||
// This is MDNode or MDString. | // This is MDNode or MDString. | ||||
Metadata = 249, | Metadata = 249, | ||||
// An int value the size of the pointer of the current | // An int value the size of the pointer of the current | ||||
// target to any address space. This must only be used internal to | // target to any address space. This must only be used internal to | ||||
// tblgen. Other than for overloading, we treat iPTRAny the same as iPTR. | // tblgen. Other than for overloading, we treat iPTRAny the same as iPTR. | ||||
iPTRAny = 250, | iPTRAny = 250, | ||||
// A vector with any length and element size. This is used | // A vector with any length and element size. This is used | ||||
// for intrinsics that have overloadings based on vector types. | // for intrinsics that have overloadings based on vector types. | ||||
// This is only for tblgen's consumption! | // This is only for tblgen's consumption! | ||||
vAny = 251, | vAny = 251, | ||||
// Any floating-point or vector floating-point value. This is used | // Any floating-point or vector floating-point value. This is used | ||||
// for intrinsics that have overloadings based on floating-point types. | // for intrinsics that have overloadings based on floating-point types. | ||||
// This is only for tblgen's consumption! | // This is only for tblgen's consumption! | ||||
fAny = 252, | fAny = 252, | ||||
// An integer or vector integer value of any bit width. This is | // An integer or vector integer value of any bit width. This is | ||||
// used for intrinsics that have overloadings based on integer bit widths. | // used for intrinsics that have overloadings based on integer bit widths. | ||||
// This is only for tblgen's consumption! | // This is only for tblgen's consumption! | ||||
iAny = 253, | iAny = 253, | ||||
// An int value the size of the pointer of the current | // An int value the size of the pointer of the current | ||||
// target. This should only be used internal to tblgen! | // target. This should only be used internal to tblgen! | ||||
iPTR = 254, | iPTR = 254, | ||||
// Any type. This is used for intrinsics that have overloadings. | // Any type. This is used for intrinsics that have overloadings. | ||||
// This is only for tblgen's consumption! | // This is only for tblgen's consumption! | ||||
Any = 255 | Any = 255 | ||||
// clang-format on | |||||
}; | }; | ||||
SimpleValueType SimpleTy = INVALID_SIMPLE_VALUE_TYPE; | SimpleValueType SimpleTy = INVALID_SIMPLE_VALUE_TYPE; | ||||
constexpr MVT() = default; | constexpr MVT() = default; | ||||
constexpr MVT(SimpleValueType SVT) : SimpleTy(SVT) {} | constexpr MVT(SimpleValueType SVT) : SimpleTy(SVT) {} | ||||
bool operator>(const MVT& S) const { return SimpleTy > S.SimpleTy; } | bool operator>(const MVT& S) const { return SimpleTy > S.SimpleTy; } | ||||
▲ Show 20 Lines • Show All 1,121 Lines • Show Last 20 Lines |