[all-commits] [llvm/llvm-project] a999b9: Add support for the MS qualifiers __ptr32, __ptr64...

Amy Huang via All-commits all-commits at lists.llvm.org
Wed Dec 18 09:02:49 PST 2019


  Branch: refs/heads/pvoid-ptrsizes
  Home:   https://github.com/llvm/llvm-project
  Commit: a999b9dc69f88e590a61f78c10ac7db51a3a5d98
      https://github.com/llvm/llvm-project/commit/a999b9dc69f88e590a61f78c10ac7db51a3a5d98
  Author: Amy Huang <akhuang at google.com>
  Date:   2019-12-18 (Wed, 18 Dec 2019)

  Changed paths:
    M clang/include/clang/AST/Type.h
    M clang/include/clang/Basic/AddressSpaces.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/ItaniumMangle.cpp
    M clang/lib/AST/MicrosoftMangle.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


  Commit: 7513e662d3c536c04b7bf44f68ce41cdc5eefc21
      https://github.com/llvm/llvm-project/commit/7513e662d3c536c04b7bf44f68ce41cdc5eefc21
  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/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/MicrosoftMangle.cpp
    M clang/lib/AST/TypePrinter.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaOverload.cpp

  Log Message:
  -----------
  Address comments


Compare: https://github.com/llvm/llvm-project/compare/a999b9dc69f8%5E...7513e662d3c5


More information about the All-commits mailing list