From 6332bb15062b3e193ba64a4ddb2619e8940a079f Mon Sep 17 00:00:00 2001 From: Richard Diamond Date: Sun, 1 Jul 2018 22:42:00 -0500 Subject: 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. --- src/libsyntax/feature_gate.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libsyntax') 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 | -- cgit 1.4.1-3-g733a5