[X86] Implement __readgsqword (and the rest) as builtins (PR32373)
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}. Differential Revision: https://reviews.llvm.org/D31248 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@298538 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/Builtins.def 0 additions, 1 deletioninclude/clang/Basic/Builtins.def
- include/clang/Basic/BuiltinsX86.def 10 additions, 0 deletionsinclude/clang/Basic/BuiltinsX86.def
- lib/CodeGen/CGBuiltin.cpp 24 additions, 10 deletionslib/CodeGen/CGBuiltin.cpp
- lib/Headers/intrin.h 0 additions, 43 deletionslib/Headers/intrin.h
- test/CodeGen/ms-x86-intrinsics.c 62 additions, 3 deletionstest/CodeGen/ms-x86-intrinsics.c
Loading
Please register or sign in to comment