[clang] [Headers][X86] Allow MMX/SSE/AVX MOVMSK intrinsics to be used in constexpr (PR #161914)

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 6 01:02:01 PDT 2025


================
@@ -207,7 +208,8 @@ let Features = "sse2", Attributes = [NoThrow, RequiredVectorWidth<128>] in {
   def maskmovdqu : X86Builtin<"void(_Vector<16, char>, _Vector<16, char>, char *)">;
 }
 
-let Features = "sse2", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in {
+let Features = "sse2",
+    Attributes = [NoThrow, Constexpr, RequiredVectorWidth<128>] in {
----------------
RKSimon wrote:

This can be Const, Constexpr and merge with other sse2 intrinsics

https://github.com/llvm/llvm-project/pull/161914


More information about the cfe-commits mailing list