aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-04-22 10:39:20 +0100
committergingerBill <bill@gingerbill.org>2021-04-22 10:39:20 +0100
commit0a66f8c9a35c57714952182143984eb988f2ef0f (patch)
treef09a88a9b0c98ddd0a9ace14fb1938e207a07ad2 /src/types.cpp
parent158e4c0b6cb173af8907453c6b083932e34a910e (diff)
Remove `intrinsics.x86_mmx` type
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp25
1 files changed, 4 insertions, 21 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 9871e469c..f706032a5 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -283,7 +283,6 @@ struct TypeProc {
TYPE_KIND(SimdVector, struct { \
i64 count; \
Type *elem; \
- bool is_x86_mmx; \
}) \
TYPE_KIND(RelativePointer, struct { \
Type *pointer_type; \
@@ -679,8 +678,6 @@ gb_global Type *t_source_code_location_ptr = nullptr;
gb_global Type *t_map_hash = nullptr;
gb_global Type *t_map_header = nullptr;
-gb_global Type *t_vector_x86_mmx = nullptr;
-
gb_global Type *t_equal_proc = nullptr;
gb_global Type *t_hasher_proc = nullptr;
@@ -2162,12 +2159,8 @@ bool are_types_identical(Type *x, Type *y) {
case Type_SimdVector:
if (y->kind == Type_SimdVector) {
- if (x->SimdVector.is_x86_mmx == y->SimdVector.is_x86_mmx) {
- if (x->SimdVector.is_x86_mmx) {
- return true;
- } else if (x->SimdVector.count == y->SimdVector.count) {
- return are_types_identical(x->SimdVector.elem, y->SimdVector.elem);
- }
+ if (x->SimdVector.count == y->SimdVector.count) {
+ return are_types_identical(x->SimdVector.elem, y->SimdVector.elem);
}
}
break;
@@ -2967,9 +2960,6 @@ i64 type_align_of_internal(Type *t, TypePath *path) {
}
case Type_SimdVector: {
- if (t->SimdVector.is_x86_mmx) {
- return 8;
- }
// align of
i64 count = t->SimdVector.count;
Type *elem = t->SimdVector.elem;
@@ -3233,9 +3223,6 @@ i64 type_size_of_internal(Type *t, TypePath *path) {
}
case Type_SimdVector: {
- if (t->SimdVector.is_x86_mmx) {
- return 8;
- }
i64 count = t->SimdVector.count;
Type *elem = t->SimdVector.elem;
return count * type_size_of_internal(elem, path);
@@ -3670,12 +3657,8 @@ gbString write_type_to_string(gbString str, Type *type) {
break;
case Type_SimdVector:
- if (type->SimdVector.is_x86_mmx) {
- return gb_string_appendc(str, "intrinsics.x86_mmx");
- } else {
- str = gb_string_append_fmt(str, "#simd[%d]", cast(int)type->SimdVector.count);
- str = write_type_to_string(str, type->SimdVector.elem);
- }
+ str = gb_string_append_fmt(str, "#simd[%d]", cast(int)type->SimdVector.count);
+ str = write_type_to_string(str, type->SimdVector.elem);
break;
case Type_RelativePointer: