[libcxx-commits] [PATCH] D58004: Bit-casting object representations (p0476r2)

JF Bastien via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Feb 9 11:59:52 PST 2019


jfb added a comment.

In D58004#1391848 <https://reviews.llvm.org/D58004#1391848>, @zoecarver wrote:

> For sure, but would it work instead of a builtin?


No, because it wouldn't support everything the standard says. Things like float -> int are also wrong with what you suggest.

> Is there some documentation on adding builtins to clang? I am happy to work on writing one I just don't know where to start.

You can look at prior builtins that were added, that's usually the easiest route. In this case I'd wait to see what Erik had, maybe he can upload his partial patch.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58004/new/

https://reviews.llvm.org/D58004





More information about the libcxx-commits mailing list