[clang] [Clang] Add __builtin_bswapg (PR #162433)
Alexander Richardson via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 9 23:46:35 PDT 2025
================
@@ -755,6 +755,12 @@ def BSwap : Builtin, Template<["unsigned short", "uint32_t", "uint64_t"],
let Prototype = "T(T)";
}
+def BSwapg : Builtin {
+ let Spellings = ["__builtin_bswapg"];
+ let Attributes = [NoThrow, Const, Constexpr, CustomTypeChecking];
+ let Prototype = "int(...)";
----------------
arichardson wrote:
```suggestion
let Prototype = "T(T)";
```
Should this match the other generic ones?
https://github.com/llvm/llvm-project/pull/162433
More information about the cfe-commits
mailing list