]> granicus.if.org Git - clang/commit
[X86] Remove some preprocessor feature checks from intrinsic headers
authorCraig Topper <craig.topper@intel.com>
Mon, 21 May 2018 06:07:49 +0000 (06:07 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 21 May 2018 06:07:49 +0000 (06:07 +0000)
commit5ade99a7ff000a7b0077d95c7dcbd8930687d21c
treeaa0593d22bf9a941f7bae35681b75de19993fc54
parent59e6300768e4f1e030717d5cd06f9861c6995995
[X86] Remove some preprocessor feature checks from intrinsic headers

Summary:
These look to be a couple things that weren't removed when we switched to target attribute.

The popcnt makes including just smmintrin.h also include popcntintrin.h. The popcnt file itself already contains target attrributes.

The prefetch ones are just wrappers around __builtin_prefetch which we have graceful fallbacks for in the backend if the exact instruction isn't available. So there's no reason to hide them. And it makes them available in functions that have the write target attribute but not a -march command line flag.

Reviewers: echristo, RKSimon, spatel, DavidKreitzer

Reviewed By: echristo

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D47029

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332830 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/prfchwintrin.h
lib/Headers/smmintrin.h