[PATCH] D157420: [clang] Enable constexpr on LZCNT/POPCNT MS extension intrinsics

Alejandro Aguirre via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 8 10:42:58 PDT 2023


alexguirre created this revision.
alexguirre added a reviewer: RKSimon.
Herald added a project: All.
alexguirre requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This enables us to use __lzcnt / __popcnt intrinsics inside constexpr code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157420

Files:
  clang/include/clang/Basic/Builtins.def
  clang/lib/AST/ExprConstant.cpp
  clang/test/CodeGen/ms-intrinsics-other.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157420.548279.patch
Type: text/x-patch
Size: 5849 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230808/329142a4/attachment.bin>


More information about the cfe-commits mailing list