[all-commits] [llvm/llvm-project] 781890: [SYCL] Implement SYCL address space attributes han...

Alexey Bader via All-commits all-commits at lists.llvm.org
Mon Apr 26 06:45:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7818906ca134775edffb77857f436359d3a50b90
      https://github.com/llvm/llvm-project/commit/7818906ca134775edffb77857f436359d3a50b90
  Author: Alexey Bader <alexey.bader at intel.com>
  Date:   2021-04-26 (Mon, 26 Apr 2021)

  Changed paths:
    M clang/include/clang/AST/Type.h
    M clang/include/clang/Basic/AddressSpaces.h
    M clang/include/clang/Sema/ParsedAttr.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/ItaniumMangle.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/CodeGen/CGDecl.cpp
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/CodeGen/CodeGenModule.h
    M clang/lib/CodeGen/TargetInfo.cpp
    M clang/lib/Sema/SemaType.cpp
    A clang/test/CodeGenSYCL/address-space-conversions.cpp
    A clang/test/CodeGenSYCL/address-space-deduction.cpp
    A clang/test/CodeGenSYCL/address-space-mangling.cpp
    A clang/test/SemaSYCL/address-space-conversions.cpp
    M clang/test/SemaTemplate/address_space-dependent.cpp

  Log Message:
  -----------
  [SYCL] Implement SYCL address space attributes handling

Default address space (applies when no explicit address space was
specified) maps to generic (4) address space.

Added SYCL named address spaces `sycl_global`, `sycl_local` and
`sycl_private` defined as sub-sets of the default address space.

Static variables without address space now reside in global address
space when compile for SPIR target, unless they have an explicit address
space qualifier in source code.

Differential Revision: https://reviews.llvm.org/D89909




More information about the All-commits mailing list