[all-commits] [llvm/llvm-project] 44061d: [Headers][X86] Allow AVX512 masked blend intrinsic...

Harsh Tiwary via All-commits all-commits at lists.llvm.org
Mon Sep 15 02:40:49 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 44061d14fb03ebbd38050c628ed009ae4db2714c
      https://github.com/llvm/llvm-project/commit/44061d14fb03ebbd38050c628ed009ae4db2714c
  Author: Harsh Tiwary <harshtiwary2012 at gmail.com>
  Date:   2025-09-15 (Mon, 15 Sep 2025)

  Changed paths:
    M clang/lib/Headers/avx512bwintrin.h
    M clang/lib/Headers/avx512fintrin.h
    M clang/lib/Headers/avx512fp16intrin.h
    M clang/lib/Headers/avx512vlbwintrin.h
    M clang/lib/Headers/avx512vlfp16intrin.h
    M clang/lib/Headers/avx512vlintrin.h
    M clang/test/CodeGen/X86/avx512bw-builtins.c
    M clang/test/CodeGen/X86/avx512vl-builtins.c
    M clang/test/CodeGen/X86/avx512vlbw-builtins.c
    M clang/test/CodeGen/X86/avx512vlfp16-builtins.c

  Log Message:
  -----------
  [Headers][X86] Allow AVX512 masked blend intrinsics to be used in constexpr (#156234)

This patch enables AVX-512 masked blend intrinsics to be usable in
constant expressions (`constexpr`) across various vector widths
(128-bit, 256-bit, 512-bit). It updates the respective Clang headers to
include the `__DEFAULT_FN_ATTRS_CONSTEXPR` annotation where applicable,
and supplements the change with thorough `TEST_CONSTEXPR` checks in the
X86 CodeGen test suite to validate constexpr evaluation.

Fixes #155796.

---------

Co-authored-by: Simon Pilgrim <llvm-dev at redking.me.uk>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list