[PATCH] D123345: Treat `std::move`, `forward`, and `move_if_noexcept` as builtins.
Joerg Sonnenberger via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 11 07:50:00 PDT 2022
joerg added a comment.
The patch contains at least one user visible change that would be quite surprising: it is no longer possible to intentionally set a break point on `std::move`.
Thinking more about it, what about a slightly different implementation strategy? Provide a compiler built-in `__builtin_std_move`. If it is present, libc++ can alias it into `namespace std` using regular C++. Much of the name-matching and argument checking in various places disappears. The check to skip template instantiation can be done the same way. Over-all, it should be much less intrusive with the same performance benefits for an built-in-aware STL. It completely side-steps the question of ignoring the actual implementation `of std::move` in the source, because there is none.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123345/new/
https://reviews.llvm.org/D123345
More information about the cfe-commits
mailing list