CodeGen: add __readfsdword builtin
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 29 Oct 2014 16:35:41 +0000 (16:35 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 29 Oct 2014 16:35:41 +0000 (16:35 +0000)
commita25fbef08857ff0991877bb11e69a25943406915
tree1f892bfb27e5f08fbfc45205d451c4a7cfa5f7cb
parent595e598869ec8c0650d57cff15842c94904163cc
CodeGen: add __readfsdword builtin

The Windows NT SDK uses __readfsdword and declares it as a compiler provided
builtin (#pragma intrinsic(__readfsword).  Because intrin.h is not referenced
by winnt.h, it is not possible to provide an out-of-line definition for the
intrinsic.  Provide a proper compiler builtin definition.

llvm-svn: 220859
clang/include/clang/Basic/Builtins.def
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/Headers/Intrin.h
clang/test/CodeGen/ms-intrinsics.c