diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-08-20 21:37:51 +0100 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-08-20 21:38:04 +0100 |
commit | cff0db08761f310dfebb5b41b307d2c12bda85fc (patch) | |
tree | 2962d28a1637a6077d0024dc87c22904d86c180d /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 79ce9bb3803998fc2a20ce1c88392cf292f35f92 (diff) | |
download | llvm-cff0db08761f310dfebb5b41b307d2c12bda85fc.zip llvm-cff0db08761f310dfebb5b41b307d2c12bda85fc.tar.gz llvm-cff0db08761f310dfebb5b41b307d2c12bda85fc.tar.bz2 |
[X86] Enable constexpr on POPCNT intrinsics (PR31446)
This is a first step patch to enable constexpr support and testing to a large number of x86 intrinsics.
All I've done here is provide a DEFAULT_FN_ATTRS_CONSTEXPR variant to our existing DEFAULT_FN_ATTRS tag approach that adds constexpr on c++ builds. The clang cuda headers do something similar.
I've started with POPCNT mainly as its tiny and are wrappers to generic __builtin_* intrinsics which already act as constexpr.
Differential Revision: https://reviews.llvm.org/D86229
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions