Remove intrinsics.x86_mmx type

This commit is contained in:
gingerBill
2021-04-22 10:39:20 +01:00
parent 158e4c0b6c
commit 0a66f8c9a3
14 changed files with 25 additions and 101 deletions
-3
View File
@@ -1638,9 +1638,6 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
}
case runtime.Type_Info_Simd_Vector:
if info.is_x86_mmx {
io.write_string(fi.writer, "intrinsics.x86_mmx<>");
}
io.write_byte(fi.writer, '<');
defer io.write_byte(fi.writer, '>');
for i in 0..<info.count {
-4
View File
@@ -2,10 +2,6 @@
//+ignore
package intrinsics
// Types
x86_mmx :: x86_mmx; // Specialized SIMD Vector type
// Types
simd_vector :: proc($N: int, $T: typeid) -> type/#simd[N]T
soa_struct :: proc($N: int, $T: typeid) -> type/#soa[N]T
-5
View File
@@ -212,11 +212,6 @@ Type_Flag_Bit_Set :: enum u32le {
Underlying_Type = 4,
}
Type_Flags_SimdVector :: distinct bit_set[Type_Flag_SimdVector; u32le];
Type_Flag_SimdVector :: enum u32le {
x86_mmx = 1,
}
from_array :: proc(base: ^Header_Base, a: $A/Array($T)) -> []T {
s: mem.Raw_Slice;
s.data = rawptr(uintptr(base) + uintptr(a.offset));
+4 -8
View File
@@ -565,14 +565,10 @@ write_type_writer :: proc(w: io.Writer, ti: ^Type_Info) -> (n: int) {
n += _n(io.write_byte(w, ']'));
case Type_Info_Simd_Vector:
if info.is_x86_mmx {
n += write_string(w, "intrinsics.x86_mmx");
} else {
n += write_string(w, "#simd[");
n += _n(io.write_i64(w, i64(info.count)));
n += _n(io.write_byte(w, ']'));
n += write_type(w, info.elem);
}
n += write_string(w, "#simd[");
n += _n(io.write_i64(w, i64(info.count)));
n += _n(io.write_byte(w, ']'));
n += write_type(w, info.elem);
case Type_Info_Relative_Pointer:
n += write_string(w, "#relative(");
-1
View File
@@ -144,7 +144,6 @@ Type_Info_Simd_Vector :: struct {
elem: ^Type_Info,
elem_size: int,
count: int,
is_x86_mmx: bool,
};
Type_Info_Relative_Pointer :: struct {
pointer: ^Type_Info,
+4 -8
View File
@@ -347,14 +347,10 @@ print_type :: proc "contextless" (ti: ^Type_Info) {
case Type_Info_Simd_Vector:
if info.is_x86_mmx {
print_string("intrinsics.x86_mmx");
} else {
print_string("#simd[");
print_u64(u64(info.count));
print_byte(']');
print_type(info.elem);
}
print_string("#simd[");
print_u64(u64(info.count));
print_byte(']');
print_type(info.elem);
case Type_Info_Relative_Pointer:
print_string("#relative(");