From be673e67937bbc3e2c74591f8f447f848b2a566a Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 23 Mar 2021 16:12:26 -0700 Subject: stage2: implement inttype ZIR also add i128 and u128 to const inst list --- src/value.zig | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'src/value.zig') diff --git a/src/value.zig b/src/value.zig index 5d5ba0934a..7e98d14a34 100644 --- a/src/value.zig +++ b/src/value.zig @@ -30,6 +30,8 @@ pub const Value = extern union { i32_type, u64_type, i64_type, + u128_type, + i128_type, usize_type, isize_type, c_short_type, @@ -120,6 +122,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, @@ -274,6 +278,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, @@ -427,6 +433,8 @@ pub const Value = extern union { .i32_type => return out_stream.writeAll("i32"), .u64_type => return out_stream.writeAll("u64"), .i64_type => return out_stream.writeAll("i64"), + .u128_type => return out_stream.writeAll("u128"), + .i128_type => return out_stream.writeAll("i128"), .isize_type => return out_stream.writeAll("isize"), .usize_type => return out_stream.writeAll("usize"), .c_short_type => return out_stream.writeAll("c_short"), @@ -554,6 +562,8 @@ pub const Value = extern union { .i32_type => Type.initTag(.i32), .u64_type => Type.initTag(.u64), .i64_type => Type.initTag(.i64), + .u128_type => Type.initTag(.u128), + .i128_type => Type.initTag(.i128), .usize_type => Type.initTag(.usize), .isize_type => Type.initTag(.isize), .c_short_type => Type.initTag(.c_short), @@ -650,6 +660,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, @@ -736,6 +748,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, @@ -822,6 +836,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, @@ -935,6 +951,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, @@ -1026,6 +1044,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, @@ -1182,6 +1202,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, @@ -1265,6 +1287,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, @@ -1416,6 +1440,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, @@ -1573,6 +1599,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, @@ -1659,6 +1687,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, @@ -1762,6 +1792,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, @@ -1843,6 +1875,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, @@ -1944,6 +1978,8 @@ pub const Value = extern union { .i32_type, .u64_type, .i64_type, + .u128_type, + .i128_type, .usize_type, .isize_type, .c_short_type, -- cgit v1.2.3