[libomptarget][amdgpu][nfc] Expand errorcheck macros
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Wed, 12 May 2021 16:30:40 +0000 (17:30 +0100)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Wed, 12 May 2021 16:30:41 +0000 (17:30 +0100)
commit9934571eab9c6b3be22c4c8857bd3f4280b77843
tree135b4c905d74f139b3d1405db78443ecf056bc33
parentcbed6e5b2ff026e4d64de8f6ee19bc902b6e0e23
[libomptarget][amdgpu][nfc] Expand errorcheck macros

[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.

Reviewed By: pdhaliwal

Differential Revision: https://reviews.llvm.org/D102230
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