[clang] [llvm] [Clang] Add __builtin_assume_dereferenceable to encode deref assumption. (PR #121789)
Timm Baeder via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 7 11:21:48 PST 2025
================
@@ -839,6 +839,12 @@ def BuiltinAssumeAligned : Builtin {
let Prototype = "void*(void const*, size_t, ...)";
}
+def BuiltinAssumeDereferenceable : Builtin {
+ let Spellings = ["__builtin_assume_dereferenceable"];
+ let Attributes = [NoThrow, Const, Constexpr];
----------------
tbaederr wrote:
This says `Constexpr`, but there's no implementation for that that, and of course no tests.
https://github.com/llvm/llvm-project/pull/121789
More information about the llvm-commits
mailing list