[X86] Add rdpid command line option and intrinsics.
authorCraig Topper <craig.topper@intel.com>
Sat, 20 Jan 2018 18:36:52 +0000 (18:36 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 20 Jan 2018 18:36:52 +0000 (18:36 +0000)
commit8cdb94901dc7a9c1fcb7732a80883c1f1876e58a
tree0c54a990e1629fc0be8fdff7a04f699fda57feb2
parent035bf77426056665a17c1024560fbeb8d541cd73
[X86] Add rdpid command line option and intrinsics.

Summary: This patch adds -mrdpid/-mno-rdpid and the rdpid intrinsic. The corresponding LLVM commit has already been made.

Reviewers: RKSimon, spatel, zvi, AndreiGrischenko

Reviewed By: RKSimon

Subscribers: cfe-commits

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

llvm-svn: 323047
clang/include/clang/Basic/BuiltinsX86.def
clang/include/clang/Driver/Options.td
clang/lib/Basic/Targets/X86.cpp
clang/lib/Basic/Targets/X86.h
clang/lib/Headers/immintrin.h
clang/test/CodeGen/rdpid-builtins.c [new file with mode: 0644]
clang/test/Driver/x86-target-features.c
clang/test/Preprocessor/predefined-arch-macros.c
clang/test/Preprocessor/x86_target_features.c