[clang] [clang] Add builtins for `add` with `nuw` and/or `nsw` (PR #130354)

Nikolas Klauser via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 8 01:26:24 PST 2025


================
@@ -5037,6 +5037,66 @@ def ArithmeticFence : LangBuiltin<"ALL_LANGUAGES"> {
   let Prototype = "void(...)";
 }
 
+class SNUWTemplate :
----------------
philnik777 wrote:

Can we just make these builtins generic instead? There are like a dozen builtin families that first only got specific versions for different types and in the end got a generic version, because the generic version is just so much more useful.

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


More information about the cfe-commits mailing list