diff options
| author | Johannes Doerfert <johannes@jdoerfert.de> | 2021-07-01 00:21:26 -0500 |
|---|---|---|
| committer | Johannes Doerfert <johannes@jdoerfert.de> | 2021-07-11 19:18:03 -0500 |
| commit | a7b7b5dfe5a931a76cbe8410e5a9f55beea73c8e (patch) | |
| tree | 90f1e47f6c13a04c11e5ab34ae26c9fcefe1334e /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 1ab1f04a2be34bea2fb34df0f5ff0bd75bdc7aa0 (diff) | |
[OpenMP] Create and use `__kmpc_is_generic_main_thread`
In order to fold calls based on high-level knowledge and control flow
tracking it helps to expose the information as a runtime call. The
logic: `!SPMD && getTID() == getMasterTID()` was used in various places
and is now encapsulated in `__kmpc_is_generic_main_thread`. As part of
this rewrite we replaced eager computation of arguments with on-demand
computation, especially helpful if the calls can be folded and arguments
don't need to be computed consequently.
Differential Revision: https://reviews.llvm.org/D105768
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
