aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
diff options
context:
space:
mode:
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>2022-05-24 09:53:33 +0530
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>2022-05-24 10:22:11 +0530
commit7604c59bd2336ebb34f28de3e6c883abbdd3f7c7 (patch)
treee8d92aa67de581e27590c35691e1064bbc97b2cd /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
parent7f680b260ffe34c648cbd3fd16615d8f5cdab39f (diff)
downloadllvm-7604c59bd2336ebb34f28de3e6c883abbdd3f7c7.zip
llvm-7604c59bd2336ebb34f28de3e6c883abbdd3f7c7.tar.gz
llvm-7604c59bd2336ebb34f28de3e6c883abbdd3f7c7.tar.bz2
[OpenMP][IRBuilder] `omp task` support
This patch adds basic support for `omp task` to the OpenMPIRBuilder. The outlined function after code extraction is called from a wrapper function with appropriate arguments. This wrapper function is passed to the runtime calls for task allocation. This approach is different from the Clang approach - clang directly emits the runtime call to the outlined function. The outlining utility (OutlineInfo) simply outlines the code and generates a function call to the outlined function. After the function has been generated by the outlining utility, there is no easy way to alter the function arguments without meddling with the outlining itself. Hence the wrapper function approach is taken. Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D71989
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions