[clang] [Clang] Add __builtin_counted_by_ref builtin (PR #114495)
Bill Wendling via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 4 17:53:40 PST 2024
================
@@ -4914,3 +4914,9 @@ def ArithmeticFence : LangBuiltin<"ALL_LANGUAGES"> {
let Attributes = [CustomTypeChecking, Constexpr];
let Prototype = "void(...)";
}
+
+def CountedByRef : Builtin {
+ let Spellings = ["__builtin_counted_by_ref"];
+ let Attributes = [NoThrow, CustomTypeChecking];
+ let Prototype = "int(...)";
----------------
bwendling wrote:
For a custom type checking, the prototype is basically meaningless. I'd rather not mess with this as it's not very important.
https://github.com/llvm/llvm-project/pull/114495
More information about the cfe-commits
mailing list