This patch removes getOrCreateInternalVariable from Clang OMP CodeGen and replaces it's uses with
OMPBuilder::getOrCreateInternalVariable. Also refactors OMPBuilder::getOrCreateInternalVariable to change type of name from Twine to StringRef
Paths
| Differential D137720
Migrate getOrCreateInternalVariable from Clang to OMPIRBuilder. ClosedPublic Authored by TIFitis on Nov 9 2022, 8:18 AM.
Details Summary This patch removes getOrCreateInternalVariable from Clang OMP CodeGen and replaces it's uses with OMPBuilder::getOrCreateInternalVariable. Also refactors OMPBuilder::getOrCreateInternalVariable to change type of name from Twine to StringRef
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 9 2022, 8:18 AM Comment Actions LG, minor nits. Nice cleanup.
This revision is now accepted and ready to land.Nov 11 2022, 12:43 PM
Closed by commit rG87f652d31f6d: Migrate getOrCreateInternalVariable from Clang to OMPIRBuilder. (authored by TIFitis). · Explain WhyNov 14 2022, 9:18 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 474284 clang/lib/CodeGen/CGOpenMPRuntime.h
clang/lib/CodeGen/CGOpenMPRuntime.cpp
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
|
No llvm::. Can you check your future patches for these things, please.
StringRef is passed by value not reference.