[PATCH] D93597: [X86][SSE] Enable constexpr on some basic SSE intrinsics (RFC)

Simon Pilgrim via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 20 09:04:49 PST 2020


RKSimon added a comment.

In D93597#2464870 <https://reviews.llvm.org/D93597#2464870>, @tschuett wrote:

> libcxx uses a function test and calls test() and static_assert(test()), see below
> https://github.com/llvm/llvm-project/blob/d86a00d8febd0138a21f92d1420c4b62d7acb0ca/libcxx/test/std/utilities/memory/pointer.conversion/to_address.pass.cpp#L102-126

@tschuett could you explain a little more about how you see this working for vectors? Are you suggesting we embed the vector ops into static_assert ? The problem we have is how to extract a result from a comparison. I did wonder about bitcasting to a struct of some thing, but am not sure what would be best.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93597



More information about the cfe-commits mailing list