================
@@ -2189,6 +2189,14 @@ def BTFTypeTag : TypeAttr {
let LangOpts = [COnly];
}
+def BPFFastCall : InheritableAttr,
+ TargetSpecificAttr<TargetBPF> {
+ let Spellings = [Clang<"bpf_fastcall">];
+ let Subjects = SubjectList<[FunctionLike]>;
+ let Documentation = [BPFFastCallDocs];
+ let SimpleHandler = 1;
+}
----------------
yonghong-song wrote:
If we want to enforce attribute only for C lang, we can add `let LangOpts =
[COnly];` in the above.
https://github.com/llvm/llvm-project/pull/101228
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits