Jon Chesterfield 83c431fb9e [amdgpu] Add amdgpu_kernel calling conv attribute to clang
Allows emitting define amdgpu_kernel void @func() IR from C or C++.

This replaces the current workflow which is to write a stub in opencl that
calls an external C function implemented in C++ combined through llvm-link.

Calling the resulting function still requires a manual implementation of the
ABI from the host side. The primary application is for more rapid debugging
of the amdgpu backend by permuting a C or C++ test file instead of manually
updating an IR file.

Implementation closely follows D54425. Non-amd reviewers from there.

Reviewed By: yaxunl

Differential Revision: https://reviews.llvm.org/D125970
2022-05-20 08:50:37 +01:00
..
2022-05-19 12:06:56 -04:00
2021-12-06 12:52:01 -05:00
2022-02-22 09:07:59 +00:00
2021-10-10 08:52:14 -07:00
2022-03-28 15:00:50 -05:00
2022-03-28 15:00:50 -05:00
2021-12-06 12:52:01 -05:00
2021-12-06 12:52:01 -05:00
2021-10-10 08:52:14 -07:00
2021-12-06 12:52:01 -05:00
2022-05-13 20:34:57 +01:00
2022-05-13 20:34:57 +01:00
2021-12-06 12:52:01 -05:00
2021-12-06 12:52:01 -05:00
2022-04-21 19:58:22 +02:00
2022-03-12 09:09:57 +09:00
2021-12-06 12:52:01 -05:00