[PATCH] D125970: [amdgpu] Add amdgpu_kernel calling conv attribute to clang

Jon Chesterfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 19 13:43:44 PDT 2022


JonChesterfield added a comment.

OK, so that's a different thing. CUDA/HIP has a bunch of rules about implicitly tagging things with addrspace(1) at the call boundary. I don't think any of that magic should exist for C or C++, the developer gets to spell out the address space stuff they want explicitly, and if they want to link it against CUDA/HIP/OpenMP code they get to look up the rules. In particular, persuading clang to do the extra argument mangling stuff will get in the way of using this to create test cases.

I'm writing the corresponding test case for that now


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125970/new/

https://reviews.llvm.org/D125970



More information about the cfe-commits mailing list