diff options
| author | Flakebi <flakebi@t-online.de> | 2025-01-02 22:42:10 +0100 |
|---|---|---|
| committer | Flakebi <flakebi@t-online.de> | 2025-01-16 00:26:55 +0100 |
| commit | 41ae38294d103ef406675c725d72b98b07416669 (patch) | |
| tree | 174ded3f1f61d6e099e6bea59404e3c173648bdb /src | |
| parent | cd271d811e9c70d47380f5e1b0b2a954241bbc47 (diff) | |
| download | rust-41ae38294d103ef406675c725d72b98b07416669.tar.gz rust-41ae38294d103ef406675c725d72b98b07416669.zip | |
Add gpu-kernel calling convention
The amdgpu-kernel calling convention was reverted in commit f6b21e90d1ec01081bc2619efb68af6788a63d65 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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/abi/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/abi/mod.rs b/src/abi/mod.rs index 2466bfe60c7..2c99597922e 100644 --- a/src/abi/mod.rs +++ b/src/abi/mod.rs @@ -65,7 +65,11 @@ pub(crate) fn conv_to_call_conv(sess: &Session, c: Conv, default_call_conv: Call sess.dcx().fatal("C-cmse-nonsecure-entry call conv is not yet implemented"); } - Conv::Msp430Intr | Conv::PtxKernel | Conv::AvrInterrupt | Conv::AvrNonBlockingInterrupt => { + Conv::Msp430Intr + | Conv::PtxKernel + | Conv::GpuKernel + | Conv::AvrInterrupt + | Conv::AvrNonBlockingInterrupt => { unreachable!("tried to use {c:?} call conv which only exists on an unsupported target"); } } |
