authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-10-15 16:36:10+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2024-10-19 19:15:24+01:00
log2319d62f21e4cdcf4575d1512cb8058dd03fd6b4
tree0ae321c565cf3e8f3d2eec46e91eb5abd6a71eb2
parentd466c08e054e4595eb21e7810beeabde2a70f262
signaturelock-open Commit is signed but in an unrecognized format.

std.builtin.CallingConvention: include exact architecture tags in comments


1 files changed, 32 insertions(+), 32 deletions(-)

lib/std/builtin.zig+32-32
...@@ -256,7 +256,7 @@ pub const CallingConvention = union(enum(u8)) {...@@ -256,7 +256,7 @@ pub const CallingConvention = union(enum(u8)) {
256 /// Pointers to inline functions are comptime-only.256 /// Pointers to inline functions are comptime-only.
257 @"inline",257 @"inline",
258258
259 // Calling conventions for the x86_64 architecture.259 // Calling conventions for the `x86_64` architecture.
260 x86_64_sysv: CommonOptions,260 x86_64_sysv: CommonOptions,
261 x86_64_win: CommonOptions,261 x86_64_win: CommonOptions,
262 x86_64_regcall_v3_sysv: CommonOptions,262 x86_64_regcall_v3_sysv: CommonOptions,
...@@ -264,7 +264,7 @@ pub const CallingConvention = union(enum(u8)) {...@@ -264,7 +264,7 @@ pub const CallingConvention = union(enum(u8)) {
264 x86_64_vectorcall: CommonOptions,264 x86_64_vectorcall: CommonOptions,
265 x86_64_interrupt: CommonOptions,265 x86_64_interrupt: CommonOptions,
266266
267 // Calling conventions for the x86 architecture.267 // Calling conventions for the `x86` architecture.
268 x86_sysv: X86RegparmOptions,268 x86_sysv: X86RegparmOptions,
269 x86_win: X86RegparmOptions,269 x86_win: X86RegparmOptions,
270 x86_stdcall: X86RegparmOptions,270 x86_stdcall: X86RegparmOptions,
...@@ -276,14 +276,14 @@ pub const CallingConvention = union(enum(u8)) {...@@ -276,14 +276,14 @@ pub const CallingConvention = union(enum(u8)) {
276 x86_vectorcall: CommonOptions,276 x86_vectorcall: CommonOptions,
277 x86_interrupt: CommonOptions,277 x86_interrupt: CommonOptions,
278278
279 // Calling conventions for the aarch64 architecture.279 // Calling conventions for the `aarch64` and `aarch64_be` architectures.
280 aarch64_aapcs: CommonOptions,280 aarch64_aapcs: CommonOptions,
281 aarch64_aapcs_darwin: CommonOptions,281 aarch64_aapcs_darwin: CommonOptions,
282 aarch64_aapcs_win: CommonOptions,282 aarch64_aapcs_win: CommonOptions,
283 aarch64_vfabi: CommonOptions,283 aarch64_vfabi: CommonOptions,
284 aarch64_vfabi_sve: CommonOptions,284 aarch64_vfabi_sve: CommonOptions,
285285
286 // Calling convetions for the arm architecture.286 // Calling convetions for the `arm`, `armeb`, `thumb`, and `thumbeb` architectures.
287 /// ARM Procedure Call Standard (obsolete)287 /// ARM Procedure Call Standard (obsolete)
288 arm_apcs: CommonOptions,288 arm_apcs: CommonOptions,
289 /// ARM Architecture Procedure Call Standard289 /// ARM Architecture Procedure Call Standard
...@@ -293,114 +293,114 @@ pub const CallingConvention = union(enum(u8)) {...@@ -293,114 +293,114 @@ pub const CallingConvention = union(enum(u8)) {
293 arm_aapcs16_vfp: CommonOptions,293 arm_aapcs16_vfp: CommonOptions,
294 arm_interrupt: ArmInterruptOptions,294 arm_interrupt: ArmInterruptOptions,
295295
296 // Calling conventions for the mips64 architecture.296 // Calling conventions for the `mips64` architecture.
297 mips64_n64: CommonOptions,297 mips64_n64: CommonOptions,
298 mips64_n32: CommonOptions,298 mips64_n32: CommonOptions,
299 mips64_interrupt: MipsInterruptOptions,299 mips64_interrupt: MipsInterruptOptions,
300300
301 // Calling conventions for the mips architecture.301 // Calling conventions for the `mips` architecture.
302 mips_o32: CommonOptions,302 mips_o32: CommonOptions,
303 mips_interrupt: MipsInterruptOptions,303 mips_interrupt: MipsInterruptOptions,
304304
305 // Calling conventions for the riscv64 architecture.305 // Calling conventions for the `riscv64` architecture.
306 riscv64_lp64: CommonOptions,306 riscv64_lp64: CommonOptions,
307 riscv64_lp64_v: CommonOptions,307 riscv64_lp64_v: CommonOptions,
308 riscv64_interrupt: RiscvInterruptOptions,308 riscv64_interrupt: RiscvInterruptOptions,
309309
310 // Calling conventions for the riscv32 architecture.310 // Calling conventions for the `riscv32` architecture.
311 riscv32_ilp32: CommonOptions,311 riscv32_ilp32: CommonOptions,
312 riscv32_ilp32_v: CommonOptions,312 riscv32_ilp32_v: CommonOptions,
313 riscv32_interrupt: RiscvInterruptOptions,313 riscv32_interrupt: RiscvInterruptOptions,
314314
315 // Calling conventions for the sparc64 architecture.315 // Calling conventions for the `sparc64` architecture.
316 sparc64_sysv: CommonOptions,316 sparc64_sysv: CommonOptions,
317317
318 // Calling conventions for the sparc architecture.318 // Calling conventions for the `sparc` architecture.
319 sparc_sysv: CommonOptions,319 sparc_sysv: CommonOptions,
320320
321 // Calling conventions for the powerpc64 architecture.321 // Calling conventions for the `powerpc64` and `powerpc64le` architectures.
322 powerpc64_elf: CommonOptions,322 powerpc64_elf: CommonOptions,
323 powerpc64_elf_altivec: CommonOptions,323 powerpc64_elf_altivec: CommonOptions,
324 powerpc64_elf_v2: CommonOptions,324 powerpc64_elf_v2: CommonOptions,
325325
326 // Calling conventions for the powerpc architecture.326 // Calling conventions for the `powerpc` and `powerpcle` architectures.
327 powerpc_sysv: CommonOptions,327 powerpc_sysv: CommonOptions,
328 powerpc_sysv_altivec: CommonOptions,328 powerpc_sysv_altivec: CommonOptions,
329 powerpc_aix: CommonOptions,329 powerpc_aix: CommonOptions,
330 powerpc_aix_altivec: CommonOptions,330 powerpc_aix_altivec: CommonOptions,
331331
332 /// The standard wasm32/wasm64 calling convention, as specified in the WebAssembly Tool Conventions.332 /// The standard `wasm32`/`wasm64` calling convention, as specified in the WebAssembly Tool Conventions.
333 wasm_watc: CommonOptions,333 wasm_watc: CommonOptions,
334334
335 /// The standard ARC calling convention.335 /// The standard `arc` calling convention.
336 arc_sysv: CommonOptions,336 arc_sysv: CommonOptions,
337337
338 // Calling conventions for the AVR architecture.338 // Calling conventions for the `avr` architecture.
339 avr_gnu,339 avr_gnu,
340 avr_builtin,340 avr_builtin,
341 avr_signal,341 avr_signal,
342 avr_interrupt,342 avr_interrupt,
343343
344 /// The standard bpf calling convention.344 /// The standard `bpfel`/`bpfeb` calling convention.
345 bpf_std: CommonOptions,345 bpf_std: CommonOptions,
346346
347 // Calling conventions for the csky architecture.347 // Calling conventions for the `csky` architecture.
348 csky_sysv: CommonOptions,348 csky_sysv: CommonOptions,
349 csky_interrupt: CommonOptions,349 csky_interrupt: CommonOptions,
350350
351 // Calling conventions for the hexagon architecture.351 // Calling conventions for the `hexagon` architecture.
352 hexagon_sysv: CommonOptions,352 hexagon_sysv: CommonOptions,
353 hexagon_sysv_hvx: CommonOptions,353 hexagon_sysv_hvx: CommonOptions,
354354
355 /// The standard Lanai calling convention.355 /// The standard `lanai` calling convention.
356 lanai_sysv: CommonOptions,356 lanai_sysv: CommonOptions,
357357
358 /// The standard loongarch64 calling convention.358 /// The standard `loongarch64` calling convention.
359 loongarch64_lp64: CommonOptions,359 loongarch64_lp64: CommonOptions,
360360
361 /// The standard loongarch32 calling convention.361 /// The standard `loongarch32` calling convention.
362 loongarch32_ilp32: CommonOptions,362 loongarch32_ilp32: CommonOptions,
363363
364 // Calling conventions for the m68k architecture.364 // Calling conventions for the `m68k` architecture.
365 m68k_sysv: CommonOptions,365 m68k_sysv: CommonOptions,
366 m68k_gnu: CommonOptions,366 m68k_gnu: CommonOptions,
367 m68k_rtd: CommonOptions,367 m68k_rtd: CommonOptions,
368 m68k_interrupt: CommonOptions,368 m68k_interrupt: CommonOptions,
369369
370 /// The standard MSP430 calling convention.370 /// The standard `msp430` calling convention.
371 msp430_eabi: CommonOptions,371 msp430_eabi: CommonOptions,
372372
373 /// The standard propeller1 calling convention.373 /// The standard `propeller1` calling convention.
374 propeller1_sysv: CommonOptions,374 propeller1_sysv: CommonOptions,
375375
376 /// The standard propeller1 calling convention.376 /// The standard `propeller2` calling convention.
377 propeller2_sysv: CommonOptions,377 propeller2_sysv: CommonOptions,
378378
379 // Calling conventions for the S390X architecture.379 // Calling conventions for the `s390x` architecture.
380 s390x_sysv: CommonOptions,380 s390x_sysv: CommonOptions,
381 s390x_sysv_vx: CommonOptions,381 s390x_sysv_vx: CommonOptions,
382382
383 /// The standard VE calling convention.383 /// The standard `ve` calling convention.
384 ve_sysv: CommonOptions,384 ve_sysv: CommonOptions,
385385
386 // Calling conventions for the xCORE architecture.386 // Calling conventions for the `xcore` architecture.
387 xcore_xs1: CommonOptions,387 xcore_xs1: CommonOptions,
388 xcore_xs2: CommonOptions,388 xcore_xs2: CommonOptions,
389389
390 // Calling conventions for the Xtensa architecture.390 // Calling conventions for the `xtensa` architecture.
391 xtensa_call0: CommonOptions,391 xtensa_call0: CommonOptions,
392 xtensa_windowed: CommonOptions,392 xtensa_windowed: CommonOptions,
393393
394 // Calling conventions for the AMDGCN architecture.394 // Calling conventions for the `amdgcn` architecture.
395 amdgcn_device: CommonOptions,395 amdgcn_device: CommonOptions,
396 amdgcn_kernel,396 amdgcn_kernel,
397 amdgcn_cs: CommonOptions,397 amdgcn_cs: CommonOptions,
398398
399 // Calling conventions for the NVPTX architecture.399 // Calling conventions for the `nvptx` architecture.
400 nvptx_device,400 nvptx_device,
401 nvptx_kernel,401 nvptx_kernel,
402402
403 // Calling conventions for SPIR-V kernels and shaders.403 // Calling conventions for kernels and shaders on the `spirv`, `spirv32`, and `spirv64` architectures.
404 spirv_device,404 spirv_device,
405 spirv_kernel,405 spirv_kernel,
406 spirv_fragment,406 spirv_fragment,