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)) {
256256 /// Pointers to inline functions are comptime-only.
257257 @"inline",
258258
259 // Calling conventions for the x86_64 architecture.
259 // Calling conventions for the `x86_64` architecture.
260260 x86_64_sysv: CommonOptions,
261261 x86_64_win: CommonOptions,
262262 x86_64_regcall_v3_sysv: CommonOptions,
......@@ -264,7 +264,7 @@ pub const CallingConvention = union(enum(u8)) {
264264 x86_64_vectorcall: CommonOptions,
265265 x86_64_interrupt: CommonOptions,
266266
267 // Calling conventions for the x86 architecture.
267 // Calling conventions for the `x86` architecture.
268268 x86_sysv: X86RegparmOptions,
269269 x86_win: X86RegparmOptions,
270270 x86_stdcall: X86RegparmOptions,
......@@ -276,14 +276,14 @@ pub const CallingConvention = union(enum(u8)) {
276276 x86_vectorcall: CommonOptions,
277277 x86_interrupt: CommonOptions,
278278
279 // Calling conventions for the aarch64 architecture.
279 // Calling conventions for the `aarch64` and `aarch64_be` architectures.
280280 aarch64_aapcs: CommonOptions,
281281 aarch64_aapcs_darwin: CommonOptions,
282282 aarch64_aapcs_win: CommonOptions,
283283 aarch64_vfabi: CommonOptions,
284284 aarch64_vfabi_sve: CommonOptions,
285285
286 // Calling convetions for the arm architecture.
286 // Calling convetions for the `arm`, `armeb`, `thumb`, and `thumbeb` architectures.
287287 /// ARM Procedure Call Standard (obsolete)
288288 arm_apcs: CommonOptions,
289289 /// ARM Architecture Procedure Call Standard
......@@ -293,114 +293,114 @@ pub const CallingConvention = union(enum(u8)) {
293293 arm_aapcs16_vfp: CommonOptions,
294294 arm_interrupt: ArmInterruptOptions,
295295
296 // Calling conventions for the mips64 architecture.
296 // Calling conventions for the `mips64` architecture.
297297 mips64_n64: CommonOptions,
298298 mips64_n32: CommonOptions,
299299 mips64_interrupt: MipsInterruptOptions,
300300
301 // Calling conventions for the mips architecture.
301 // Calling conventions for the `mips` architecture.
302302 mips_o32: CommonOptions,
303303 mips_interrupt: MipsInterruptOptions,
304304
305 // Calling conventions for the riscv64 architecture.
305 // Calling conventions for the `riscv64` architecture.
306306 riscv64_lp64: CommonOptions,
307307 riscv64_lp64_v: CommonOptions,
308308 riscv64_interrupt: RiscvInterruptOptions,
309309
310 // Calling conventions for the riscv32 architecture.
310 // Calling conventions for the `riscv32` architecture.
311311 riscv32_ilp32: CommonOptions,
312312 riscv32_ilp32_v: CommonOptions,
313313 riscv32_interrupt: RiscvInterruptOptions,
314314
315 // Calling conventions for the sparc64 architecture.
315 // Calling conventions for the `sparc64` architecture.
316316 sparc64_sysv: CommonOptions,
317317
318 // Calling conventions for the sparc architecture.
318 // Calling conventions for the `sparc` architecture.
319319 sparc_sysv: CommonOptions,
320320
321 // Calling conventions for the powerpc64 architecture.
321 // Calling conventions for the `powerpc64` and `powerpc64le` architectures.
322322 powerpc64_elf: CommonOptions,
323323 powerpc64_elf_altivec: CommonOptions,
324324 powerpc64_elf_v2: CommonOptions,
325325
326 // Calling conventions for the powerpc architecture.
326 // Calling conventions for the `powerpc` and `powerpcle` architectures.
327327 powerpc_sysv: CommonOptions,
328328 powerpc_sysv_altivec: CommonOptions,
329329 powerpc_aix: CommonOptions,
330330 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.
333333 wasm_watc: CommonOptions,
334334
335 /// The standard ARC calling convention.
335 /// The standard `arc` calling convention.
336336 arc_sysv: CommonOptions,
337337
338 // Calling conventions for the AVR architecture.
338 // Calling conventions for the `avr` architecture.
339339 avr_gnu,
340340 avr_builtin,
341341 avr_signal,
342342 avr_interrupt,
343343
344 /// The standard bpf calling convention.
344 /// The standard `bpfel`/`bpfeb` calling convention.
345345 bpf_std: CommonOptions,
346346
347 // Calling conventions for the csky architecture.
347 // Calling conventions for the `csky` architecture.
348348 csky_sysv: CommonOptions,
349349 csky_interrupt: CommonOptions,
350350
351 // Calling conventions for the hexagon architecture.
351 // Calling conventions for the `hexagon` architecture.
352352 hexagon_sysv: CommonOptions,
353353 hexagon_sysv_hvx: CommonOptions,
354354
355 /// The standard Lanai calling convention.
355 /// The standard `lanai` calling convention.
356356 lanai_sysv: CommonOptions,
357357
358 /// The standard loongarch64 calling convention.
358 /// The standard `loongarch64` calling convention.
359359 loongarch64_lp64: CommonOptions,
360360
361 /// The standard loongarch32 calling convention.
361 /// The standard `loongarch32` calling convention.
362362 loongarch32_ilp32: CommonOptions,
363363
364 // Calling conventions for the m68k architecture.
364 // Calling conventions for the `m68k` architecture.
365365 m68k_sysv: CommonOptions,
366366 m68k_gnu: CommonOptions,
367367 m68k_rtd: CommonOptions,
368368 m68k_interrupt: CommonOptions,
369369
370 /// The standard MSP430 calling convention.
370 /// The standard `msp430` calling convention.
371371 msp430_eabi: CommonOptions,
372372
373 /// The standard propeller1 calling convention.
373 /// The standard `propeller1` calling convention.
374374 propeller1_sysv: CommonOptions,
375375
376 /// The standard propeller1 calling convention.
376 /// The standard `propeller2` calling convention.
377377 propeller2_sysv: CommonOptions,
378378
379 // Calling conventions for the S390X architecture.
379 // Calling conventions for the `s390x` architecture.
380380 s390x_sysv: CommonOptions,
381381 s390x_sysv_vx: CommonOptions,
382382
383 /// The standard VE calling convention.
383 /// The standard `ve` calling convention.
384384 ve_sysv: CommonOptions,
385385
386 // Calling conventions for the xCORE architecture.
386 // Calling conventions for the `xcore` architecture.
387387 xcore_xs1: CommonOptions,
388388 xcore_xs2: CommonOptions,
389389
390 // Calling conventions for the Xtensa architecture.
390 // Calling conventions for the `xtensa` architecture.
391391 xtensa_call0: CommonOptions,
392392 xtensa_windowed: CommonOptions,
393393
394 // Calling conventions for the AMDGCN architecture.
394 // Calling conventions for the `amdgcn` architecture.
395395 amdgcn_device: CommonOptions,
396396 amdgcn_kernel,
397397 amdgcn_cs: CommonOptions,
398398
399 // Calling conventions for the NVPTX architecture.
399 // Calling conventions for the `nvptx` architecture.
400400 nvptx_device,
401401 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.
404404 spirv_device,
405405 spirv_kernel,
406406 spirv_fragment,