diff options
| author | bors <bors@rust-lang.org> | 2025-01-17 04:36:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-01-17 04:36:09 +0000 |
| commit | 0c2c096e1ac471b0c34629f9820a7cb1e6d4695d (patch) | |
| tree | 8f43bebca4fe16713882b0ab609281e283622563 /compiler/rustc_smir/src/rustc_internal/internal.rs | |
| parent | bb3fa4b48eef8dc0815b0464e56f1fb82fe2cdfc (diff) | |
| parent | e7e52029786aca443a20b95d46dd409cad96103f (diff) | |
| download | rust-0c2c096e1ac471b0c34629f9820a7cb1e6d4695d.tar.gz rust-0c2c096e1ac471b0c34629f9820a7cb1e6d4695d.zip | |
Auto merge of #135047 - Flakebi:amdgpu-kernel-cc, r=workingjubilee
Add gpu-kernel calling convention The amdgpu-kernel calling convention was reverted in commit f6b21e90d1ec01081bc2619efb68af6788a63d65 (#120495 and https://github.com/rust-lang/rust-analyzer/pull/16463) 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. Tracking issue: #135467 amdgpu target tracking issue: #135024
Diffstat (limited to 'compiler/rustc_smir/src/rustc_internal/internal.rs')
| -rw-r--r-- | compiler/rustc_smir/src/rustc_internal/internal.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_smir/src/rustc_internal/internal.rs b/compiler/rustc_smir/src/rustc_internal/internal.rs index c465367b6b9..3bc896dd7ef 100644 --- a/compiler/rustc_smir/src/rustc_internal/internal.rs +++ b/compiler/rustc_smir/src/rustc_internal/internal.rs @@ -472,6 +472,7 @@ impl RustcInternal for Abi { Abi::PtxKernel => rustc_abi::ExternAbi::PtxKernel, Abi::Msp430Interrupt => rustc_abi::ExternAbi::Msp430Interrupt, Abi::X86Interrupt => rustc_abi::ExternAbi::X86Interrupt, + Abi::GpuKernel => rustc_abi::ExternAbi::GpuKernel, Abi::EfiApi => rustc_abi::ExternAbi::EfiApi, Abi::AvrInterrupt => rustc_abi::ExternAbi::AvrInterrupt, Abi::AvrNonBlockingInterrupt => rustc_abi::ExternAbi::AvrNonBlockingInterrupt, |
