[all-commits] [llvm/llvm-project] a2fdf9: [hip][cuda] Enable extended lambda support on Wind...

darkbuck via All-commits all-commits at lists.llvm.org
Wed Feb 3 22:39:42 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a2fdf9d4d734732a6fa9288f1ffdf12bf8618123
      https://github.com/llvm/llvm-project/commit/a2fdf9d4d734732a6fa9288f1ffdf12bf8618123
  Author: Michael Liao <michael.hliao at gmail.com>
  Date:   2021-02-04 (Thu, 04 Feb 2021)

  Changed paths:
    M clang/include/clang/AST/ASTContext.h
    M clang/include/clang/AST/DeclCXX.h
    M clang/include/clang/AST/Mangle.h
    M clang/include/clang/AST/MangleNumberingContext.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/AST/ASTImporter.cpp
    M clang/lib/AST/CXXABI.h
    M clang/lib/AST/DeclCXX.cpp
    M clang/lib/AST/ItaniumCXXABI.cpp
    M clang/lib/AST/ItaniumMangle.cpp
    M clang/lib/AST/MicrosoftCXXABI.cpp
    M clang/lib/CodeGen/CGCUDANV.cpp
    M clang/lib/Sema/SemaLambda.cpp
    M clang/lib/Sema/TreeTransform.h
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/lib/Serialization/ASTWriter.cpp
    M clang/test/CodeGenCUDA/ms-linker-options.cu
    M clang/test/CodeGenCUDA/unnamed-types.cu

  Log Message:
  -----------
  [hip][cuda] Enable extended lambda support on Windows.

- On Windows, extended lambda has extra issues due to the numbering
  schemes are different between the host compilation (Microsoft C++ ABI)
  and the device compilation (Itanium C++ ABI. Additional device side
  lambda number is required per lambda for the host compilation to
  correctly mangle the device-side lambda name.
- A hybrid numbering context `MSHIPNumberingContext` is introduced to
  number a lambda for both host- and device-compilations.

Reviewed By: rnk

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




More information about the All-commits mailing list