[clang] [Clang] Add __builtin_bswapg (PR #162433)
Alexander Richardson via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 9 23:46:34 PDT 2025
================
@@ -14030,6 +13982,15 @@ 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)
----------------
arichardson wrote:
merge this with the switch case below?
https://github.com/llvm/llvm-project/pull/162433
More information about the cfe-commits
mailing list