[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 07:43:22 PST 2020


RKSimon created this revision.
RKSimon added reviewers: craig.topper, pengfei, rsmith, erichkeane, spatel.
RKSimon requested review of this revision.
Herald added a project: clang.

This is an initial exploratory patch towards making some (basic initialization and arithmetic) SSE/AVX intrinsics usable in constant expressions.

I've only touched the SSE1 intrinsics that we can do so far - if people are happy with the approach I'll extend the patch to cover the equivalent SSE2->AVX512 intrinsics/types.

My main concern is how best to test these - all we're doing so far is checking that they will compile, which might be enough for now?

A later patch will have to address how to support __builtin_shufflevector/__builtin_convertvector and element accessors.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D93597

Files:
  clang/lib/Headers/xmmintrin.h
  clang/test/CodeGen/X86/sse-builtins.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93597.312978.patch
Type: text/x-patch
Size: 8726 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201220/ad05ff7a/attachment.bin>


More information about the cfe-commits mailing list