Add gpu-kernel calling convention

The amdgpu-kernel calling convention was reverted in commit
f6b21e90d1 due to inactivity in the amdgpu
target.

Introduce a `gpu-kernel` calling convention that translates to
`ptx_kernel` or `amdgpu_kernel`, depending on the target that rust
compiles for.
This commit is contained in:
Flakebi 2025-01-02 22:42:10 +01:00
parent bf6f8a4d32
commit e7e5202978
No known key found for this signature in database
GPG key ID: 38E7ED984D7DCD02
29 changed files with 435 additions and 175 deletions

View file

@ -442,6 +442,8 @@ pub enum CallConvention {
PtxKernel,
GpuKernel,
X86Fastcall,
X86Intr,
X86Stdcall,

View file

@ -1077,6 +1077,7 @@ pub enum Abi {
PtxKernel,
Msp430Interrupt,
X86Interrupt,
GpuKernel,
EfiApi,
AvrInterrupt,
AvrNonBlockingInterrupt,