yaxunl added a comment. In D68578#1737351 <https://reviews.llvm.org/D68578#1737351>, @rjmccall wrote:
> Distinguishing between multiple symbols associated with the same source-level > declaration is the purpose of the GlobalDecl abstraction. It seems GlobalDecl is just a wrapper for concrete Decl's https://github.com/llvm/llvm-project/blob/31817731167135870259ef1e7387746345b96a2f/clang/include/clang/AST/GlobalDecl.h#L40 Here we need to get the mangled name of a kernel and the mangled name of the same kernel but with a prefix before mangling. Can I use GlobalDecl with the same FunctionDecl* but different multi-version index to indicate it is a kernel or a stub, then let the mangler mangle them differently? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68578/new/ https://reviews.llvm.org/D68578 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits