[PATCH] D106298: [OpenMP] Creating the `NumTeams` and `ThreadLimit` attributes to outlined functions
Johannes Doerfert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 19 13:02:54 PDT 2021
jdoerfert added a comment.
Tests?
================
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:6559
+ if (DefaultValTeams > 0) {
+ OutlinedFn->addFnAttr(llvm::StringRef("NumTeams"),
+ std::to_string(DefaultValTeams));
----------------
================
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:6565
+ if (DefaultValThreads > 0) {
+ OutlinedFn->addFnAttr(llvm::StringRef("ThreadLimit"),
+ std::to_string(DefaultValThreads));
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106298/new/
https://reviews.llvm.org/D106298
More information about the cfe-commits
mailing list