| ... | ... | @@ -256,7 +256,7 @@ pub const CallingConvention = union(enum(u8)) { |
| 256 | 256 | /// Pointers to inline functions are comptime-only. |
| 257 | 257 | @"inline", |
| 258 | 258 | |
| 259 | | // Calling conventions for the x86_64 architecture. |
| 259 | // Calling conventions for the `x86_64` architecture. |
| 260 | 260 | x86_64_sysv: CommonOptions, |
| 261 | 261 | x86_64_win: CommonOptions, |
| 262 | 262 | x86_64_regcall_v3_sysv: CommonOptions, |
| ... | ... | @@ -264,7 +264,7 @@ pub const CallingConvention = union(enum(u8)) { |
| 264 | 264 | x86_64_vectorcall: CommonOptions, |
| 265 | 265 | x86_64_interrupt: CommonOptions, |
| 266 | 266 | |
| 267 | | // Calling conventions for the x86 architecture. |
| 267 | // Calling conventions for the `x86` architecture. |
| 268 | 268 | x86_sysv: X86RegparmOptions, |
| 269 | 269 | x86_win: X86RegparmOptions, |
| 270 | 270 | x86_stdcall: X86RegparmOptions, |
| ... | ... | @@ -276,14 +276,14 @@ pub const CallingConvention = union(enum(u8)) { |
| 276 | 276 | x86_vectorcall: CommonOptions, |
| 277 | 277 | x86_interrupt: CommonOptions, |
| 278 | 278 | |
| 279 | | // Calling conventions for the aarch64 architecture. |
| 279 | // Calling conventions for the `aarch64` and `aarch64_be` architectures. |
| 280 | 280 | aarch64_aapcs: CommonOptions, |
| 281 | 281 | aarch64_aapcs_darwin: CommonOptions, |
| 282 | 282 | aarch64_aapcs_win: CommonOptions, |
| 283 | 283 | aarch64_vfabi: CommonOptions, |
| 284 | 284 | aarch64_vfabi_sve: CommonOptions, |
| 285 | 285 | |
| 286 | | // Calling convetions for the arm architecture. |
| 286 | // Calling convetions for the `arm`, `armeb`, `thumb`, and `thumbeb` architectures. |
| 287 | 287 | /// ARM Procedure Call Standard (obsolete) |
| 288 | 288 | arm_apcs: CommonOptions, |
| 289 | 289 | /// ARM Architecture Procedure Call Standard |
| ... | ... | @@ -293,114 +293,114 @@ pub const CallingConvention = union(enum(u8)) { |
| 293 | 293 | arm_aapcs16_vfp: CommonOptions, |
| 294 | 294 | arm_interrupt: ArmInterruptOptions, |
| 295 | 295 | |
| 296 | | // Calling conventions for the mips64 architecture. |
| 296 | // Calling conventions for the `mips64` architecture. |
| 297 | 297 | mips64_n64: CommonOptions, |
| 298 | 298 | mips64_n32: CommonOptions, |
| 299 | 299 | mips64_interrupt: MipsInterruptOptions, |
| 300 | 300 | |
| 301 | | // Calling conventions for the mips architecture. |
| 301 | // Calling conventions for the `mips` architecture. |
| 302 | 302 | mips_o32: CommonOptions, |
| 303 | 303 | mips_interrupt: MipsInterruptOptions, |
| 304 | 304 | |
| 305 | | // Calling conventions for the riscv64 architecture. |
| 305 | // Calling conventions for the `riscv64` architecture. |
| 306 | 306 | riscv64_lp64: CommonOptions, |
| 307 | 307 | riscv64_lp64_v: CommonOptions, |
| 308 | 308 | riscv64_interrupt: RiscvInterruptOptions, |
| 309 | 309 | |
| 310 | | // Calling conventions for the riscv32 architecture. |
| 310 | // Calling conventions for the `riscv32` architecture. |
| 311 | 311 | riscv32_ilp32: CommonOptions, |
| 312 | 312 | riscv32_ilp32_v: CommonOptions, |
| 313 | 313 | riscv32_interrupt: RiscvInterruptOptions, |
| 314 | 314 | |
| 315 | | // Calling conventions for the sparc64 architecture. |
| 315 | // Calling conventions for the `sparc64` architecture. |
| 316 | 316 | sparc64_sysv: CommonOptions, |
| 317 | 317 | |
| 318 | | // Calling conventions for the sparc architecture. |
| 318 | // Calling conventions for the `sparc` architecture. |
| 319 | 319 | sparc_sysv: CommonOptions, |
| 320 | 320 | |
| 321 | | // Calling conventions for the powerpc64 architecture. |
| 321 | // Calling conventions for the `powerpc64` and `powerpc64le` architectures. |
| 322 | 322 | powerpc64_elf: CommonOptions, |
| 323 | 323 | powerpc64_elf_altivec: CommonOptions, |
| 324 | 324 | powerpc64_elf_v2: CommonOptions, |
| 325 | 325 | |
| 326 | | // Calling conventions for the powerpc architecture. |
| 326 | // Calling conventions for the `powerpc` and `powerpcle` architectures. |
| 327 | 327 | powerpc_sysv: CommonOptions, |
| 328 | 328 | powerpc_sysv_altivec: CommonOptions, |
| 329 | 329 | powerpc_aix: CommonOptions, |
| 330 | 330 | powerpc_aix_altivec: CommonOptions, |
| 331 | 331 | |
| 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 | 333 | wasm_watc: CommonOptions, |
| 334 | 334 | |
| 335 | | /// The standard ARC calling convention. |
| 335 | /// The standard `arc` calling convention. |
| 336 | 336 | arc_sysv: CommonOptions, |
| 337 | 337 | |
| 338 | | // Calling conventions for the AVR architecture. |
| 338 | // Calling conventions for the `avr` architecture. |
| 339 | 339 | avr_gnu, |
| 340 | 340 | avr_builtin, |
| 341 | 341 | avr_signal, |
| 342 | 342 | avr_interrupt, |
| 343 | 343 | |
| 344 | | /// The standard bpf calling convention. |
| 344 | /// The standard `bpfel`/`bpfeb` calling convention. |
| 345 | 345 | bpf_std: CommonOptions, |
| 346 | 346 | |
| 347 | | // Calling conventions for the csky architecture. |
| 347 | // Calling conventions for the `csky` architecture. |
| 348 | 348 | csky_sysv: CommonOptions, |
| 349 | 349 | csky_interrupt: CommonOptions, |
| 350 | 350 | |
| 351 | | // Calling conventions for the hexagon architecture. |
| 351 | // Calling conventions for the `hexagon` architecture. |
| 352 | 352 | hexagon_sysv: CommonOptions, |
| 353 | 353 | hexagon_sysv_hvx: CommonOptions, |
| 354 | 354 | |
| 355 | | /// The standard Lanai calling convention. |
| 355 | /// The standard `lanai` calling convention. |
| 356 | 356 | lanai_sysv: CommonOptions, |
| 357 | 357 | |
| 358 | | /// The standard loongarch64 calling convention. |
| 358 | /// The standard `loongarch64` calling convention. |
| 359 | 359 | loongarch64_lp64: CommonOptions, |
| 360 | 360 | |
| 361 | | /// The standard loongarch32 calling convention. |
| 361 | /// The standard `loongarch32` calling convention. |
| 362 | 362 | loongarch32_ilp32: CommonOptions, |
| 363 | 363 | |
| 364 | | // Calling conventions for the m68k architecture. |
| 364 | // Calling conventions for the `m68k` architecture. |
| 365 | 365 | m68k_sysv: CommonOptions, |
| 366 | 366 | m68k_gnu: CommonOptions, |
| 367 | 367 | m68k_rtd: CommonOptions, |
| 368 | 368 | m68k_interrupt: CommonOptions, |
| 369 | 369 | |
| 370 | | /// The standard MSP430 calling convention. |
| 370 | /// The standard `msp430` calling convention. |
| 371 | 371 | msp430_eabi: CommonOptions, |
| 372 | 372 | |
| 373 | | /// The standard propeller1 calling convention. |
| 373 | /// The standard `propeller1` calling convention. |
| 374 | 374 | propeller1_sysv: CommonOptions, |
| 375 | 375 | |
| 376 | | /// The standard propeller1 calling convention. |
| 376 | /// The standard `propeller2` calling convention. |
| 377 | 377 | propeller2_sysv: CommonOptions, |
| 378 | 378 | |
| 379 | | // Calling conventions for the S390X architecture. |
| 379 | // Calling conventions for the `s390x` architecture. |
| 380 | 380 | s390x_sysv: CommonOptions, |
| 381 | 381 | s390x_sysv_vx: CommonOptions, |
| 382 | 382 | |
| 383 | | /// The standard VE calling convention. |
| 383 | /// The standard `ve` calling convention. |
| 384 | 384 | ve_sysv: CommonOptions, |
| 385 | 385 | |
| 386 | | // Calling conventions for the xCORE architecture. |
| 386 | // Calling conventions for the `xcore` architecture. |
| 387 | 387 | xcore_xs1: CommonOptions, |
| 388 | 388 | xcore_xs2: CommonOptions, |
| 389 | 389 | |
| 390 | | // Calling conventions for the Xtensa architecture. |
| 390 | // Calling conventions for the `xtensa` architecture. |
| 391 | 391 | xtensa_call0: CommonOptions, |
| 392 | 392 | xtensa_windowed: CommonOptions, |
| 393 | 393 | |
| 394 | | // Calling conventions for the AMDGCN architecture. |
| 394 | // Calling conventions for the `amdgcn` architecture. |
| 395 | 395 | amdgcn_device: CommonOptions, |
| 396 | 396 | amdgcn_kernel, |
| 397 | 397 | amdgcn_cs: CommonOptions, |
| 398 | 398 | |
| 399 | | // Calling conventions for the NVPTX architecture. |
| 399 | // Calling conventions for the `nvptx` architecture. |
| 400 | 400 | nvptx_device, |
| 401 | 401 | nvptx_kernel, |
| 402 | 402 | |
| 403 | | // Calling conventions for SPIR-V kernels and shaders. |
| 403 | // Calling conventions for kernels and shaders on the `spirv`, `spirv32`, and `spirv64` architectures. |
| 404 | 404 | spirv_device, |
| 405 | 405 | spirv_kernel, |
| 406 | 406 | spirv_fragment, |