[Openmp-commits] [PATCH] D102230: [libomptarget][amdgpu][nfc] Expand errorcheck macros
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue May 11 04:51:15 PDT 2021
JonChesterfield created this revision.
JonChesterfield added reviewers: pdhaliwal, jdoerfert, ye-luo.
Herald added subscribers: kerbowa, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
JonChesterfield requested review of this revision.
Herald added subscribers: openmp-commits, wdng.
Herald added a project: OpenMP.
[libomptarget][amdgpu][nfc] Expand errorcheck macros
These macros expand to continue, which is confusing, or exit,
which is incompatible with continuing execution on offloading fail.
Expanding the macros in place makes the code look untidy but the
control flow obvious and amenable to improving. In particular, exit
becomes easier to eliminate.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D102230
Files:
openmp/libomptarget/plugins/amdgpu/impl/data.cpp
openmp/libomptarget/plugins/amdgpu/impl/internal.h
openmp/libomptarget/plugins/amdgpu/impl/system.cpp
openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102230.344359.patch
Type: text/x-patch
Size: 30438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210511/16101024/attachment-0001.bin>
More information about the Openmp-commits
mailing list