[PATCH] D122760: [OpenMP] Add OpenMP variant extension to keep the unmangled name
Johannes Doerfert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 5 12:34:45 PDT 2022
jdoerfert added a comment.
There is no documentation of the extension and attribute. See also below.
================
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:1459
+ if (auto *A = ND->getAttr<OMPDeclareVariantNoMangleAttr>())
+ ND = A->getFunction();
std::string MangledName = getMangledNameImpl(*this, GD, ND);
----------------
Check OpenMP in the lang opts.
================
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:3062
+ if (auto *A = Global->getAttr<OMPDeclareVariantNoMangleAttr>())
+ VariantGlobalsEmitted.insert(A->getFunction());
}
----------------
This looks like you now disable the diagnostic for pretty much everything, no?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122760/new/
https://reviews.llvm.org/D122760
More information about the cfe-commits
mailing list