[PATCH] D114425: [clang] Add __builtin_bswap128
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 6 11:57:15 PST 2022
craig.topper added reviewers: aaron.ballman, erichkeane.
craig.topper added a comment.
I kind of wonder if we should detect the __int128 type being requested in ASTContext::GetBuiltinType and return an error up to Sema::LazilyCreateBuiltin. Probably requires a new error code and handling for it in LazilyCreateBuiltin. I assume that would catch the bad builtin earlier. As it stands now we'd still allow it if it constant folds away in ExprConstant.cpp so that it never reaches CGBuiltin.cpp. But I'm not a frontend expert. Adding more potential reviewers
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114425/new/
https://reviews.llvm.org/D114425
More information about the cfe-commits
mailing list