[clang] [llvm] [clang] Add spir_kernel attribute (PR #137882)
Nick Sarnie via cfe-commits
cfe-commits at lists.llvm.org
Thu May 1 07:43:38 PDT 2025
================
@@ -1504,6 +1506,12 @@ def NVPTXKernel : InheritableAttr, TargetSpecificAttr<TargetNVPTX> {
let Documentation = [Undocumented];
}
+def SPIRKernel : InheritableAttr, TargetSpecificAttr<TargetAnySPIR> {
+ let Spellings = [Clang<"spir_kernel">];
+ let Subjects = SubjectList<[Function]>;
+ let Documentation = [Undocumented];
----------------
sarnex wrote:
Thanks, I wasn't sure how strict we were with that, will add documentation.
https://github.com/llvm/llvm-project/pull/137882
More information about the cfe-commits
mailing list