diff options
| author | Richard Diamond <wichard@vitalitystudios.com> | 2018-07-01 22:42:00 -0500 |
|---|---|---|
| committer | Richard Diamond <wichard@vitalitystudios.com> | 2018-07-13 17:22:23 -0500 |
| commit | 6332bb15062b3e193ba64a4ddb2619e8940a079f (patch) | |
| tree | c068e7c0f403156254845624d27142ddd1abb8d6 /src/libsyntax | |
| parent | c0955a34bcb17f0b31d7b86522a520ebe7fa93ac (diff) | |
| download | rust-6332bb15062b3e193ba64a4ddb2619e8940a079f.tar.gz rust-6332bb15062b3e193ba64a4ddb2619e8940a079f.zip | |
Add the `amdgpu-kernel` ABI.
Technically, there are requirements imposed by the LLVM `AMDGPUTargetMachine` on functions with this ABI (eg, the return type must be void), but I'm unsure exactly where this should be enforced.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index e70d93ae85a..50b2ac3369c 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -484,6 +484,8 @@ declare_features! ( // #[alloc_error_handler] (active, alloc_error_handler, "1.29.0", Some(51540), None), + + (active, abi_amdgpu_kernel, "1.29.0", Some(51575), None), ); declare_features! ( @@ -1439,6 +1441,10 @@ impl<'a> PostExpansionVisitor<'a> { gate_feature_post!(&self, abi_x86_interrupt, span, "x86-interrupt ABI is experimental and subject to change"); }, + Abi::AmdGpuKernel => { + gate_feature_post!(&self, abi_amdgpu_kernel, span, + "amdgpu-kernel ABI is experimental and subject to change"); + }, // Stable Abi::Cdecl | Abi::Stdcall | |
