[PATCH] D31248: [X86] Implement __readgsqword (and the rest) as builtins (PR32373)

Hans Wennborg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 22 11:33:46 PDT 2017


hans created this revision.

It seems MS headers have started using __readgsqword, and since it's
used in a header that doesn't include intrin.h, we can't implement it as
an inline function anymore.

      

That was already the case for __readfsdword, which Saleem added support
for in r220859. This patch reuses that codegen to implement all of
__read[fg]s{byte,word,dword,qword}.


https://reviews.llvm.org/D31248

Files:
  include/clang/Basic/Builtins.def
  include/clang/Basic/BuiltinsX86.def
  lib/CodeGen/CGBuiltin.cpp
  lib/Headers/intrin.h
  test/CodeGen/ms-x86-intrinsics.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31248.92664.patch
Type: text/x-patch
Size: 9678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170322/e60da50a/attachment.bin>


More information about the cfe-commits mailing list