aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorYe Luo <yeluo@anl.gov>2023-02-17 19:55:40 -0600
committerYe Luo <yeluo@anl.gov>2023-02-17 20:45:43 -0600
commite2069be83ea88837e1d3bb710aff17cd84ee7b7e (patch)
treec4adf762219b59097fc3b8cbb4d39cbaee11e772 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parentc42eda5d3692fcd67fc3d043ab37f1950ea653b9 (diff)
downloadllvm-e2069be83ea88837e1d3bb710aff17cd84ee7b7e.zip
llvm-e2069be83ea88837e1d3bb710aff17cd84ee7b7e.tar.gz
llvm-e2069be83ea88837e1d3bb710aff17cd84ee7b7e.tar.bz2
[OpenMP] Make isDone lightweight without calling synchronize
~TaskAsyncInfoWrapperTy() calls isDone. With synchronize inside isDone, we need to handle the error return from synchronize in the destructor. The consumers of TaskAsyncInfoWrapperTy, targetDataMapper and targetKernel, both call AsyncInfo.synchronize() before exiting. For this reason in ~TaskAsyncInfoWrapperTy(), calling synchronize() via isDone() is redundant. This patch removes synchronize() call inside isDone() and makes it a lightweight check. __tgt_target_nowait_query needs to call synchronize() before checking isDone(). Differential Revision: https://reviews.llvm.org/D144315
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions