[clang] [clang-tools-extra] [clang] Trim large(-ish) includes from common headers (PR #216946)

Yihan Wang via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 22 04:25:13 PDT 2026


================
@@ -163,11 +164,8 @@ class GlobalDecl {
     return GD;
   }
 
-  static KernelReferenceKind getDefaultKernelReference(const FunctionDecl *D) {
-    return (D->hasAttr<DeviceKernelAttr>() || D->getLangOpts().CUDAIsDevice)
-               ? KernelReferenceKind::Kernel
-               : KernelReferenceKind::Stub;
-  }
+  CLANG_ABI static KernelReferenceKind
----------------
yronglin wrote:

Why we need add `CLANG_ABI` here?

https://github.com/llvm/llvm-project/pull/216946


More information about the cfe-commits mailing list