aboutsummaryrefslogtreecommitdiff
path: root/src/link
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-04-05 01:46:13 -0400
committerGitHub <noreply@github.com>2025-04-05 01:46:13 -0400
commit0cd31fc7ff157551cfbba5da35cd79f118d2a2e3 (patch)
treea308488f5d85184c8ec402fb3f55f1cf2704443e /src/link
parent8acedfd5baabab705946ad097746f9183ef62420 (diff)
parentcefe65c1b8abe65a22d4b68410db1be264fdeda0 (diff)
downloadzig-0cd31fc7ff157551cfbba5da35cd79f118d2a2e3.tar.gz
zig-0cd31fc7ff157551cfbba5da35cd79f118d2a2e3.zip
Merge pull request #22780 from ziglang/llvm20
LLVM 20
Diffstat (limited to 'src/link')
-rw-r--r--src/link/Wasm.zig17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/link/Wasm.zig b/src/link/Wasm.zig
index dda48b09d5..0d996aff15 100644
--- a/src/link/Wasm.zig
+++ b/src/link/Wasm.zig
@@ -2820,9 +2820,12 @@ pub const Feature = packed struct(u8) {
pub const Tag = enum(u6) {
atomics,
@"bulk-memory",
+ @"bulk-memory-opt",
+ @"call-indirect-overlong",
@"exception-handling",
@"extended-const",
- @"half-precision",
+ fp16,
+ memory64,
multimemory,
multivalue,
@"mutable-globals",
@@ -2834,14 +2837,17 @@ pub const Feature = packed struct(u8) {
simd128,
@"tail-call",
@"shared-mem",
+ @"wide-arithmetic",
pub fn fromCpuFeature(feature: std.Target.wasm.Feature) Tag {
return switch (feature) {
.atomics => .atomics,
.bulk_memory => .@"bulk-memory",
+ .bulk_memory_opt => .@"bulk-memory-opt",
+ .call_indirect_overlong => .@"call-indirect-overlong",
.exception_handling => .@"exception-handling",
.extended_const => .@"extended-const",
- .half_precision => .@"half-precision",
+ .fp16 => .fp16,
.multimemory => .multimemory,
.multivalue => .multivalue,
.mutable_globals => .@"mutable-globals",
@@ -2852,6 +2858,7 @@ pub const Feature = packed struct(u8) {
.sign_ext => .@"sign-ext",
.simd128 => .simd128,
.tail_call => .@"tail-call",
+ .wide_arithmetic => .@"wide-arithmetic",
};
}
@@ -2859,9 +2866,12 @@ pub const Feature = packed struct(u8) {
return switch (tag) {
.atomics => .atomics,
.@"bulk-memory" => .bulk_memory,
+ .@"bulk-memory-opt" => .bulk_memory_opt,
+ .@"call-indirect-overlong" => .call_indirect_overlong,
.@"exception-handling" => .exception_handling,
.@"extended-const" => .extended_const,
- .@"half-precision" => .half_precision,
+ .fp16 => .fp16,
+ .memory64 => null, // Linker-only feature.
.multimemory => .multimemory,
.multivalue => .multivalue,
.@"mutable-globals" => .mutable_globals,
@@ -2873,6 +2883,7 @@ pub const Feature = packed struct(u8) {
.simd128 => .simd128,
.@"tail-call" => .tail_call,
.@"shared-mem" => null, // Linker-only feature.
+ .@"wide-arithmetic" => .wide_arithmetic,
};
}