[all-commits] [llvm/llvm-project] a85f5e: Add support for the MS qualifiers __ptr32, __ptr64...
Amy Huang via All-commits
all-commits at lists.llvm.org
Wed Dec 18 10:41:43 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: a85f5efd9597d0036f5c347b362cb873bdf51f16
https://github.com/llvm/llvm-project/commit/a85f5efd9597d0036f5c347b362cb873bdf51f16
Author: Amy Huang <akhuang at google.com>
Date: 2019-12-18 (Wed, 18 Dec 2019)
Changed paths:
M clang/include/clang/AST/ASTContext.h
M clang/include/clang/AST/Type.h
M clang/include/clang/Basic/AddressSpaces.h
M clang/include/clang/Basic/Attr.td
M clang/include/clang/Basic/AttrDocs.td
M clang/lib/AST/ASTContext.cpp
M clang/lib/AST/ItaniumMangle.cpp
M clang/lib/AST/MicrosoftMangle.cpp
M clang/lib/AST/TypePrinter.cpp
M clang/lib/Basic/Targets/AMDGPU.cpp
M clang/lib/Basic/Targets/NVPTX.h
M clang/lib/Basic/Targets/SPIR.h
M clang/lib/Basic/Targets/TCE.h
M clang/lib/Basic/Targets/X86.h
M clang/lib/Sema/SemaDecl.cpp
M clang/lib/Sema/SemaOverload.cpp
M clang/lib/Sema/SemaType.cpp
A clang/test/CodeGen/ms-mixed-ptr-sizes.c
A clang/test/CodeGenCXX/mangle-ptr-size-address-space.cpp
M clang/test/Sema/MicrosoftExtensions.c
M clang/test/SemaTemplate/address_space-dependent.cpp
Log Message:
-----------
Add support for the MS qualifiers __ptr32, __ptr64, __sptr, __uptr.
Summary:
This adds parsing of the qualifiers __ptr32, __ptr64, __sptr, and __uptr and
lowers them to the corresponding address space pointer for 32-bit and 64-bit pointers.
(32/64-bit pointers added in https://reviews.llvm.org/D69639)
A large part of this patch is making these pointers ignore the address space
when doing things like overloading and casting.
https://bugs.llvm.org/show_bug.cgi?id=42359
Reviewers: rnk, rsmith
Subscribers: jholewinski, jvesely, nhaehnle, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D71039
More information about the All-commits
mailing list