aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-10-20 18:37:13 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-10-23 09:27:17 +0200
commitabf40caeb7d85d8fc842fe82215b19902b749481 (patch)
treebab863bd58f6d5635bdd17c77fdd860b6132f046 /src/codegen
parentbeb507a1edadb2829478d066b80ea62ed537157a (diff)
downloadzig-abf40caeb7d85d8fc842fe82215b19902b749481.tar.gz
zig-abf40caeb7d85d8fc842fe82215b19902b749481.zip
std.builtin: add CallingConvention.msp430_interrupt
Supported by LLVM and CBE.
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/c.zig1
-rw-r--r--src/codegen/llvm.zig1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig
index cf0519e1f1..a47d031520 100644
--- a/src/codegen/c.zig
+++ b/src/codegen/c.zig
@@ -8113,6 +8113,7 @@ fn toCallingConvention(cc: std.builtin.CallingConvention, zcu: *Zcu) ?[]const u8
.avr_interrupt,
.csky_interrupt,
.m68k_interrupt,
+ .msp430_interrupt,
.x86_interrupt,
.x86_64_interrupt,
=> "interrupt",
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index 3b3febf27e..9d23178887 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -11900,6 +11900,7 @@ fn toLlvmCallConvTag(cc_tag: std.builtin.CallingConvention.Tag, target: *const s
.avr_interrupt => .avr_intrcc,
.m68k_rtd => .m68k_rtdcc,
.m68k_interrupt => .m68k_intrcc,
+ .msp430_interrupt => .msp430_intrcc,
.amdgcn_kernel => .amdgpu_kernel,
.amdgcn_cs => .amdgpu_cs,
.nvptx_device => .ptx_device,