[clang] [Clang] Add __builtin_bswapg (PR #162433)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 8 22:04:04 PDT 2025
================
@@ -13982,6 +13982,17 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E,
return Success(Val.reverseBits(), E);
}
+ case Builtin::BI__builtin_bswapg: {
+ APSInt Val;
+ if (!EvaluateInteger(E->getArg(0), Val, Info))
+ return false;
+ if (Val.getBitWidth() == 8) {
+ bool ret = Success(Val, E);
----------------
ojhunt wrote:
nit extra space
https://github.com/llvm/llvm-project/pull/162433
More information about the cfe-commits
mailing list