-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Closed
Labels
backend:X86clang:headersHeaders provided by Clang, e.g. for intrinsicsHeaders provided by Clang, e.g. for intrinsicsgood first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contribute
Description
The x86 specific LZCNT and BMI intrinsics in lzcntintrin.h and bmiintrin.h are all capable of being converted to constexpr
We did something similar for the POPCNT intrinsics here: https://reviews.llvm.org/D86229 / cff0db0
- Update
__builtin_ia32_*intrinsics to allow handling in ExprConstant - Update headers - ensuring they work for c, pre-C++11 and later C++ builds
- Test coverage - including the macro variants of some of the methods (e.g.
_tzcnt_u32for__tzcnt_u32)
Metadata
Metadata
Labels
backend:X86clang:headersHeaders provided by Clang, e.g. for intrinsicsHeaders provided by Clang, e.g. for intrinsicsgood first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contribute