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:
@@ -125,7 +125,7 @@ impl<'ll, 'tcx> CodegenCx<'ll, 'tcx> {
|
||||
let llfn = declare_raw_fn(
|
||||
self,
|
||||
name,
|
||||
fn_abi.llvm_cconv(),
|
||||
fn_abi.llvm_cconv(self),
|
||||
llvm::UnnamedAddr::Global,
|
||||
llvm::Visibility::Default,
|
||||
fn_abi.llvm_type(self),
|
||||
|
||||
Reference in New Issue
Block a user