[all-commits] [llvm/llvm-project] 62501b: [NFC][CUDA][HIP] rework mangling number for aux ta...

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Wed May 4 10:05:54 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 62501bc45a2fb4980725baccf48576cf9b45cd4d
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2022-05-04 (Wed, 04 May 2022)

  Changed paths:
    M clang/include/clang/AST/ASTContext.h
    M clang/include/clang/AST/Mangle.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/ItaniumMangle.cpp
    M clang/lib/AST/MicrosoftMangle.cpp
    M clang/lib/CodeGen/CGCUDANV.cpp

  Log Message:
  [NFC][CUDA][HIP] rework mangling number for aux target

CUDA/HIP needs to mangle for aux target. When mangling for aux target,
the mangler should use mangling number for aux target. Previously
in https://reviews.llvm.org/D122734 a state was introduced in
ASTContext to let the mangler get mangling number for aux target
from ASTContext. This patch removes that state from ASTConext
and add an IsAux member to MangleContext to indicate that
the mangle context is for aux target. This reflects the reality that
the mangle context is created for mangling aux target and makes
ASTContext cleaner.

Reviewed by: Artem Belevich, Reid Kleckner

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

More information about the All-commits mailing list