This is an archive of the discontinued LLVM Phabricator instance.

[clang] Enable constexpr on LZCNT/POPCNT MS extension intrinsics
ClosedPublic

Authored by alexguirre on Aug 8 2023, 10:42 AM.

Details

Summary

This enables us to use lzcnt / popcnt intrinsics inside constexpr code.

Diff Detail

Event Timeline

alexguirre created this revision.Aug 8 2023, 10:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2023, 10:42 AM
alexguirre requested review of this revision.Aug 8 2023, 10:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 8 2023, 10:42 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Please can you add them to the constexpr lists in LanguageExtensions.rst ?

alexguirre updated this revision to Diff 548323.Aug 8 2023, 1:11 PM

Added lzcnt / popcnt to the constexpr lists in LanguageExtensions.rst

RKSimon accepted this revision.Aug 13 2023, 5:57 AM

LGTM - cheers

@alexguirre Please post your full name / email and I'll commit this for you

This revision is now accepted and ready to land.Aug 13 2023, 5:57 AM

Alejandro Aguirre
alexguirre.aa@gmail.com