[clang] [llvm] [clang] Simplify device kernel attributes (PR #137882)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu May 8 13:24:32 PDT 2025
================
@@ -292,7 +292,7 @@ void NVPTXTargetCodeGenInfo::setTargetAttributes(
}
// Attach kernel metadata directly if compiling for NVPTX.
- if (FD->hasAttr<NVPTXKernelAttr>()) {
+ if (FD->hasAttr<DeviceKernelAttr>()) {
F->setCallingConv(llvm::CallingConv::PTX_Kernel);
----------------
arsenm wrote:
This is now set in the 2 language paths,, there's additional code that can be folded now
https://github.com/llvm/llvm-project/pull/137882
More information about the llvm-commits
mailing list