move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
2019-10-27 18:37:53 +01:00
|
|
|
|
2020-02-24 01:38:21 -05:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
2019-10-24 01:06:03 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-24 01:38:21 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-18 18:58:28 -07:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-12 14:29:43 +05:30
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-16 17:54:49 +01:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-18 23:47:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-06-01 16:07:08 -04:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
2020-02-25 03:43:21 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-12 14:29:43 +05:30
|
|
|
|
2020-02-25 03:43:21 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2021-06-19 21:31:43 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
2020-09-13 19:17:58 -07:00
|
|
|
|
2021-11-24 20:34:13 +01:00
|
|
|
|
2020-09-13 19:17:58 -07:00
|
|
|
|
|
|
|
|
|
2021-11-24 20:34:13 +01:00
|
|
|
|
2020-09-13 19:17:58 -07:00
|
|
|
|
|
|
|
|
|
2020-02-24 01:38:21 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-23 02:39:02 +01:00
|
|
|
|
2020-02-24 01:38:21 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-23 02:39:02 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-28 19:24:52 -05:00
|
|
|
|
2020-02-24 01:38:21 -05:00
|
|
|
|
2020-08-24 23:47:44 +03:00
|
|
|
|
2020-12-23 02:39:02 +01:00
|
|
|
|
2020-08-31 23:39:30 +10:00
|
|
|
|
2020-12-09 10:23:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-23 02:39:02 +01:00
|
|
|
|
2020-12-09 10:23:27 +01:00
|
|
|
|
2020-12-23 02:39:02 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-09 10:23:27 +01:00
|
|
|
|
|
|
|
|
|
2020-12-23 02:39:02 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-31 23:39:30 +10:00
|
|
|
|
2020-02-24 01:38:21 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-11 21:49:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-24 01:38:21 -05:00
|
|
|
|
2020-04-11 22:30:55 -05:00
|
|
|
|
2020-07-05 22:44:25 +00:00
|
|
|
|
|
|
|
|
|
2020-04-11 22:30:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-06-19 21:10:22 -04:00
|
|
|
|
2020-07-11 14:09:04 +03:00
|
|
|
|
2020-04-11 22:30:55 -05:00
|
|
|
|
2020-07-11 14:09:04 +03:00
|
|
|
|
2020-08-24 23:47:44 +03:00
|
|
|
|
2020-11-26 09:48:12 +01:00
|
|
|
|
2020-04-11 22:30:55 -05:00
|
|
|
|
2020-08-24 23:47:44 +03:00
|
|
|
|
|
|
|
|
|
2020-04-11 22:30:55 -05:00
|
|
|
|
|
|
|
|
|
2020-08-24 23:47:44 +03:00
|
|
|
|
2020-11-26 09:48:12 +01:00
|
|
|
|
2020-04-11 22:30:55 -05:00
|
|
|
|
2020-08-24 23:47:44 +03:00
|
|
|
|
2020-04-11 22:30:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
2020-02-24 01:38:21 -05:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-11 21:49:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-28 10:26:47 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-11 21:49:43 +02:00
|
|
|
|
|
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-24 20:34:13 +01:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-16 17:54:49 +01:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-18 23:47:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-06-01 16:07:08 -04:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-28 10:26:47 -07:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
2021-11-24 20:34:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-22 11:30:52 +02:00
|
|
|
|
|
|
|
|
|
2021-11-24 20:34:13 +01:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
2021-11-24 20:34:13 +01:00
|
|
|
|
|
|
|
|
|
2022-05-22 11:30:52 +02:00
|
|
|
|
|
|
|
|
|
2021-11-24 20:34:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
2020-02-28 02:36:16 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-11 22:03:57 -04:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-11 08:23:36 +00:00
|
|
|
|
2021-05-11 22:03:57 -04:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
2020-03-04 15:34:32 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-11 22:03:57 -04:00
|
|
|
|
2020-03-04 15:34:32 -05:00
|
|
|
|
|
|
|
|
|
2021-08-31 22:21:23 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-15 20:02:13 -07:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
2021-12-15 20:02:13 -07:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-24 23:47:44 +03:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
2020-02-24 01:38:21 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-13 19:17:58 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-12 14:29:43 +05:30
|
|
|
|
2020-09-13 19:17:58 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-31 22:21:23 +10:00
|
|
|
|
2020-09-13 19:17:58 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
2020-08-11 21:49:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-30 23:41:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-12 14:29:43 +05:30
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-28 23:00:31 -06:00
|
|
|
|
2021-08-31 22:21:23 +10:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-16 17:54:49 +01:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-17 16:18:00 +01:00
|
|
|
|
2021-01-18 23:47:25 +01:00
|
|
|
|
|
|
|
|
|
2021-06-01 16:07:08 -04:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
2020-01-20 01:42:31 -05:00
|
|
|
|
2021-08-15 23:09:55 -07:00
|
|
|
|
2020-01-20 01:42:31 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
update CPU features to LLVM 14
Notable changes:
`_i386`, `_i486`, and `_i686` are renamed to `i386`, `i486`,
and `i686` respectively. `std.zig.fmtId` is enhanced to support
formatting `i386` as `@"i386"`.
Some CPU features which are actually CPU models have been
properly flattened, such as `apple_a12`, `apple_a13`, `apple_a7`,
`cortex_a78c`, `exynos_m4`, `neoverse_e1`, `neoverse_n1`,
`neoverse_n2`, `neoverse_v1`.
Some CPU features have been added and some have been removed, following
LLVM's lead.
CSky CPU features support is added.
2022-07-01 21:35:19 -07:00
|
|
|
|
2020-01-20 01:42:31 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-13 01:30:54 +02:00
|
|
|
|
2022-07-28 13:47:29 -07:00
|
|
|
|
2021-02-26 23:52:04 -07:00
|
|
|
|
2020-01-20 01:42:31 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-27 13:09:27 -05:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-16 01:11:10 -07:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-16 17:54:49 +01:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-28 23:00:31 -06:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2021-05-23 16:01:41 -07:00
|
|
|
|
2021-06-01 18:35:13 +09:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-18 23:47:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-06-01 16:07:08 -04:00
|
|
|
|
2022-05-15 11:17:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-17 16:18:00 +01:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-24 01:38:21 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-15 16:44:16 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-22 14:44:06 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2021-07-22 14:44:06 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2021-07-22 14:44:06 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2021-07-22 14:44:06 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2021-07-22 14:44:06 -07:00
|
|
|
|
2020-07-12 22:56:31 -04:00
|
|
|
|
2021-07-22 14:44:06 -07:00
|
|
|
|
2021-01-17 16:18:00 +01:00
|
|
|
|
2021-07-22 14:44:06 -07:00
|
|
|
|
self-hosted: AST flattening, astgen improvements, result locations, and more
* AST: flatten ControlFlowExpression into Continue, Break, and Return.
* AST: unify identifiers and literals into the same AST type: OneToken
* AST: ControlFlowExpression uses TrailerFlags to optimize storage
space.
* astgen: support `var` as well as `const` locals, and support
explicitly typed locals. Corresponding Module and codegen code is not
implemented yet.
* astgen: support result locations.
* ZIR: add the following instructions (see the corresponding doc
comments for explanations of semantics):
- alloc
- alloc_inferred
- bitcast_result_ptr
- coerce_result_block_ptr
- coerce_result_ptr
- coerce_to_ptr_elem
- ensure_result_used
- ensure_result_non_error
- ret_ptr
- ret_type
- store
- param_type
* the skeleton structure for result locations is set up. It's looking
pretty clean so far.
* add compile error for unused result and compile error for discarding
errors.
* astgen: split builtin calls up to implemented manually, and implement
`@as`, `@bitCast` (and others) with respect to result locations.
* add CLI support for hex and raw object formats. They are not
supported by the self-hosted compiler yet, and emit errors.
* rename `--c` CLI to `-ofmt=[objectformat]` which can be any of the
object formats. Only ELF and C are supported so far. Also added missing
help to the help text.
* Remove hard tabs from C backend test cases. Shame on you Noam, you
are grounded, you should know better, etc. Bad boy.
* Delete C backend code and test case that relied on comptime_int
incorrectly making it all the way to codegen.
2020-07-23 23:05:26 -07:00
|
|
|
|
2021-07-22 14:44:06 -07:00
|
|
|
|
self-hosted: AST flattening, astgen improvements, result locations, and more
* AST: flatten ControlFlowExpression into Continue, Break, and Return.
* AST: unify identifiers and literals into the same AST type: OneToken
* AST: ControlFlowExpression uses TrailerFlags to optimize storage
space.
* astgen: support `var` as well as `const` locals, and support
explicitly typed locals. Corresponding Module and codegen code is not
implemented yet.
* astgen: support result locations.
* ZIR: add the following instructions (see the corresponding doc
comments for explanations of semantics):
- alloc
- alloc_inferred
- bitcast_result_ptr
- coerce_result_block_ptr
- coerce_result_ptr
- coerce_to_ptr_elem
- ensure_result_used
- ensure_result_non_error
- ret_ptr
- ret_type
- store
- param_type
* the skeleton structure for result locations is set up. It's looking
pretty clean so far.
* add compile error for unused result and compile error for discarding
errors.
* astgen: split builtin calls up to implemented manually, and implement
`@as`, `@bitCast` (and others) with respect to result locations.
* add CLI support for hex and raw object formats. They are not
supported by the self-hosted compiler yet, and emit errors.
* rename `--c` CLI to `-ofmt=[objectformat]` which can be any of the
object formats. Only ELF and C are supported so far. Also added missing
help to the help text.
* Remove hard tabs from C backend test cases. Shame on you Noam, you
are grounded, you should know better, etc. Bad boy.
* Delete C backend code and test case that relied on comptime_int
incorrectly making it all the way to codegen.
2020-07-23 23:05:26 -07:00
|
|
|
|
2021-07-22 14:44:06 -07:00
|
|
|
|
2021-06-01 16:07:08 -04:00
|
|
|
|
2022-02-05 15:33:00 +01:00
|
|
|
|
|
|
|
|
|
2021-07-22 14:44:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-02-05 15:33:00 +01:00
|
|
|
|
2021-07-22 14:44:06 -07:00
|
|
|
|
|
|
|
|
|
2022-08-18 18:58:28 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-19 02:40:35 -05:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-19 02:40:35 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-19 02:40:35 -05:00
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
|
|
|
|
|
2020-01-19 02:40:35 -05:00
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
2020-01-21 20:11:36 -05:00
|
|
|
|
|
|
|
|
|
2020-01-19 02:40:35 -05:00
|
|
|
|
|
|
|
|
|
2020-01-21 00:34:54 -05:00
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
2020-01-19 02:40:35 -05:00
|
|
|
|
2021-05-13 01:30:54 +02:00
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
|
|
|
|
|
2020-10-17 14:09:59 +02:00
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
2020-01-21 00:34:54 -05:00
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
2020-01-21 20:11:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-21 00:34:54 -05:00
|
|
|
|
|
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
2020-01-21 20:11:36 -05:00
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
2022-03-30 11:12:14 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
2020-01-21 20:11:36 -05:00
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
2022-03-30 11:12:14 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
2020-01-21 20:11:36 -05:00
|
|
|
|
2020-02-05 23:40:36 +01:00
|
|
|
|
|
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
|
|
|
|
|
2020-01-21 20:11:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-21 00:34:54 -05:00
|
|
|
|
2020-01-21 22:01:24 -05:00
|
|
|
|
2021-02-24 19:45:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-06-11 14:01:13 -07:00
|
|
|
|
2022-03-30 11:12:14 -07:00
|
|
|
|
2021-06-11 14:01:13 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-21 22:01:24 -05:00
|
|
|
|
2020-01-21 00:34:54 -05:00
|
|
|
|
2020-01-19 20:22:31 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
2020-01-21 20:11:36 -05:00
|
|
|
|
|
|
|
|
|
2020-01-21 19:40:44 -05:00
|
|
|
|
2020-01-21 20:11:36 -05:00
|
|
|
|
2020-01-19 20:22:31 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-19 09:45:35 +02:00
|
|
|
|
2020-01-19 20:22:31 -05:00
|
|
|
|
2020-01-21 00:34:54 -05:00
|
|
|
|
2020-01-19 20:22:31 -05:00
|
|
|
|
2020-10-19 09:45:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-19 20:22:31 -05:00
|
|
|
|
|
|
|
|
|
2020-01-19 02:40:35 -05:00
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-16 17:54:49 +01:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2021-08-16 01:11:10 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-27 02:51:35 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-13 22:59:06 +07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-02-03 16:49:24 -07:00
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-25 16:30:40 -05:00
|
|
|
|
2020-08-22 13:36:08 -07:00
|
|
|
|
|
|
|
|
|
2020-08-21 17:52:03 -04:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
2021-05-31 11:11:30 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
2021-06-19 21:31:43 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-20 22:04:48 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-19 11:40:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-28 21:42:26 +07:00
|
|
|
|
|
|
|
|
|
2022-05-13 22:59:06 +07:00
|
|
|
|
2020-08-28 21:42:26 +07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-04 00:32:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-26 10:46:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-02 09:26:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-13 22:59:06 +07:00
|
|
|
|
2022-05-02 09:26:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-03 18:24:42 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-16 01:11:10 -07:00
|
|
|
|
2020-09-03 18:24:42 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-27 02:51:35 -07:00
|
|
|
|
2020-09-03 18:24:42 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-16 17:54:49 +01:00
|
|
|
|
2022-05-13 22:59:06 +07:00
|
|
|
|
2020-09-03 18:24:42 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-17 16:18:00 +01:00
|
|
|
|
|
|
|
|
|
2020-09-03 18:24:42 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-04 23:47:27 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-16 17:54:49 +01:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-27 02:51:35 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-07 15:06:58 -04:00
|
|
|
|
2020-08-21 17:52:03 -04:00
|
|
|
|
2021-01-17 16:18:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-16 01:11:10 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-13 22:59:06 +07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-21 19:48:59 -04:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-21 17:52:03 -04:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-16 17:54:49 +01:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2021-08-16 01:11:10 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-27 02:51:35 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-17 16:18:00 +01:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-13 22:59:06 +07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2020-03-03 09:44:13 -05:00
|
|
|
|
2021-01-17 16:18:00 +01:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-27 01:05:53 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-27 02:51:35 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
2022-05-13 22:59:06 +07:00
|
|
|
|
2022-07-28 13:47:29 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-17 16:18:00 +01:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-27 02:51:35 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
2022-05-13 22:59:06 +07:00
|
|
|
|
2021-05-13 01:30:54 +02:00
|
|
|
|
2022-07-28 13:47:29 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
2021-02-27 01:05:53 -07:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-11 20:11:20 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-27 02:51:35 -07:00
|
|
|
|
2020-07-11 20:11:20 +03:00
|
|
|
|
|
|
|
|
|
2022-05-13 22:59:06 +07:00
|
|
|
|
2022-07-28 13:47:29 -07:00
|
|
|
|
2020-07-11 20:11:20 +03:00
|
|
|
|
|
|
|
|
|
2021-02-27 01:05:53 -07:00
|
|
|
|
2020-07-11 20:11:20 +03:00
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-11 20:11:20 +03:00
|
|
|
|
|
|
|
|
|
2022-01-31 22:25:49 -07:00
|
|
|
|
2020-07-11 20:11:20 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2020-03-06 19:41:44 -05:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-06 19:41:44 -05:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2021-04-06 10:47:29 +02:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-04-20 12:11:20 -04:00
|
|
|
|
|
|
|
|
|
2020-11-08 16:55:11 +01:00
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2020-03-06 19:41:44 -05:00
|
|
|
|
|
|
|
|
|
2021-02-27 01:05:53 -07:00
|
|
|
|
2022-05-13 22:59:06 +07:00
|
|
|
|
2022-07-28 13:47:29 -07:00
|
|
|
|
update CPU features to LLVM 14
Notable changes:
`_i386`, `_i486`, and `_i686` are renamed to `i386`, `i486`,
and `i686` respectively. `std.zig.fmtId` is enhanced to support
formatting `i386` as `@"i386"`.
Some CPU features which are actually CPU models have been
properly flattened, such as `apple_a12`, `apple_a13`, `apple_a7`,
`cortex_a78c`, `exynos_m4`, `neoverse_e1`, `neoverse_n1`,
`neoverse_n2`, `neoverse_v1`.
Some CPU features have been added and some have been removed, following
LLVM's lead.
CSky CPU features support is added.
2022-07-01 21:35:19 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
2021-02-27 01:05:53 -07:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-06 19:41:44 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-16 17:25:48 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-03-06 19:41:44 -05:00
|
|
|
|
|
|
|
|
|
2021-02-27 01:05:53 -07:00
|
|
|
|
2020-03-06 19:41:44 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-19 21:30:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2020-01-22 17:13:31 -05:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
2019-10-29 22:59:30 -04:00
|
|
|
|
|
|
|
|
|
2021-10-29 00:37:25 +01:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
2021-10-29 00:37:25 +01:00
|
|
|
|
2020-11-26 09:48:12 +01:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2019-10-10 21:58:47 +02:00
|
|
|
|
2021-10-29 00:37:25 +01:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
2019-10-10 21:58:47 +02:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2021-07-22 14:44:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2021-07-22 14:44:06 -07:00
|
|
|
|
2019-10-10 21:58:47 +02:00
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
2021-05-23 16:01:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2021-05-23 16:01:41 -07:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-23 16:01:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
2021-05-23 16:01:41 -07:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-25 03:43:21 -05:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-24 01:38:21 -05:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
2019-12-31 17:57:20 -05:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
2021-06-19 21:31:43 -05:00
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
|
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
2020-02-25 03:43:21 -05:00
|
|
|
|
|
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
2021-06-19 21:31:43 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-26 10:46:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
|
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
2020-02-26 01:18:23 -05:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
|
|
|
|
|
2019-11-25 18:46:17 -05:00
|
|
|
|
2020-02-25 03:43:21 -05:00
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-15 16:44:16 -07:00
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
|
|
|
|
|
2020-02-17 16:03:01 -05:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
|
|
|
|
|
2020-02-17 16:03:01 -05:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
2020-02-17 16:03:01 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-12 14:29:43 +05:30
|
|
|
|
2020-02-17 16:03:01 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-17 16:18:00 +01:00
|
|
|
|
2021-01-18 23:47:25 +01:00
|
|
|
|
|
|
|
|
|
2021-06-01 16:07:08 -04:00
|
|
|
|
2020-02-17 16:03:01 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-28 13:27:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-27 16:38:10 -05:00
|
|
|
|
2020-07-11 14:09:04 +03:00
|
|
|
|
2020-02-28 13:27:52 -05:00
|
|
|
|
|
|
|
|
|
2020-02-27 16:38:10 -05:00
|
|
|
|
2020-02-28 13:27:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-27 16:38:10 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-15 16:44:16 -07:00
|
|
|
|
2020-02-27 16:38:10 -05:00
|
|
|
|
2020-11-26 09:48:12 +01:00
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
|
|
|
|
|
2020-10-15 16:44:16 -07:00
|
|
|
|
2020-02-27 16:38:10 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-15 16:44:16 -07:00
|
|
|
|
2020-11-26 09:48:12 +01:00
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
|
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
2020-02-28 13:27:52 -05:00
|
|
|
|
|
|
|
|
|
2021-06-06 16:35:15 +02:00
|
|
|
|
2020-02-28 13:27:52 -05:00
|
|
|
|
2021-08-31 22:21:23 +10:00
|
|
|
|
2020-02-25 01:52:27 -05:00
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-28 13:27:52 -05:00
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
2020-02-28 13:27:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-15 16:44:16 -07:00
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-26 18:56:43 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-26 09:48:12 +01:00
|
|
|
|
2020-02-26 18:56:43 -05:00
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
2021-02-27 02:51:35 -07:00
|
|
|
|
2020-02-28 13:27:52 -05:00
|
|
|
|
|
|
|
|
|
2022-05-13 22:59:06 +07:00
|
|
|
|
2020-02-28 13:27:52 -05:00
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-28 13:27:52 -05:00
|
|
|
|
|
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
2020-02-27 16:38:10 -05:00
|
|
|
|
|
|
|
|
|
2020-02-17 15:46:53 -05:00
|
|
|
|
|
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
|
|
|
|
|
2020-02-27 16:38:10 -05:00
|
|
|
|
|
|
|
|
|
2020-08-21 17:52:03 -04:00
|
|
|
|
|
|
|
|
|
2021-01-17 16:18:00 +01:00
|
|
|
|
|
|
|
|
|
2020-02-28 13:27:52 -05:00
|
|
|
|
2020-02-27 16:38:10 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-16 17:54:49 +01:00
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
2021-08-16 01:11:10 -07:00
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-25 16:30:40 -05:00
|
|
|
|
2020-02-28 13:27:52 -05:00
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
2020-02-17 15:46:53 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-12 14:29:43 +05:30
|
|
|
|
2020-10-15 16:44:16 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-17 15:46:53 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-27 16:38:10 -05:00
|
|
|
|
2021-01-17 16:18:00 +01:00
|
|
|
|
2021-01-18 23:47:25 +01:00
|
|
|
|
|
|
|
|
|
2020-02-17 15:46:53 -05:00
|
|
|
|
2021-06-01 16:07:08 -04:00
|
|
|
|
2020-02-28 13:27:52 -05:00
|
|
|
|
2020-02-17 15:46:53 -05:00
|
|
|
|
2021-01-17 13:29:00 -06:00
|
|
|
|
2020-12-28 23:00:31 -06:00
|
|
|
|
|
|
|
|
|
2020-02-27 16:38:10 -05:00
|
|
|
|
|
|
|
|
|
2020-02-27 13:31:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-16 17:54:49 +01:00
|
|
|
|
2020-02-27 13:31:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-02-28 13:27:52 -05:00
|
|
|
|
2020-02-17 15:23:59 -05:00
|
|
|
|
|
|
|
|
|
2020-09-28 22:19:00 -07:00
|
|
|
|
2021-07-22 14:44:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-05 18:17:55 -07:00
|
|
|
|
2022-03-06 15:23:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-04-16 01:55:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-06 15:23:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-13 22:59:06 +07:00
|
|
|
|
2022-03-06 15:23:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-04 11:37:09 +03:00
|
|
|
|
|
|
|
|
|
2022-03-06 15:23:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-13 22:59:06 +07:00
|
|
|
|
2022-03-06 15:23:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-05 18:17:55 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-03 23:44:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-04 15:22:41 -07:00
|
|
|
|
2022-07-16 16:27:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-04 15:22:41 -07:00
|
|
|
|
2022-05-04 19:11:02 -07:00
|
|
|
|
2022-08-18 20:34:36 -07:00
|
|
|
|
2022-05-04 15:22:41 -07:00
|
|
|
|
2022-05-04 19:11:02 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-13 22:59:06 +07:00
|
|
|
|
2022-08-18 20:34:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-04 19:11:02 -07:00
|
|
|
|
|
|
|
|
|
2022-05-03 23:44:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-18 20:34:36 -07:00
|
|
|
|
2022-05-03 23:44:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-04 19:11:02 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-03 23:44:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-04 19:11:02 -07:00
|
|
|
|
2022-05-03 23:44:32 -07:00
|
|
|
|
|
|
|
|
|
move types from builtin to std
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 18:43:24 -04:00
|
|
|
|
2020-04-07 15:06:58 -04:00
|
|
|
|
2021-01-22 15:45:28 +01:00
|
|
|
|
2020-09-28 07:29:53 -06:00
|
|
|
|
2020-04-07 15:06:58 -04:00
|
|
|
|