[clang] [Clang] Add __builtin_get_counted_by builtin (PR #102549)

Bill Wendling via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 13 03:02:32 PDT 2024


================
@@ -4774,3 +4774,9 @@ def ArithmeticFence : LangBuiltin<"ALL_LANGUAGES"> {
   let Attributes = [CustomTypeChecking, Constexpr];
   let Prototype = "void(...)";
 }
+
+def GetCountedBy : Builtin {
+  let Spellings = ["__builtin_get_counted_by"];
+  let Attributes = [NoThrow];
+  let Prototype = "size_t*(void*)";
----------------
bwendling wrote:

Oooo! I was looking for something like `CustomTypeChecking`. I'll check into it.

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


More information about the cfe-commits mailing list