[PATCH] D35449: [X86] Implement __builtin_cpu_is
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 14 22:42:18 PDT 2017
craig.topper created this revision.
This patch adds support for __builtin_cpu_is. I've tried to match the strings supported to the latest version of gcc.
I've only tested this on my Macbook so far so I'd appreciate if others would test it. An AMD system would be great.
https://reviews.llvm.org/D35449
Files:
include/clang/Basic/BuiltinsX86.def
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Basic/TargetInfo.h
lib/Basic/Targets.cpp
lib/CodeGen/CGBuiltin.cpp
lib/Sema/SemaChecking.cpp
test/CodeGen/builtin-cpu-is.c
test/CodeGen/target-builtin-noerror.c
test/Sema/builtin-cpu-supports.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35449.106751.patch
Type: text/x-patch
Size: 13915 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170715/3b9a6a48/attachment.bin>
More information about the cfe-commits
mailing list