diff options
author | Giorgis Georgakoudis <georgakoudis1@llnl.gov> | 2021-06-15 10:30:12 -0700 |
---|---|---|
committer | Giorgis Georgakoudis <georgakoudis1@llnl.gov> | 2021-07-16 23:27:44 -0700 |
commit | e9c7291cb25f071f1a1dfa4049ed9f5a8a217b3e (patch) | |
tree | cbc6c46dd02f8440e3776c76b7fc492aafe5745e /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 92430b4937911f935a45f6bd43d70cd5adb0fd51 (diff) | |
download | llvm-e9c7291cb25f071f1a1dfa4049ed9f5a8a217b3e.zip llvm-e9c7291cb25f071f1a1dfa4049ed9f5a8a217b3e.tar.gz llvm-e9c7291cb25f071f1a1dfa4049ed9f5a8a217b3e.tar.bz2 |
[OpenMP] Codegen aggregate for outlined function captures
Parallel regions are outlined as functions with capture variables explicitly generated as distinct parameters in the function's argument list. That complicates the fork_call interface in the OpenMP runtime: (1) the fork_call is variadic since there is a variable number of arguments to forward to the outlined function, (2) wrapping/unwrapping arguments happens in the OpenMP runtime, which is sub-optimal, has been a source of ABI bugs, and has a hardcoded limit (16) in the number of arguments, (3) forwarded arguments must cast to pointer types, which complicates debugging. This patch avoids those issues by aggregating captured arguments in a struct to pass to the fork_call.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D102107
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions